( )

Preview

 
 

Understanding CSS animations

@keyframes define the intermediate steps. The animation property then controls the timing and behaviour. Use the generator above to experiment.

animation shorthand: duration | timing | delay | iteration | direction | fill-mode

Example: animation: slide 1s ease 0s infinite alternate forwards;

Common easing functions

Fill mode explained

forwards retains the last keyframe state after animation ends. backwards applies the first keyframe before the delay. both combines both.