@odopod/odo-scroll-animation

Performant scroll listeners.

Usage no npm install needed!

<script type="module">
  import odopodOdoScrollAnimation from 'https://cdn.skypack.dev/@odopod/odo-scroll-animation';
</script>

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.