@odopod/odo-sticky-headers

A mananger for sticky things

Usage no npm install needed!

<script type="module">
  import odopodOdoStickyHeaders from 'https://cdn.skypack.dev/@odopod/odo-sticky-headers';
</script>

README

Odo Sticky Headers

A mananger for sticky things

Install

npm install @odopod/odo-sticky-headers --save

Quick Start

import OdoStickyHeaders from '@odopod/odo-sticky-headers';

const stickyMananger = new OdoStickyHeaders();
const stickies = Array.from(document.querySelectorAll('.my-sticky'));
stickyMananger.add(stickies);

Documentation

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