Translation
Animate the position of an element
Basic Usage
Slide up
Available Values
These are the theme default values. You can customize the theme to add your own values to the motionTranslate
property or use arbitrary values.
Class | Value |
---|---|
motion-translate-0 | 0% |
motion-translate-25 | 25% |
motion-translate-50 | 50% |
motion-translate-75 | 75% |
motion-translate-100 | 100% |
motion-translate-150 | 150% |
motion-translate | 25% |
motion-translate-[50%] | Arbitrary value |
Individual Axis Translation
Translation animations support both X and Y axes:
motion-translate-x-[direction]-[value]
- Horizontal movementmotion-translate-y-[direction]-[value]
- Vertical movement
Slide in from right
Slide up
Loop Animations
Loop horizontally and vertically
Exit Animations
Slide out downward
Combining with Other Animations
Slide up and fade in
Combining with Modifiers
Bounce in from below