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.
FlippyJS is a helper library for FLIP animations - it allows you to easily animate any changes you make to the DOM, without having to specify the animation manually. All animations are done using CSS animations.
It is exported as a UMD library, supporting both AMD, CommonJS and basic <script>
usage.
Flippy.js exposes the function flip(elements, modifier, [options])
. Pass it the elements you want to animate, a function which should modify the DOM when called, and an optional options object. It returns a Promise
which resolves when the animation is finished.
For specifics, see our docs.
Here's a quick example:
let container = document.querySelector(".notification-container");
flip(
".notification", // the elements to animate
()=>{ // called when we should make the DOM change
container.insertBefore(
generateNotification(),
container.firstChild
);
}
).then(()=>{
console.log("Animation finished");
});
function generateNotification() { /* ... */ }
Internally, FlippyJS uses a FLIPElement
class to represent elements that are being animated. This class is exposed as flip.FLIPElement
, should you wish to play around with it.
More details at our docs.
FAQs
FLIP animation helper; animate DOM changes with ease
We found that flippy.js 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.