MarovStudio
Back to marketplace

Gradient Border Card

A card with a gold beam circling its edge

Cardscardbordergradientconicanimation
Fullscreen

Gradient border

A gold beam circles the edge — pure CSS, one conic gradient.

export function GradientBorderCard() {
  return (
    <div className="relative w-64 overflow-hidden rounded-2xl p-px">
      <div
        aria-hidden="true"
        className="absolute -inset-1/2 motion-safe:[animation:spin_6s_linear_infinite]"
        style={{
          background:
            "conic-gradient(from 0deg, transparent 0%, rgb(245 158 11) 18%, transparent 36%)",
        }}
      />
      <div className="relative rounded-[calc(1rem+5px)] bg-neutral-900 p-6">
        <h3 className="text-sm font-semibold text-neutral-50">
          Gradient border
        </h3>
        <p className="mt-1 text-xs text-neutral-400">
          A beam circles the card's edge — pure CSS, one conic gradient.
        </p>
      </div>
    </div>
  );
}

Related components

Spotlight

A soft light follows your cursor across the card.

Spotlight Card

Cards · A card lit by a cursor-following spotlight

3D Tilt

The card leans toward your cursor in perspective.

3D Tilt Card

Cards · A card tilting in 3D toward the cursor

Glass

Frosted surface over live color — reads in both themes.

Glass Card

Cards · A frosted glassmorphism feature card