View Single Post
Old 12-20-2012, 12:03 PM   PM User | #3
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
If you want the class names to change only after the animation has completed, then use the callback:

Code:
container.slideUp(500, function () {
    // code here will run once the slideUp has completed
    $(this).removeClass("active");
});
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
AndrewGSW is offline   Reply With Quote