loading code fetching the highlighted snippet
useAnimationControls() returns a controls object for animate={controls}. Call start, set, or stop once and every subscribed motion component responds with its own matching variant.
await controls.start('launch') resolves after every subscribed motion.* component finishes its matching launch variant.controls.set('verified') jumps all subscribers to the final keyframe
values synchronously, including transitionEnd values.controls.stop() freezes active element animations and is also called automatically
when the hook's component unmounts.