JavaScript Scroll Animation Tutorial - Web Animations API and ScrollTimeline
Kevin Powell via YouTube
Get 20% off all career paths from fullstack to AI
Finance Certifications Goldman Sachs and Amazon Teams Trust
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This tutorial demonstrates how to create scroll-linked web animations with JavaScript’s Web Animations API and ScrollTimeline. It covers a polyfill, scroll trackers, custom offsets, viewport-based animations, and multiple animated elements.
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