Core Docs | Additional Modules Docs
sb.include('colors.getTweenColor');
var body = $('body');
var transitions = body.cssTransition([
{
prop : 'backgroundColor',
begin : 'FF0000',
end : '00FF00',
onEnd : function(){
//alert('done');
},
onTween : function(effect){
//do something on each tween, this is optional
}
},
{
prop : 'fontSize',
begin : 10,
change : 40,
duration : 48 //this is optional it defualts to the global duration (constructor's second argument or 24 if not neither is defined)
}
], 120);
transitions.start();
myTransition.reset();
myTransition.restart();
myTransition.start();
myTransition.stop();