@odopod/odo-scroll-animation
v1.2.0
Published
Performant scroll listeners.
Downloads
705
Readme
Odo Scroll Animation
Performant scroll listeners.
Install
npm install @odopod/odo-scroll-animation --save
Quick Start
import OdoScrollAnimation from '@odopod/odo-scroll-animation';
const scrollElement = document.getElementById('scroller-thing');
const id = OdoScrollAnimation.add(scrollElement, function (scrollTop) {
console.log('scroller-thing scrolled');
});
Documentation
Visit the Odo component directory for demos, code examples, and documentation.