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

@formkit/auto-animate

Package Overview
Dependencies
Maintainers
4
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.

  • 0.8.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
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 10 Apr 2024

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