Create an animated, glowing, gradient border with CSS

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateWeb DesignUI8 min

About this video

A CSS tutorial that builds an animated, glowing gradient border using pseudo-elements, custom properties and @property to rotate the gradient, then switches to a conic-gradient. It is aimed at developers and designers who already write CSS.

What you’ll learn

  • Animate a gradient border by rotating a custom property with @property
  • Add a soft glow using pseudo-elements
  • Replace a linear gradient with a conic-gradient for the rotating effect