
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@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
The npm package @bramus/sda-utilities receives a total of 27 weekly downloads. As such, @bramus/sda-utilities popularity was classified as not popular.
We found that @bramus/sda-utilities demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.