fade-promise
v1.0.2
Published
Promisified fade in es6 using requestAnimationFrame
Maintainers
Readme
fade-promise

Promisified fade in es6, using requestAnimationFrame
Installation
$ npm install --save fade-promiseUsage
import fadePromise from 'fade-promise';
fadePromise(element, to[, duration]).then((element, to, duration) => {
console.log('done !');
});API
The default duration is 300 ms.
fade(el, opacity[, duration])
Returns a Promise.
License
MIT © Olivier Gasc
