useAnimate
useAnimate
provides a way of using the animate function that is scoped to the elements within the provided domRef.
useAnimate
provides a way of using the animate function that is scoped to the elements within the provided domRef.
This allows you to use manual animation controls, timelines, selectors scoped to your component, and automatic cleanup.
It provides a scope ref, and an animate function where every DOM selector is scoped to this ref.
Usage
- Item 1
- Item 2
- Item 3