JavaScript Scroll Animation Tutorial | Web Animations API + ScrollTimeline

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUIWeb Design26 min

About this video

A hands-on tutorial on building scroll-linked animations in the browser with the Web Animations API and ScrollTimeline, including a polyfill, timelines, scroll offsets and animating multiple elements. It suits developers and designers who already write HTML and CSS.

What you’ll learn

  • Create a scroll tracker with HTML and CSS
  • Attach a ScrollTimeline to an animation with the Web Animations API
  • Animate elements only while they are in the viewport