New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

animate-element

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

animate-element

Easily animate CSS properties using requestAnimationFrame

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

Animate-element

Easily transform CSS properties using requestAnimationFrame

Installation

$ yarn add animate-element

or

$ npm install animate-element

Usage

import AnimateElement from 'animate-element';
 
let myElement = document.getElementById('#myElement');
 
new AnimateElement(myElement, {
	width:   100,  
	height:  200,  
	opacity: .75,  
}, {
	duration: 250,
	easing: false,
}).then(() => console.log('Completed Animation'));

As you can see a promise is returned.

Note: values are absolute. So setting a width of 100 means the element will animate untill it is 100px wide, regardless of the current width of the element.

Keywords

css

FAQs

Package last updated on 09 May 2018

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