Applying Modifiers
Learn how to apply modifiers to your animations
Modifiers allow you to customize various aspects of your animations, including duration, delay, timing function, and play state.
Available Modifiers
- Duration - Control how long animations take
- Delay - Add a delay before animations start
- Timing Function - Adjust the easing of animations
- Play State - Pause and resume animations
Basic Usage
Add modifier classes alongside your animation classes to customize their behavior:
Slow fade in
Applying to Specific Properties
You can target specific properties using a slash (/) followed by the property name:
Delayed rotation
In this example, the delay only applies to the rotation animation, while the opacity animation starts immediately.
Combining Multiple Modifiers
You can stack multiple modifiers to achieve complex animation behaviors:
Play State Control
Use play state modifiers to control animation playback:
Hover to play
Arbitrary Values
Most modifiers support arbitrary values using square brackets:
Custom timing