Transitions
Transition components are utilities that let you add motion to components.
CssAnimation API
Import
import { CssAnimation } from '@mui/base/Transitions';
// or
import { CssAnimation } from '@mui/base';Learn about the difference by reading this guide on minimizing bundle size.
Props of the native component are also available.
| Name | Type | Description |
|---|---|---|
| enterAnimationName | string | The name of the CSS animation (the |
| enterClassName | string | The name of the CSS class applied to the component when the transition is requested to enter. |
| exitAnimationName | string | The name of the CSS animation (the |
| exitClassName | string | The name of the CSS class applied to the component when the transition is requested to exit. |
CssTransition API
Import
import { CssTransition } from '@mui/base/Transitions';
// or
import { CssTransition } from '@mui/base';Learn about the difference by reading this guide on minimizing bundle size.
Props of the native component are also available.
| Name | Type | Description |
|---|---|---|
| enterClassName | string | The name of the CSS class applied to the component when the transition is requested to enter. |
| exitClassName | string | The name of the CSS class applied to the component when the transition is requested to exit. |
| lastTransitionedPropertyOnExit | string | The name of the CSS property that is transitioned the longest (has the largest |