All effects
Parameter playground

Drag a slider: the demo replays itself so the difference is visible, and the matching number inside the prompt is rewritten. Copy it and you take a prompt tuned to your taste.

Halo blur 30px The halo resizes instantly: 8 hugs the edge, 60 floods outward; 30 is the current mood
Halo strength 0.22 Halo brightness shifts instantly: 0.08 is a whisper, 0.5 lights the room; 0.22 is moody
Card Effects

Rotating Glow Border

A conic-gradient border that slowly rotates around the card, with a breathing blurred aura underneath.

AI Prompt
Add an animated glow border to a card: a slowly rotating conic gradient rendered as only a 2px border (use CSS @property with a custom angle plus mask composite so just the edge shows), and beneath the card add a blurred, colorful diffused aura (30px halo blur, halo opacity 0.22) with a breathing effect (slow scale and opacity oscillation). Pure CSS, performance friendly.

How it works

The border is not a border at all. The card gets 2px of padding and a conic-gradient background that rotates via a registered custom property: CSS @property turns an angle variable into an animatable value, and keyframes sweep it from 0deg to 360deg on a loop. The trick that makes it look like an edge is the mask: two full-size mask layers are composited with exclude, one covering the padding box and one the content box, so only the 2px ring between them stays visible. Because the mask clips rather than paints, the effect works at any border radius without seam artifacts.

Underneath, a second element blurred with filter: blur sits offset behind the card, painted in the same hues as the border gradient. Its breathing motion animates transform scale and opacity only, which keeps it on the GPU compositor; animating the blur radius itself would force expensive repaints every frame and stutter on phones. One caveat: browsers without @property support (Firefox only gained it in version 128) cannot animate the angle, so the border falls back to a static gradient instead of breaking the layout.

How to use this prompt

Paste the prompt into your AI tool along with the card markup you want to enhance. If your card has dark and light themes, say so - the aura colors need different opacity levels to look right on each background. For multiple cards in a grid, ask the AI to stagger the animation-delay so the borders do not rotate in lockstep, which instantly looks more organic.

Tips for better results

Keep the visible ring between 2px and 3px; thicker starts to look like a loading spinner. Limit the conic gradient to one bright segment on an otherwise transparent track - a full rainbow ring reads as decoration, while a single sweeping beam reads as craftsmanship. And pair the effect with the breathing aura at low opacity (around 0.35) so it suggests depth without fighting the card content for attention.

Keep exploring