0.0.5 • Published 8 years ago

animaze v0.0.5

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

animaze

Supersmall animation library.

npm install --save animaze

import animaze from 'animaze';
// Tip: If you are not using webpack/node.js you can use UMD version:
// animaze/lib/animaze.umd.js

const animazeOpacity = () => animaze({
    tick: v => { myDiv.style.opacity = v; }, // v is varied from 0 to 1
                                             // during animation
});

const animazeScroll = () =>  animaze({
    tick: v => window.scrollTo(0, 200 * v),
    duration: 500, // default is 240
    ease: k => 0.5 * (1 - Math.cos(Math.PI * k)), // this is default one
});

animazeOpacity().then(animazeScroll); // animaze returns Promise
0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago