Socket
Socket
Sign inDemoInstall

@material/animation

Package Overview
Dependencies
Maintainers
1
Versions
1668
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/animation - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

index.js

3

package.json
{
"name": "@material/animation",
"description": "Animation Variables and Mixins used by Material Components for the web",
"version": "0.1.0",
"version": "0.1.1",
"license": "Apache-2.0",
"main": "index.js",
"repository": {

@@ -7,0 +8,0 @@ "type": "git",

# mdc-animation
mdc-animation is a sass / css library which provides variables, mixins, and classes for Material Design animation, based off of the [motion guidelines](https://material.google.com/motion/duration-easing.html#duration-easing-common-durations). Currently, it only covers easing curves.
mdc-animation is a Sass / CSS / JavaScript library which provides a toolbelt for Material Design animation, based off of the [motion guidelines](https://material.google.com/motion/duration-easing.html#duration-easing-common-durations). Currently, it only covers easing curves.

@@ -100,1 +100,19 @@ ## Installation

arise.
### JavaScript
MDC Web ships with a set of utility functions designed to make animations easier to implement.
### Using Utility Functions
To use:
```js
import {getCorrectEventName} from '@material/mdc-animation';
const eventToListenFor = getCorrectEventName(window, 'animationstart');
```
| Method Signature | Description |
| --- | --- |
| `getCorrectEventName(windowObj: Object, eventType: string)` | Returns a JavaScript event name. Prefixed if necessary. |
| `getCorrectPropertyName(windowObj: Object, eventType: string)` | Returns a CSS property name. Prefixed if necessary. |

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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