show-into-view
scroll the element to the viewable area
Usage
import showIntoView from "show-into-view";
// let target show into view
showIntoView(document.querySelector(".target"));
scroll the element to the viewable area
import showIntoView from "show-into-view";
// let target show into view
showIntoView(document.querySelector(".target"));
npm i show-into-view
0
1.0.1
MIT
3.03 kB
7