How to Make a Sticky Cursor with NextJs and Framer Motion

Olivier Larose on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI19 min

About this video

A website animation tutorial that builds a sticky, magnetic cursor effect with Next.js and Framer Motion, using the Math.atan2 function.

What you’ll learn

  • Build a custom cursor that follows the mouse smoothly in Next.js
  • Make the cursor stick to and pull toward elements with a magnetic effect
  • Stretch and rotate the cursor with Framer Motion and Math.atan2