Transition animation
Examples
Basic
Basic usage, if you don’t want the component to be rendered at the beginning, please set mountOnEnter=true.
DEMO
Do not uninstall components
If you want the component not to be unloaded after it comes out, you can do this by not setting unmountOnLeave and cooperating with css.
Properties
Transition inherits all useCssTransition properties
| Property | Description | Type | Default | Require |
|---|---|---|---|---|
| mountOnEnter | The child element is only mounted when the transition is executed for the first time, and will remain mounted unless unmountOnExit is used. | boolean | - | false |
| unmountOnExit | Unmount child element when leaving transition | boolean | - | false |