Functions / queue
queue(fn, ...)
queue(function fn, ...)

Allow to create a queue of animations.
queue(function fn, ...)
return: object
Code
<script type="text/javascript">	
	function start_1(idCanvas)
	{
		jc('#myCircle_1').queue(
			function(){
				this.animate({radius:40},5000);
			},
			function(){
				this.animate({x:150},5000,function(){
					this.color('#ff0000');
				});
				this.animate({y:150},10000,function(){
					this.color('#000000');
				});
				this.fadeTo(0.5,6500);
			},
			function(){
				this.fadeIn(2000);
			}
		);
	}
	function stop_1(idCanvas)
	{
		jc.clear(idCanvas);
		onload_1(idCanvas);
	}
	function onload_1(idCanvas)	
	{	
		jc.start(idCanvas,true);
		jc.circle(40,40,10,1)
			.id('myCircle_1');
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View