
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
scrolltodiv
Advanced tools
scrolls to multiple specific div classes or id specified on mouseWheel or trackpad movement.
Scrolls to multiple specific div classes or id specified on mouseWheel or trackpad movement.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
let scrollToDiv = function () {
let scrollDivs = ['#id1', '.class1', '.class2', '#id2'];
//replace elements you want to scroll to in scrollDivs array in order here.
let currentDivState = 0;
let waitState = false;
let firstScroll = true;
$(window).bind('mousewheel', function (event) {
event.preventDefault();
setTimeout(function () {
waitState = true;
}, firstScroll ? 1 : 1000);
if (firstScroll) {
setTimeout(function () {
firstScroll = false;
}, 10);
}
if (waitState) {
waitState = false;
if (event.originalEvent.wheelDelta >= 0) {
if (currentDivState > 0) {
currentDivState -= 1;
}
}
else {
if (currentDivState < scrollDivs.length - 1) {
currentDivState += 1;
}
}
$('html, body').animate({
scrollTop: $(scrollDivs[currentDivState]).offset().top
}, 750, 'easeInOutExpo');
}
});
};
scrollToDiv();
Released under the MIT license.
FAQs
scrolls to multiple specific div classes or id specified on mouseWheel or trackpad movement.
We found that scrolltodiv 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.