Transition
Animate presence of component with pre-made animations
Import
Source
Docs
Package
Premade transitions
Mantine includes several premade transitions:
fade
fade-up
fade-down
fade-left
fade-right
scale
scale-y
scale-x
skew-up
skew-down
rotate-left
rotate-right
slide-down
slide-up
slide-left
slide-right
pop
pop-bottom-left
pop-bottom-right
pop-top-left
pop-top-right
To use one of them set transition
property to one of these values:
Custom transitions
You can create your own transition. transition
is an object with 4 properties:
in
– styles for mounted stateout
– styles for unmounted statecommon
(optional) – styles for both mounted and unmounted statestransitionProperty
– properties which participate in transition
Enter and exit delay
Use enterDelay
and exitDelay
props to delay transition start. Values are in milliseconds: