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