Use classname spin-(in|out)-<value> to define animation's rotate.
-<value> part is optional.You can use either of below as the <value>:
spin-in-50deg, rad, grad or turn. e.g. spin-in-3.1416radspin-in-$my-css-varDefine enter animation's starting rotate.
30deg if not specified.deg if not specified.<button class="animate-in spin-in">Button A</button>
<button class="animate-in spin-in-50">Button B</button>
<button class="animate-in spin-in-180grad">Button C</button>
<button class="animate-in spin-in-$my-css-var">Button D</button>
| Classname | Property |
|---|---|
spin-in | --vin-enter-rotate: 30deg; |
spin-in-0 | --vin-enter-rotate: 0; |
spin-in-10 | --vin-enter-rotate: 10deg; |
spin-in-.8 | --vin-enter-rotate: 0.8deg; |
spin-in-52.1 | --vin-enter-rotate: 52.1deg; |
spin-in--20 | --vin-enter-rotate: -20deg; |
spin-in--66.66 | --vin-enter-rotate: -66.66deg; |
spin-in-3.1416rad | --vin-enter-rotate: 3.1416rad; |
spin-in--170grad | --vin-enter-rotate: -170grad; |
spin-in-0.6turn | --vin-enter-rotate: 0.6turn; |
spin-in-$my-css-var | --vin-enter-rotate: var(--my-css-var); |
Define exit animation's ending rotate.
30deg if not specified.deg if not specified.<button class="animate-out spin-out">Button A</button>
<button class="animate-out spin-out-50">Button B</button>
<button class="animate-out spin-out-180grad">Button C</button>
<button class="animate-out spin-out-$my-css-var">Button D</button>
| Classname | Property |
|---|---|
spin-out | --vin-exit-rotate: 30deg; |
spin-out-0 | --vin-exit-rotate: 0; |
spin-out-10 | --vin-exit-rotate: 10deg; |
spin-out-.8 | --vin-exit-rotate: 0.8deg; |
spin-out-52.1 | --vin-exit-rotate: 52.1deg; |
spin-out--20 | --vin-exit-rotate: -20deg; |
spin-out--66.66 | --vin-exit-rotate: -66.66deg; |
spin-out-3.1416rad | --vin-exit-rotate: 3.1416rad; |
spin-out--170grad | --vin-exit-rotate: -170grad; |
spin-out-0.6turn | --vin-exit-rotate: 0.6turn; |
spin-out-$my-css-var | --vin-exit-rotate: var(--my-css-var); |