# animation

## Introduction

Used to animate.

It is `animation-name`, `animation-duration`, `animation-timing-function`, `animation-delay`, `animation-iteration-count`, `animation-direction`, `animation-fill-mode` and a shorthand property form for the `animation-play-state` property.

## Grammar

````css
/* @keyframes name | duration | timing-function | delay |

iteration-count | direction | fill-mode | play-state */

animation: slidein 3s ease-in 1s 2 reverse both paused;

/* @keyframes name | duration | timing-function | delay */

animation: slidein 3s linear 1s;

/* @keyframes name | duration */

animation: slidein 3s;
````

## Standardized grammar

````css
animation: <animation-name> || <animation-duration> || <animation-timing-function> || <animation-delay> || <animation-iteration-count> || <animation-direction> || <animation -fill-mode> || <animation-play-state>
````

## Notes

- Fill in in order. `name` and `duration` must be present, others can be omitted.

- There can only be **one space** between the parameters of animation, otherwise a parameter parsing error will occur.

- There can be no spaces inside the timing-function. For example, `cubic-bezier(1, 0.4, 0.7, 0.9)` is incorrect, and `cubic-bezier(1,0.4,0.7,0.9)` is correct.

- Parameters are filled in order.

- Unneeded attributes can be omitted as required.