Learn how to orchestrate animations between parent and child components with variants. Variants allow you to set different states, almost like keyframes of motion elements.
By passing a new variant name to the element, it will automatically animate to the configuration of the animation that corresponds.
Check out the official docs for more information on how to customize orchestration between animations.