Hello, I can't call callback after animation ends. Here is my animation function:
function animate( parentElement, callback )
{
parentElement.animate({
"height" : "hide", "opacity" : 0.0
}, { duration : "slow"}, "linear", callback);
}
And here is calling it:
animate( $(this).parent(), function() { alert('test'); } );
Alert doesn't show, why?