Image FXcssimagelab.com
Image
Studio fashion portrait in warm light

Frame · 26 / 35

Gradient Border

A conic-gradient border that rotates continuously around the image.

Adjust
6s
3px
Metadata
interaction
Always on
browser
Enhanced — @property
reduced motion
included
touch fallback
Identical on touch
Edit the CSS above — the preview updates live.

About Gradient Border

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.

Use cases

  • portfolio
  • hero
  • ecommerce

Browser support

Enhanced — @property. This effect uses an enhanced feature — provide a graceful fallback for older browsers. Give the figure surrounding space (a wrapper margin).

Accessibility

  • Essential content is never hidden behind hover.
  • Includes a prefers-reduced-motion fallback.
  • Touch fallback: identical on touch.