Variants
A variant is a named animation state. Define a map, pass it to motion.* with variants, then
drive the tree by passing a label or label array to animate, initial, exit, whileHover, and
related props.
Orchestrate children
Variants propagate through motion children. Define matching labels on a parent and its children,
then a single animate="open" on the parent drives both:
Dynamic variants
Variants can be functions of a custom prop: