useDynamicAnimation

useDynamicAnimation is a custom hook used to switch animations.

Box

Usage

import { useDynamicAnimation } from "@yamada-ui/react"
const [animation, setAnimation] = useDynamicAnimation()

Use Theme Tokens

To use theme animations, set the keys as the animation names.

Box

Use Multiple Animations

To use multiple animations, pass an object with the keys as the animation names.

Box