Socket
Socket
Sign inDemoInstall

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 ui component for react


Version published
Weekly downloads
448K
increased by7.08%
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

FAQs

Package last updated on 07 Jul 2015

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