Animation
Extraction UI provides a set of animation utilities for enter and exit transitions, built on CSS custom properties. For more information on ready available animations, visit Tailwind
Overview
Animations are driven by two CSS classes — animate-in and animate-out — combined with composable transition modifiers such as fade-in, fade-out, scale-in, scale-out and so on.
Enter Animations
Use the animate-in class with the following utilities to animate entering elements:
Exit Animations
Use the animate-out class with the following utilities to animate exiting elements:
Possible Animation Values
Animation utilities support custom intensity or distance.
-
Opacity: value is a percentage-like number from
0to100. Examples:fade-in-25,fade-out-50,fade-out-80. -
Scale: value is a number interpreted as
%. Examples:scale-in-75,scale-out-95. -
Blur: value is in pixels. Examples:
blur-in-4,blur-out-12. -
Slide: value supports spacing scale steps, length, or percentage. Examples:
slide-from-end-2,slide-from-bottom-25,slide-to-top-4,slide-to-start-[40%].
You also can combine multiple modifiers with animate-in or animate-out:
<DecorativeBox className='animate-in fade-in scale-in-50' />Utilities
Animation utilities help control animation timing and playback behavior.
| Name | Purpose |
|---|---|
anim-delay-* | Sets animation-delay |
anim-direction-* | Sets animation-direction |
anim-duration-* | Sets animation-duration |
anim-fill-* | Sets animation-fill-mode |
anim-play-* | Sets animation-play-state |
anim-repeat-* | Sets animation-iteration-count |