Some Examples » 10. Animation sequence
10. Animation sequence
With the useAnimate()
hook, you can start and stop animations manually, and it also lets you create a sequence of animations.
Code component
Notice that we’re animating a common <div>
here. This is because you don’t need to use Motion elements for useAnimate()
; it works with any HTML or SVG element.