Glossary
Scroll-driven animations

Scroll-driven animations

Scroll-driven animations are CSS animations whose progress follows scrolling instead of time. Scrolling down plays the animation forward, and scrolling back up rewinds it.

You link an animation to the scroll position of a container with scroll-timeline and scroll(), or to an element's visibility in the viewport with view-timeline and view(), then assign it with animation-timeline. A reading progress bar and a card that fades in as it enters view are common examples. They are written in CSS with no JavaScript, and they work in Chrome, Safari, and Firefox 159. If you want to know how far visitors actually scroll, look at scroll depth instead.

Relevant courses

No items found.

Other glossary terms

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Hmm…we couldn’t find any results. Try a different search term or reset the filter.
Reset the filter
Load more