🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

css-animation

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-animation

css-animation

2.0.4
latest
Source
npm
Version published
Weekly downloads
377K
-10.69%
Maintainers
1
Weekly downloads
 
Created

What is css-animation?

The css-animation npm package provides utilities for handling CSS animations and transitions in JavaScript. It simplifies the process of adding, removing, and managing CSS animations and transitions programmatically.

What are css-animation's main functionalities?

Add CSS Animation

This feature allows you to add a CSS animation to an element. The 'fade-in' animation is applied to the element, and a callback function is executed once the animation is complete.

const cssAnimation = require('css-animation');

cssAnimation.addAnimation(element, 'fade-in', () => {
  console.log('Animation complete');
});

Remove CSS Animation

This feature allows you to remove a CSS animation from an element. The 'fade-in' animation is removed from the element.

const cssAnimation = require('css-animation');

cssAnimation.removeAnimation(element, 'fade-in');

Add CSS Transition

This feature allows you to add a CSS transition to an element. The 'width 2s' transition is applied to the element, and a callback function is executed once the transition is complete.

const cssAnimation = require('css-animation');

cssAnimation.addTransition(element, 'width 2s', () => {
  console.log('Transition complete');
});

Remove CSS Transition

This feature allows you to remove a CSS transition from an element. The 'width 2s' transition is removed from the element.

const cssAnimation = require('css-animation');

cssAnimation.removeTransition(element, 'width 2s');

Other packages similar to css-animation

Keywords

css-animation

FAQs

Package last updated on 22 Aug 2019

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