I try to postpone an alert, but I canβt get it to work, it always appears when #foo freezes and increases in size:
$('#foo').hover(function() { $(this).animate({width :'400px'}, 'slow'); }, function() { $(this).delay(2000).animate({width :'40px'}, 'slow'); alert('Im an alert message'); });
but I want it to show only after #foo has returned to its original state ...
Gemma source share