CSS Animations

CSS Animation Properties

You can find out more about each of these properties on the MDN. We will build a few examples below to test it out.

Example 1

Notice in the keyframes, I have to use the left property for both the from and to keyframes, rather than specifying right: 0.

Example 2

Notice the use of percentages in the keyframes for this one. What happens if you add some different easing? What happens if you remove 'forwards'?

Example 3

To solve the easing across the whole animation, each segment gets an animation timing function. Working with the perspective is challenging. I had to work on each segment one at a time to get the effect I wanted.