simple-transition
v1.0.0
Published
A small library for controlling CSS transitions with JavaScript
Downloads
11
Readme
simple-transition
A small library for controlling transitions with JavaScript.
Installation
npm install --save-dev simple-transition
Usage
var transition = require('simple-transition');
var el = document.querySelector('.whatever');
transition(el, {
opacity: 0.5
}, 1000, 'ease-in-out').then(function() {
console.log('done!');
});