A small canvas animation utility
Install using bower: bower install jolt
Or just by downloading the tarball
jolt = new Jolt({fullscreen: true, autoclear: true});
document.body.appendChild(jolt.canvas);
// On every animation frame
jolt.frame(function() {
this.draw(function (ctx){
// do some drawing
});
});
// Create a new layer
jolt.create('circle', {visible: false});
jolt.draw('circle', function(ctx){
// do some drawing on it
});
// transition your new layer in
jolt.transition('circle', 'expandIn', function(){
// the circle layer is now visible
});
- Add more transitions
- Testing
- 0.0.1 - First release