i want this animation to start from the beginning but i dont know how to do it.
im using scriptaculous framework.
here is my animation:
and here is my code:
<script type="text/javascript" language="javascript">
//fade div 1
new Effect.Fade('anim1', {duration: 1, from: 0, to: 1,
afterFinish: function (one){ //after finnish 1
//after fade 1 effects
new Effect.Move("photo_1",{delay:2.8,x:0,y:300});
new Effect.Move('anim1', {delay:3,x:-400,y:500});
new Effect.Move('anim2', {delay:3,x:-800,y:500,
afterFinish: function (){ //after finnish 1
new Effect.Move("title_2",{delay:2.8,x:0,y:300});
new Effect.Move('anim2', {delay:3,x:-400,y:500});
new Effect.Move('anim3', {delay:3,x:-800,y:500,
afterFinish: function (){ //after finnish 1
new Effect.Move("photo_3",{delay:2.8,x:0,y:300});
new Effect.Move('anim3', {delay:3,x:-400,y:500});
new Effect.Move('anim4', {delay:3,x:-800,y:500});
}
});
}
});
//new Effect.Move('anim2', {x:0,y:500, queue:'end'});
} // after finnish 1 ENDS
});
</script>