jquery navigate in code
- by galilee
Hi trying to fade out elements on the page when a navigation link is clicked, then go to the clicked link:
$("#navigation a").click(function() {
var $clickobj = $this;
$("div#content").animate({opacity: 'toggle', paddingTop: '0px'}, 'slow',function(){
$("div#navigation").animate({opacity: 'toggle', paddingTop: '0px'}, 'slow', function(){
$("div#logo").animate({opacity: 'toggle', paddingTop: '0px'}, 900, function(){
$clickobj.click();
});
});
});
return false;
});
but this just navigates straight away with the fade out...any ideas?