Scale
Animate the size of an element
Basic Usage
Scale in
Available Values
These are the theme default values. You can customize the theme to add your own values to the motionScale
property or use arbitrary values.
Class | Value |
---|---|
motion-scale-in-0 | 0 |
motion-scale-in-50 | .5 |
motion-scale-in-75 | .75 |
motion-scale-in-90 | .9 |
motion-scale-in-95 | .95 |
motion-scale-in-100 | 1 |
motion-scale-in-105 | 1.05 |
motion-scale-in-110 | 1.1 |
motion-scale-in-125 | 1.25 |
motion-scale-in-150 | 1.5 |
motion-scale-in | 50% |
motion-scale-in-[1.5] | Arbitrary value |
Individual Axis Scaling
You can scale elements along individual axes using motion-scale-x
or motion-scale-y
:
Scale X
Scale Y
These can use the same directions as normal scale animations:
Loop scale X
Exit Animations
Scale out
Loop Animations
Loop scale
Combining with Other Animations
Scale and fade in
Combining with Modifiers
Scale in with spring