Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

JavaScript Scroll Animation Tutorial - Web Animations API and ScrollTimeline

Kevin Powell via YouTube

Overview

Learn how to create scroll-based animations using the Web Animations API and ScrollTimeline in this comprehensive tutorial video. Discover the simplicity of implementing these animations without relying on external libraries. Begin by setting up a scroll tracker with HTML and CSS, then explore the necessary polyfill. Progress through creating and attaching timelines to the scroll tracker, adjusting scroll offsets, and animating elements when they enter the viewport. Advance to animating multiple elements simultaneously and controlling animations based on an element's position on the page. Gain valuable insights into modern web animation techniques and enhance your JavaScript skills for creating engaging, interactive web experiences.

Syllabus

- Introduction
- Creating a scroll tracker - HTML and CSS
- The polyfill
- Creating a timeline for the scroll-tracker
- Attaching the timeline to the scroll-tracker
- Changing the scrollOffsets
- Animating only when an element is in the viewport
- Animating multiple elements
- Animating when the element is in different locations on the page

Taught by

Kevin Powell

Reviews

Start your review of JavaScript Scroll Animation Tutorial - Web Animations API and ScrollTimeline

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.