scroll-into-view-if-needed

popular esm cjs
Ponyfill for upcoming Element.scrollIntoView() APIs like scrollMode: if-needed, behavior: smooth and block: center
Version 3.1.0 License MIT
Keywords
behavior-smoothif-neededpolyfillponyfillscrollscroll-into-viewscrollIntoViewscrollIntoViewIfNeededscrollModesmoothsmoothscrolltypescript
<script type="module"> import scrollIntoViewIfNeeded from 'https://cdn.jsdelivr.net/npm/scroll-into-view-if-needed@3.1.0/+esm' </script>