Syntax
Duration classes follow the patternanimate-duration-{value} where value can be:
- A predefined timing value (named or numeric)
- An arbitrary value using square brackets
Predefined Duration Values
Named Durations
| Class | Value | Use Case |
|---|---|---|
animate-duration-none | 0ms | Instant (no animation) |
animate-duration-faster | 100ms | Very quick animations |
animate-duration-fast | 200ms | Fast animations |
animate-duration-normal | 300ms | Standard speed (default) |
animate-duration-slow | 400ms | Slow animations |
animate-duration-slower | 500ms | Very slow animations |
Numeric Durations
| Class | Value | Description |
|---|---|---|
animate-duration-0 | 0ms | No animation |
animate-duration-100 | 100ms | Extremely fast |
animate-duration-150 | 150ms | Very fast |
animate-duration-200 | 200ms | Fast |
animate-duration-250 | 250ms | Quick |
animate-duration-300 | 300ms | Normal |
animate-duration-400 | 400ms | Moderate |
animate-duration-500 | 500ms | Moderate-slow |
animate-duration-700 | 700ms | Slow |
animate-duration-800 | 800ms | Very slow |
animate-duration-900 | 900ms | Extremely slow |
animate-duration-1000 | 1000ms | One second |
Usage Examples
Basic Duration Override
Change the default duration of any animation:Named Duration Values
Use semantic names for common speeds:Different Durations for Different Elements
Arbitrary Values
Use custom durations not in the preset:Combining with Other Properties
Responsive Durations
Apply different durations at different breakpoints:Common Duration Patterns
Micro-Interactions
Quick, responsive animations for UI feedback:Page Entrance Animations
Slightly longer durations for page load:Loading States
Continuous animations should be moderate speed:Attention-Seeking Animations
Medium to slow for noticeable effects:Duration Guidelines by Animation Type
Fade Animations
Slide Animations
Bounce & Elastic
Rotations
CSS Variable Reference
All duration classes use the following CSS custom properties:Best Practices
Keep UI Animations Quick
For interactive elements, use durations under 400ms:Use Longer Durations for Complex Animations
Complex animations need more time to be appreciated:Match Duration to Animation Purpose
Consider Total Experience
When using multiple animated elements, keep total time reasonable:Performance Notes
- Shorter durations (100-300ms) are imperceptibly faster in most browsers
- Very long durations (2000ms+) may feel sluggish to users
- Duration does not significantly impact performance
- Consider user motion preferences:
Browser Compatibility
Animation duration is supported in all modern browsers:- Chrome 43+
- Firefox 16+
- Safari 9+
- Edge 12+
- Opera 30+