
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@apatheticwes/trigger
Advanced tools
Add a class on scroll.
A simple and lightweight way to trigger the addition of a CSS class once on scroll. This is useful to create subtle scroll effects, for example if you wish to draw attention to a particular element.
There is an ES6 module you may consume however you wish. Then:
var triggers = document.querySelectorAll('.animatable');
var delay = 300;
Trigger(triggers, delay);
name | description |
---|---|
delay | The number of pixels to delay triggering the class. |
After cloning the repo:
npm i
npm start
A server will spin up at http://localhost:8080
, where you may play with the various examples.
Please see the test / demo directory
FAQs
A simple trigger on page scroll
We found that @apatheticwes/trigger 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
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.