Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@formkit/auto-animate

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formkit/auto-animate

Add motion to your apps with a single line of code.

  • 1.0.0-beta.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
194K
decreased by-12.41%
Maintainers
3
Weekly downloads
 
Created

What is @formkit/auto-animate?

@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.

What are @formkit/auto-animate's main functionalities?

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' });

Other packages similar to @formkit/auto-animate

Keywords

FAQs

Package last updated on 26 Jan 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc