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.