I have a navigation container with vertically ordered links inside. What I would like is for each link to fade in and fly from left to right. I am not sure however how to do this sequentially? I have code that does them all at once but I want to do them one at a time. Or at least have them staggered so there is an arbitary delay between animations firing
Code:
$(document).ready(function(){
$("#navigation a")
.css({opacity:0,"margin-right":"10px"})
.animate({opacity:1,"margin-right":"0"});
});
Update
As Nate commented below,
arguments.calleeis deprecated. Although not everyone agrees on this matter, generally deprecated functionality should be avoid. Thanks to Nate, the following will work without usingarguments.callee.Working Example: http://jsbin.com/idizi/1359/edit
This will get the desired result.
Working Example: http://jsbin.com/idizi/1356/edit
via http://net.tutsplus.com/tutorials/javascript-ajax/quick-tip-easy-sequential-animations-in-jquery/