diff --git a/css-animationworklet/Overview.bs b/css-animationworklet/Overview.bs index 033cff09..2f16c426 100644 --- a/css-animationworklet/Overview.bs +++ b/css-animationworklet/Overview.bs @@ -747,7 +747,11 @@ animates fully to close or open position depending on its current position. @@ -296,7 +306,11 @@ registerAnimator('twitter-header', class { await CSS.animationWorklet.addModule('parallax-animator.js'); -const scrollTimeline = new ScrollTimeline($scrollingContainer, {timeRange: 1000}); +const scrollTimeline = new ScrollTimeline({ + scrollSource: $scrollingContainer, + orientation: 'block', + timeRange: 1000 +}); const scrollRange = $scrollingContainer.scrollHeight - $scrollingContainer.clientHeight; const slowParallax = new WorkletAnimation(