Animating with the JavaScript Web Animations API
What you'll learn
- Animating with JavaScript using the Web Animations API
- How to convert CSS animations to JavaScript
- How to create animation based interaction with JavaScript
Requirements
- You should understand HTML and CSS and have some familiarity with JavaScript
- A text editor like Sublime Text or VSCode and a web browser
Description
This course teaches you how to animate on the Web using the JavaScript Web Animations API W3C standard.
You'll learn how to transfer what you already know how to do in CSS, into JavaScript and then add extra capabilities like pausing and playing animations, starting one animation half way through another. Combining different animations together and synchronising a number of animations. All things you just can't do presently with CSS alone.
We will start by re-making some basic CSS animations with the JavaScript Web Animations API, then once we get through the fundamentals, we will start making our project together — a interactive set of sequenced animations.
By the end of the course you should have a solid understanding of how to animate on the Web with the JavaScript Web Animations API.
What we will build
We will be building, from scratch, a multi-scene piece of interaction with just HTML, CSS and JavaScript and no external libraries. Instead of CSS we will use the JavaScript Web Animations API to handle our animations and learn about all the extra capabilities it provides over CSS alone.
Along the way, we will also look at how to setup a very simple local server that will live reload changes to our code as we work.
The code is free to download on GitHub and split into folders for each video; each one providing the code as it's left at the end of each video.
What you need
All you need to get started with this class is a text editor like Sublime Text or VS Code, a modern web browser and a tolerance for mediocre jokes.
Who this course is for:
- Front-end Developers looking to create animations with JavaScript
- JavaScript developers looking to animate elements
Instructor
Hello, I'm Ben Frain. I'm the author of web development books including the best-selling, "Responsive Web Design with HTML5 and CSS", "Sass and Compass for Designers" and "Enduring CSS".
In my day job I work as a UI-UX Design Technical Lead.
Before the web I worked as an underrated (and modest) TV actor and technology journalist, having graduated Salford University with a degree in Media and Performance (fat lot of use that was!).
I've written four equally underrated screenplays (admittedly, my opinion) and still half the fading notion I may sell one.
Outside of work I enjoy simple pleasures: playing indoor football while my body (and wife) still allow it and wrestling with my two sons.