Create an infinite horizontal scroll animation

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI32 min

About this video

A front-end tutorial that builds an infinite horizontal scroll animation for items like logos. It covers the HTML and CSS setup, checking prefers-reduced-motion with JavaScript, duplicating content, and adding speed and direction options.

What you’ll learn

  • Build a looping horizontal scroll animation with CSS
  • Respect prefers-reduced-motion in an animated component
  • Add speed and direction options to a scrolling animation