Framer Motion useAnimate Returns Empty Animations Array. Fix for motion v12 and prefers-reduced-motion
The goal
Spring pop animation on a button when it goes from disabled to enabled. Track previous disabled with a ref, detect the flip in useEffect, fire an imperative animation.
Simple enough.
First at
tigerabrodi.blog3 min read