OzJS
A microkernel for modular javascript, a toolchain for modern front-end, a micro-framework for growable WebApp.
- An animation library which uses "stage" and "actor" as metaphors
- Automatic switch between CSS transitions and JS tweening
- Provide a flexible way to write asynchronous sequence of actions
- Support CSS transform value
var choreo = require('choreo');
choreo.config(opt) -- choreo.transform(elm, prop, value) -- choreo.Stage(name) -- choreo.Actor(opt|actors, stage) -- var stage = choreo('stageName[optional]'); // Singleton with stageName
stage.isPlaying() -- stage.isCompleted() -- stage.play() -- stage.pause() -- stage.complete() -- stage.cancel() -- stage.clear() -- stage.actor(opt) -- stage.group(actor, actor, ...) -- stage.follow() -- var actor1 = stage.actor(elment, prop, duration, easeing, delay);
var actor2 = stage.actor(option, option);
var actorGroup = stage.group(actor1, actor2);
actor.enter(stage) -- actor.exit() -- actor.fork() -- actor.setto(value) -- actor.extendto(value) -- actor.reverse() -- actor.follow() -- var promise = stage.follow(); // or actor1.follow(), actorGroup.follow()
promise.then() -- promise.done() -- promise.fail() -- promise.bind() -- Under construction...
Copyright (c) 2010 - 2013 dexteryy
Licensed under the MIT license.