~/talk

Scroll-Driven Animations with CSS

Talkat JSHeroes 2025 · 2025-05-29..05-30· [web-animation, web-performance]
slides:none on file

Claim: CSS scroll-driven animations let animations scrub with scroll offset without JavaScript, using a new scroll() timeline and view() timeline. Demos include a working Cover Flow implementation, a reading-progress bar, cover-to-header shrink, and sync to video/3D objects — all running on the compositor (Chrome 115+, Safari TP, Firefox nightly experimental) so animations avoid main‑thread jank. Limitations: some things still run on the main thread (clip path, custom properties), animation-range/view ranges control when animations start and end.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06What are scroll-driven animations
  3. 2:30Why avoid JS for scroll animations
  4. 4:43CSS animations and compositor advantage
  5. 5:49Scroll-driven animation spec
  6. 6:55Respecting user motion preferences
  7. 7:36Progressive enhancement and browser support
  8. 7:59Understanding scroll timelines
  9. 9:44Creating scroll timeline with CSS
  10. 11:53Simplifying scroll timeline syntax
  11. 12:59Named scroll timelines and nested scrollers
  12. 14:21Demo fixing header with scroll animation
  13. 15:45Animation range for scroll distance control
  14. 17:13Introducing view timelines
  15. 18:16Demo: view timeline with album covers
  16. 20:21Reducing view timeline instances with named timelines
  17. 21:24Animation range values for view timelines
  18. 23:10Visualizing view timeline ranges
  19. 24:32Combining entry and exit animations
  20. 25:55Demo: partial entry animations
  21. 26:57Extended keyframes for entry and exit effects
  22. 27:17Using calc with animation ranges
  23. 28:01Common pitfalls with animation shorthand
  24. 28:41Broadening timeline scope for non-child elements
  25. 29:48Scroll-driven vs scroll-triggered animations
  26. 30:28Hacking scroll-triggered effects with style queries
  27. 31:35Future CSS animation triggers
  28. 31:55Syncing videos and 3D objects to scroll
  29. 32:17Scroll-driven view transitions demo
  30. 32:38Limitations of compositor animations
  31. 33:44Debugging scroll animations in DevTools
  32. 34:28Chrome extension for scroll debugging
  33. 35:11Resources and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.