How to use the scroll-into-view-if-needed.default function in scroll-into-view-if-needed

To help you get started, we’ve selected a few scroll-into-view-if-needed examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github coderaiser / cloudcmd / client / modules / polyfill.js View on Github external
DOM.scrollIntoViewIfNeeded = (el) => scrollIntoViewIfNeeded(el, {
    block: 'nearest',
});

scroll-into-view-if-needed

Ponyfill for upcoming Element.scrollIntoView() APIs like scrollMode: if-needed, behavior: smooth and block: center

MIT
Latest version published 8 months ago

Package Health Score

78 / 100
Full package analysis

Popular scroll-into-view-if-needed functions