# Rotate
Rotate transforms can be used to spin elements in and out with a rotation animation.
> [!NOTE]
> You also need to apply [`animate-in`][Animate_in] or [`animate-out`][Animate_out] classes respectively.
## `spin-in-*`
| Class |
Styles |
|
`spin-in`
|
```css
--tw-enter-rotate: 30deg;
```
|
|
`spin-in-`
|
```css
--tw-enter-rotate: deg;
```
|
|
`spin-in-()`
|
```css
--tw-enter-rotate: var();
```
|
|
`spin-in-[]`
|
```css
--tw-enter-rotate: ;
```
|
## `spin-out-*`
| Class |
Styles |
|
`spin-out`
|
```css
--tw-exit-rotate: 30deg;
```
|
|
`spin-out-`
|
```css
--tw-exit-rotate: deg;
```
|
|
`spin-out-()`
|
```css
--tw-exit-rotate: var();
```
|
|
`spin-out-[]`
|
```css
--tw-exit-rotate: ;
```
|
[Animate_in]: ../animations/in-out.md#animate-in
[Animate_out]: ../animations/in-out.md#animate-out