
Frame · 26 / 35
Gradient Border
A conic-gradient border that rotates continuously around the image.
Adjust
6s
3px
Edit the CSS above — the preview updates live.

A conic-gradient border that rotates continuously around the image.
Gradient Border draws an animated conic-gradient frame behind the figure via a ::before pseudo-element, so give the card surrounding room (margin). Tune --ifx-c1 and --ifx-c2 for the two gradient stops, --ifx-speed for rotation duration, and --ifx-thick for how far the frame extends past the image. It relies on @property to animate the angle (enhanced tier); the spin pauses under prefers-reduced-motion and the frame stays fully visible on touch.
Enhanced — @property. This effect uses an enhanced feature — provide a graceful fallback for older browsers. Give the figure surrounding space (a wrapper margin).