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';
Props of the native component are also available.
Name | Type | Default | 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';
Props of the native component are also available.
Name | Type | Default | 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 |