-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
Sometimes you need a fake scroll container instead of window, for things like basement menus or certain page transitions. This requires tracking an element's scroll events, rather than window.
Thankfully, the project I'm working on has down away with its scrolljacked container. But I thought I'd raise this for down the road.
Normally, I'd use my own morlock.js for this, but I'm tired of maintaining it so I put this TODO on your plate instead :)
The important parts are: https://github.com/tdreyno/morlock.js/blob/master/streams/scroll-stream.js#L15
And: https://github.com/tdreyno/morlock.js/blob/master/core/dom.js#L42-L52
Thanks for this simple project 🍻