skrollparent

given an element, returns the scrolling parent of that element

Usage no npm install needed!

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

README

Given an element, getScrollParent returns the scrolling parent of that element.