kissui.sticky

Simple and lightweight sticky position that works everywhere

Usage no npm install needed!

<script type="module">
  import kissuiSticky from 'https://cdn.skypack.dev/kissui.sticky';
</script>

README

kissui.sticky

Simple and lightweight sticky position that works everywhere.

Keeps elements positioned as "fixed" or "relative" depending on how it appears in the viewport. As a result the element is "stuck" when necessary while scrolling.