Base Animations
Create custom animations using Tailwind Motion's base animation classes
Base animations are the fundamental building blocks in Tailwind Motion that allow you to create custom animations by combining different properties. Each property controls a specific aspect of the animation, such as opacity, translation, or rotation.
How Base Animations Work
Base animations follow this naming pattern:
-
property: The property to animate (opacity, translate, scale, etc.)
-
direction: The animation direction:
in
- Entrance animationsout
- Exit animationsloop
- Continuous animations
-
value: The target value for the animation
Quick Example
Available Properties
Tailwind Motion includes these animation properties:
Visual Properties
- Opacity - Fade elements in/out
- Scale - Change element size
- Translation - Move elements horizontally/vertically
- Rotation - Rotate elements
Filter Effects
Color Animations
- Background Color - Animate background colors
- Text Color - Animate text colors
Combining Animations
Stack multiple animation classes to create complex effects:
All animations support entrance (in
), exit (out
), and continuous (loop
) variations.