Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@bramus/sda-utilities
Advanced tools
Collection of utility functions for use with Scroll-Driven Animations
Collection of utility functions for use with Scroll-Driven Animations
npm i @bramus/sda-utilities
runOnce
– Run Scroll-Driven Animation only onceExample: run the fade-in
animation on the .hero
element only once.
import { runOnce } from '@bramus/sda-utilities';
window.addEventListener('load', (e) => {
const $hero = document.querySelector('#hero');
runOnce($hero, 'fade-in');
});
trackProgress
– Sync the progress of an effect to something externalExample: output the animation progress as text on the page.
import { trackProgress } from '@bramus/sda-utilities';
window.addEventListener('load', (e) => {
trackProgress(document.querySelector('.animation-subject').getAnimations()[0], (progress) => {
document.querySelector('.animation-subject').innerText = `${(progress * 100).toFixed(5)}%`;
});
});
Demos are included in this repository. Run npm run dev
and visit http://127.0.0.1:8000/
to see the demos.
npm run dev
@bramus/sda-utilities
is released under the MIT public license. See the enclosed LICENSE
for details.
FAQs
Collection of utility functions for use with Scroll-Driven Animations
We found that @bramus/sda-utilities 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.