A tutorial on building a split image vignette animation using the CSS clip-path value, animated with Framer Motion in Next.js. It walks through common issues with the useState and useAnimate hooks and how to fix them.
What you’ll learn
✓Build a split image vignette layout in Next.js
✓Animate a CSS clip-path with Framer Motion
✓Fix position and state issues when animating with useAnimate