
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
go-scroll-to
Advanced tools
Small, smooth, speed-driven and stoppable scrolling to an element or a position, inside the viewport or a parent element.
A fast and lightweight (±595B gzipped) javascript module to smoothly scrollTo. It scrolls by speed instead of duration, to a position or an element, within the window or any scrollable parent element. And it's stoppable. And aside from a modern browser, it's dependency free.
go-scroll-to has been rewritten to an ES6 module. If you still need support for older browsers use version 1.0.3 (npm install go-scroll-to@^1.0.3
)
goScroll();
goScroll({
to: 300,
context: document.getElementById('scrollable')
});
goScroll({
to: document.getElementById('element'),
speed: .3,
context: document.getElementById('scrollable')
});
npm install go-scroll-to
for version 1: npm install go-scroll-to@^1.0.3
to: HTMLElement or Number. Default: 0
offset: Number, offset the target position. Default: 0
context: HTMLElement. Default: window
speed: Float greater than 0, higher is faster. Default: 2
callback: Function, triggered when target is reached or when the user interrupts the animation. The callback receives one argument, which will be 1
if the target position was reached. Default: undefined
Apache 2.0
FAQs
Small, smooth, speed-driven and stoppable scrolling to an element or a position, inside the viewport or a parent element.
The npm package go-scroll-to receives a total of 5 weekly downloads. As such, go-scroll-to popularity was classified as not popular.
We found that go-scroll-to demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.