DOM Scroll Into View

JSON →
library 2.0.1 ·javascript abandoned
verified May 27, 2026

dom-scroll-into-view is a JavaScript utility designed to programmatically scroll a specified DOM element (`source`) into visibility within a designated parent (`container`). Unlike the native `Element.scrollIntoView()` method, which primarily scrolls the nearest scrollable ancestor or the viewport, this library allows explicit control over which container performs the scrolling. It offers configurable options for horizontal and vertical alignment, as well as pixel offsets from the container's edges. The current stable version is 2.0.1, but it was last published approximately 7 years ago, indicating it is no longer actively maintained. Its core differentiation lies in the `container` parameter and fine-grained positioning, which predates many of the advanced options now available in the native `scrollIntoView` method in modern browsers.

total hits 14
actors 7 distinct systems
last hit 19h ago Bingbot
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
ChatGPT-User
1
Search engines
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany