i am experiencing a problem with using the delay in jQuery’s .animation function, when moving over boxes quickly the animation doesn’t get triggered but when the same thing happens slowly it works without hitches. Any help adding a 500 millisecond delay without breaking the origional script in tact would be awesome, thanks.
Original Script Without Delay:
$(document).on('mouseenter', '.learnmore', function(e){
e.preventDefault();
$(".top", this).css({top:0}).animate({top:-205},{duration:500});
$(".bottom", this).css({top:0}).animate({top:-210},{duration:500});
});
$(document).on('mouseleave', '.learnmore', function(e){
e.preventDefault();
$(".top", this).css({top:-205}).animate({top:0},{duration:500});
$(".bottom", this).css({top:-210}).animate({top:0},{duration:500});
});
Example With Delay: http://jsfiddle.net/nblackburn/jSPMs/
Kind Regards,
Nathaniel Blackburn
Try this:
http://jsfiddle.net/jSPMs/8/