← All elements
<div class="csb"><b>Pro plan</b><span>Everything in Free, plus priority support.</span></div>About this border
A card whose border carries a single bright arc travelling around it, made with a rotating conic gradient angle.
How it works
The card has a transparent border and two backgrounds: a flat fill clipped to the padding box and a conic gradient clipped to the border box. The gradient starts at an angle held in a registered custom property, and animating that angle makes the bright arc travel round the edge.
Ways to customise it
- Change the #a78bfa and #22d3ee stops for another light colour.
- Raise the border width for a bolder arc.
- Change the 4s duration to speed up or slow down.
Good to know
Animating an angle needs the @property rule, which current browsers support. Where it is not available the border simply stays still, and the reduced-motion rule stops it for people who prefer less movement.
Open an example, copy the HTML and the CSS, and paste them into your page. There is nothing to install and no JavaScript to load.