overflow: clip works exactly the same as overflow: hidden , except for the fact that overflow: clip does not create a scroll container. […] unlike overflow: hidden which still allows programmatic scrolling, overflow: clip forbids scrolling entirely, through any mechanism, and therefore the box is not a scroll container. Scroll-Driven Animations: You want overflow: clip, not overflow: hidden > If you create a scroll-driven animation and find that `scroll(nearest)` is not working, check for `overflow: hidden` elements up the DOM tree and change them to `overflow: clip`.https://t.co/mzmt1NAUON pic.twitter.com/1vQrD56Z5O — Bram.us (by @bramus) (@bramusblog) February 14, 2024