@odopod/odo-window-events

Reusable, throttled events on the window object.

Usage no npm install needed!

<script type="module">
  import odopodOdoWindowEvents from 'https://cdn.skypack.dev/@odopod/odo-window-events';
</script>

README

Odo Window Events

Reusable, throttled events on the window object.

Install

npm install @odopod/odo-window-events

Quick Start

import OdoWindowEvents from '@odopod/odo-window-events';

OdoWindowEvents.onScroll(function (scrollTop, scrollLeft) {
  console.log('Scrolled', scrollTop, scrollLeft);
});

Documentation

Visit the Odo component directory for demos, code examples, and documentation.