
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.
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
The npm package flippy.js receives a total of 9 weekly downloads. As such, flippy.js popularity was classified as not popular.
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.
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.