StealThis .dev

Neon Gradient Card

Card with an animated neon glow border that shifts through vivid colors using keyframe animations and box-shadow.

Open in Lab
css javascript vue svelte
Targets: TS JS HTML React Vue Svelte

Code

Neon Gradient Card

A card with a vivid animated neon glow border that continuously shifts through colors. Uses CSS keyframes with box-shadow and border gradients.

How it works

  1. A pseudo-element with a conic gradient rotates behind the card
  2. box-shadow with matching colors creates an outer neon glow
  3. CSS @keyframes animate the filter: hue-rotate() to shift colors
  4. The result is a continuous rainbow-neon border effect

Customization

  • Control animation speed with --neon-speed
  • Set starting hue with --neon-hue
  • Adjust glow intensity with --neon-glow-size

When to use it

  • Standout feature cards
  • Gaming or entertainment UI elements
  • Special promotions or announcements