JavaScript animations

Hey ,

I'm thrilled to help you learn JavaScript. Unfortunately, you've landed on a page where you cannot access with your current purchase.

Please upgrade (use this link) access this content.

I'm super eager to help you learn more!

JavaScript animations

JavaScript animations come in handy when you find it difficult to create your animations with CSS Transitions or CSS Animations. They are very useful and very easy to configure.

The ideal way to animate elements with pure JavaScript is to use through the Web Animations API.

Unfortunately, the Web Animations API is not well supported yet.

The Web Animations API is not well supported yet
The Web Animations API is not well supported yet

If you want to create animations with JavaScript, the easiest way is to use animation libraries.

Animations libraries

There are many libraries you can use. Examples are:

  1. GreenSock Animation API
  2. jQuery.animate
  3. Velocity.js

Of the three (and many others not listed here), I highly recommend to use GreenSock Animation API. You’ll learn how to use it in the next lesson.