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

@ant-design/css-animation

Package Overview
Dependencies
Maintainers
18
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ant-design/css-animation

css-animation

  • 1.7.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
142K
increased by7.78%
Maintainers
18
Weekly downloads
 
Created

What is @ant-design/css-animation?

@ant-design/css-animation is a utility library for handling CSS animations in JavaScript. It provides a simple API to start, stop, and manage CSS animations, making it easier to integrate animations into your web applications.

What are @ant-design/css-animation's main functionalities?

Start Animation

This feature allows you to start a CSS animation on a specified element. The 'fade-in' class is applied to the element, and a callback function is executed once the animation starts.

const cssAnimation = require('@ant-design/css-animation');

const element = document.getElementById('myElement');
cssAnimation(element, 'fade-in', () => {
  console.log('Animation started');
});

Stop Animation

This feature allows you to stop a CSS animation on a specified element. The animation is halted immediately, and any ongoing animation effects are removed.

const cssAnimation = require('@ant-design/css-animation');

const element = document.getElementById('myElement');
cssAnimation.stop(element);
console.log('Animation stopped');

Event Listener for Animation End

This feature allows you to add an event listener that triggers a callback function when the CSS animation ends. This is useful for performing actions after the animation completes.

const cssAnimation = require('@ant-design/css-animation');

const element = document.getElementById('myElement');
cssAnimation(element, 'fade-in', () => {
  console.log('Animation started');
  cssAnimation.addEndListener(element, () => {
    console.log('Animation ended');
  });
});

Other packages similar to @ant-design/css-animation

Keywords

FAQs

Package last updated on 29 Jul 2020

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