Manual Controls
Earlier, we had useAnimationControls() to start animations manually, but now there’s the new useAnimate(), which works with all HTML elements (not only Motion elements). The useAnimationControls() hook still exists because not everything is yet possible with useAnimate().The useAnimate() hook The useAnimationControls() hook