jQuery animation callback not working
Posted
by Tim
on Stack Overflow
See other posts from Stack Overflow
or by Tim
Published on 2010-04-25T16:21:52Z
Indexed on
2010/04/25
16:23 UTC
Read the original article
Hit count: 366
jQuery
|jquery-animate
Hey, if anyone could please help me then it would be much appreciated. Basically, I want to navigate to a new page once this animation has complete. Using the code below, the animation works fine but hen the navigation doesn't happen.
Does anyone have any ideas or suggestions? Many thanks, Tim
$("a").click(function(event){
event.preventDefault();
var driver = $(this).attr('href');
$(".content-center").animate({height: "0px"}, 500, function(){
navigate(driver);
});
});
© Stack Overflow or respective owner