Web · surface

Rotating Gradient Border

Also called: animated gradient border, conic gradient border card, glowing border pricing card, rainbow border animation, border beam

What it is

A dark card whose thin border is a multicolour gradient that slowly turns, with a soft glow behind it. It marks the one card you want picked, such as the recommended plan.

What it says: This is the one to pick.

How it is usually built: CSS @property for the angle + conic-gradient on a padded wrapper; no JavaScript

With reduced motion: Stop the rotation under reduced motion and keep the static gradient rim.

The live demo runs in the Lookbook: open Rotating Gradient Border there.

The prompt

Paste it into a coding AI building the page.

Prompt

dark card with a 2px animated border: a conic gradient of violet, peach, teal and coral rotating slowly around the rim, soft outer glow in the lead colour, the card body stays solid and still, use on one featured card only

Not this

What it gets confused with, or how it fails. Use it as a negative prompt where the tool takes one.

Not this

Not Glassmorphism: the card is opaque and only the rim moves. Use it on one card, not on every card in the grid.

Feels like

Pairs with

Open in the LookbookBack to the gallery

More web techniques like this