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.
@foundit/micro-animations
Advanced tools
A light wrapper around the Web Animation API to swiftly create awaitable micro animations from JS.
A light wrapper around the Web Animation API to swiftly create awaitable micro animations from JS.
Often times using transitions in the CSS creates constant custom code for every animation, prone to timing problem between CSS timing and JS. By moving the transitions from CSS to JS the result is both cleaner code, less code and perfect timing as a result.
npm install @foundit/microAnimation
Minimum is to pass an element and a transformEnd object containing the properties you want to animate to. Transform start is picked up from the element's computed style.
async function close() {
await microAnimation({
element,
duration: 300,
transformEnd: { opacity: 0 },
})
removeElement()
}
For a keyframe animation, pass an array of transformEnd objects. The offset property is optional, and defaults to 0. In the example below, the background color will change to orangered at 70% of the animation.
...
await microAnimation({
element,
duration: 1000,
easing: 'ease-out',
transformEnd: [{
backgroundColor: 'orangered',
opacity: 1, offset: 0.7
}, {
transform: "translateX(0)",
backgroundColor: 'blue'
}]
...
0.0.3
FAQs
A framework agnostic light shim over the Web Animation API to swiftly create awaitable micro animations from JS.
The npm package @foundit/micro-animations receives a total of 625 weekly downloads. As such, @foundit/micro-animations popularity was classified as not popular.
We found that @foundit/micro-animations 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.
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.