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.
@formkit/auto-animate
Advanced tools
@formkit/auto-animate is an npm package that provides simple and efficient animations for DOM elements. It is designed to be easy to use and integrate into existing projects, allowing developers to add animations to their web applications with minimal effort.
Automatic Animations
This feature allows you to automatically animate changes to a container element. When elements are added, removed, or reordered within the container, the changes are animated smoothly.
import autoAnimate from '@formkit/auto-animate';
const container = document.querySelector('#container');
autoAnimate(container);
Custom Animation Durations
You can customize the duration of the animations by passing an options object with a duration property. This allows you to control how long the animations take to complete.
import autoAnimate from '@formkit/auto-animate';
const container = document.querySelector('#container');
autoAnimate(container, { duration: 500 });
Easing Functions
This feature allows you to specify an easing function for the animations. Easing functions control the acceleration and deceleration of the animations, providing a more natural look and feel.
import autoAnimate from '@formkit/auto-animate';
const container = document.querySelector('#container');
autoAnimate(container, { easing: 'ease-in-out' });
Anime.js is a lightweight JavaScript animation library with a simple, yet powerful API. It supports various types of animations including CSS properties, SVG, DOM attributes, and JavaScript objects. Compared to @formkit/auto-animate, Anime.js offers more control and customization options for complex animations.
Framer Motion is a popular animation library for React. It provides a declarative API for creating animations and gestures. While @formkit/auto-animate focuses on automatic animations for DOM changes, Framer Motion offers more advanced features for creating interactive animations and is specifically designed for React applications.
GSAP (GreenSock Animation Platform) is a robust JavaScript library for creating high-performance animations. It is widely used in the industry for its flexibility and power. GSAP can animate anything JavaScript can touch (CSS, SVG, canvas, etc.). Compared to @formkit/auto-animate, GSAP is more suitable for complex and highly customized animations.
AutoAnimate is a zero-config, drop-in animation utility that adds smooth transitions to your web app. You can use it with Vue, React, Solid or any other JavaScript application.
With one line of code, you can improve your interfaces, for example:
Install using your package manager of choice.
# yarn
yarn add @formkit/auto-animate
# npm
npm install @formkit/auto-animate
# pnpm
pnpm add @formkit/auto-animate
Boom! Done. That was fast! 🐇
📖 View the documentation site for usage instructions.
📖 View the documentation site for examples.
📖 View the documentation site for plugin instructions.
Is AutoAnimate saving you time?
Please consider supporting us with a recurring or one-time donation! 🙏
Thank you for your willingness to contribute to this free and open source project! When contributing, consider first discussing your desired change with the core team via GitHub issues, Discord, or other method.
FAQs
Add motion to your apps with a single line of code.
The npm package @formkit/auto-animate receives a total of 142,776 weekly downloads. As such, @formkit/auto-animate popularity was classified as popular.
We found that @formkit/auto-animate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers 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.