3 ms·
The library isn't about scroll hijack, is about "animate" anchor links. At least from what I get from the project. The scroll works as usual.
by imaginamundo 10y ago
The library isn't about scroll hijack, is about "animate" anchor links. At least from what I get from the project. The scroll works as usual.
- staktrace 10y agoAny scrolling on the main thread (i.e. driven by JS) is subject to jank, not just user-input scrolling. CSS-based smooth scrolling of anchor links can be offloaded to the compositor because the browser knows ahead of time what is going to happen, and in those cases the smooth scroll animation can run smoothly even if the main thread is bogged down.
- kentt 10y agoIt is a scroll hijacking library, it's just not as wretched as most. It's not animating the links but rather animating scrolling to the links by slowing the scrolling.