Javascript library to handle several animations at once using a singleton approach. One window.requestAnimationFrame instance will be running in the background to orchest all animations.
- Yarn: yarn add animation-stepper
- NPM: npm install animation-stepper
- github: https://github.com/ajsoriar/animation-stepper
$ yarn add animation-stepper
# or
$ npm install animation-stepper
<script src="./node_modules/animation-stepper/dist/animation-stepper.min.js"></script>
<script>
AS.attachAnimation({
stepsNum: 5,
milisecondsStep: 25,
func: function( _animation ) {
...
},
onStart: function() {
console.log("animation: onStart!");
...
},
whenFinish: function() {
console.log("animation: whenFinish!");
...
}
})
</script>
Full examples available in demo folder.
$ yarn install
grunt build
flying-canvas is MIT licensed.