I never thought of using CSS animations like this before!

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI10 min

About this video

Kevin Powell walks through creating a mouse-follow hover effect with CSS, comparing it with JavaScript approaches and why a plain transition cannot achieve it, then shows a CSS-only solution. It is aimed at front-end developers and designers who already write CSS.

What you’ll learn

  • Explain why a standard CSS transition cannot follow the mouse
  • Compare a JavaScript approach with a CSS-only solution for a hover effect
  • Build a CSS-only mouse-follow effect using the final solution shown