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

@material/animation

Package Overview
Dependencies
Maintainers
14
Versions
1668
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/animation

Animation Variables and Mixins used by Material Components for the web

  • 15.0.0-canary.ed7e82ded.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
954K
decreased by-2.36%
Maintainers
14
Weekly downloads
 
Created

What is @material/animation?

@material/animation is a utility package from Material Design Components (MDC) that provides a set of functions and constants to help create smooth and consistent animations. It is designed to be used with other MDC components to ensure that animations follow Material Design guidelines.

What are @material/animation's main functionalities?

Animation Curves

Provides predefined animation curves such as easeInOut, easeOut, and easeIn that can be used to create smooth transitions and animations.

const { easeInOut, easeOut, easeIn } = require('@material/animation');

// Example usage in a CSS-in-JS style object
const styles = {
  transition: `all 250ms ${easeInOut}`
};

Animation Durations

Includes standard durations for animations, such as short, medium, and long, to ensure consistency across different components.

const { duration } = require('@material/animation');

// Example usage in a CSS-in-JS style object
const styles = {
  transitionDuration: `${duration.standard}ms`
};

Keyframe Animations

Provides utility functions to handle keyframe animations and ensure compatibility across different browsers.

const { getCorrectEventName } = require('@material/animation');

// Example usage in JavaScript
const animationEndEvent = getCorrectEventName(window, 'animationend');
element.addEventListener(animationEndEvent, () => {
  console.log('Animation ended');
});

Other packages similar to @material/animation

Keywords

FAQs

Package last updated on 28 Mar 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