Quick Recap

HookReturnsUsage WithUsage
useMotionValueMotion Valuestyle propTo Dynamically apply animation based on user interaction like userInput
useSpringMotion Valuestyle propTo create a motion value with spring transition
useTransformTransformed Motion Valuestyle propTo create a new motion value by transforming an existing motion value
useStateReact Stateanimate propTo create a state variable to toggle between different animation states
useInViewBoolean Valueanimate prop/js logicTo trigger animation or load content when an element comes into view
useMotionValueEventN/AMotion ValueTo listen to changes in a motion value and execute a callback function
useScrollMotion values of scroll posuseMotionValueEvent,style,useTransformTo create scroll-driven animations based on the scroll position