# Animation Duration
## `animation-duration-*`
| Class |
Styles |
|
`animation-duration-`
|
```css
animation-duration: ms;
```
|
|
`animation-duration-initial`
|
```css
animation-duration: initial;
```
|
|
`animation-duration-()`
|
```css
animation-duration: var();
```
|
|
`animation-duration-[]`
|
```css
animation-duration: ;
```
|
## `duration-*`
> [!CAUTION]
> Using this utility to set `animation-duration` is deprecated and support will be removed in a future version. This is because with the old approach it wasn't possible to set different durations for transitions and animations.
| Class |
Styles |
|
`duration-`
|
```css
--tw-duration: ms;
```
|
|
`duration-initial`
|
```css
--tw-duration: initial;
```
|
|
`duration-()`
|
```css
--tw-duration: var();
```
|
|
`duration-[]`
|
```css
--tw-duration: ;
```
|
> [!NOTE]
> The `duration-*` utility is not defined in `tw-animate-css` and is included only for completeness. It uses the `--tw-duration` variable to apply the duration. Check out the [Tailwind CSS documentation][TailwindCSS_Duration] to see the actual implementation.
[TailwindCSS_Duration]: https://tailwindcss.com/docs/transition-duration