Scrollin.track(document.querySelector('#hi'), {handler: () => alert('hi!')})
Scrollin.track(document.querySelector('#hi'), {handler: () => alert('hi!')})
Scrollin.untrackAll()
Scrollin.untrack(document.querySelector('#hi'))
Scrollin.checkForVisibleElements()
npm i
npm run dev
npm run compile
- You may need to polyfill
window.requestAnimationFrame
- You may need to polyfill
Array.prototype.splice
- You may need to polyfill
Array.prototype.some
๐