CSS Animation Shorthand Property
While this tutorial has content that we believe is of great benefit to our community, we have not yet tested or edited it to ensure you have an error-free learning experience. It's on our list, and we're working on it! You can help us out by using the "report an issue" button at the bottom of the tutorial.
Run your animations easily with the CSS animation shorthand:
animation: crazy 4s ease-in-out 0.5s 12 backwards;
- crazy: Animation name
- 4s: Duration
- ease-in-out: Timing function
- 0.5s: Delay
- 12: Iteration count
- backwards: Fill mode
animation-timing-function can take one of the following values: linear, ease, ease-in, ease-out, ease-in-out or cubic-bezier(…).
animation-fill-mode can take one of the following values: none, forwards, backwarts or both.