Is this when you knock over the bottom edge?
If so, it fires the mouseenter event, and then the mouseleave event right after it never fully animates.
Add logs to your javascript for your code in question
$('.employee_container').hover( function(){ $(this).addClass('active'); console.log('over'); }, function(){ $(this).removeClass('active'); console.log('off'); } );
You may need to add something so as not to trigger the mouseleave event until the animation finishes.
something like this see fiddle http://jsfiddle.net/vDQwQ/10/
var animating = false; var callback = function(){ animating = false }; $('.employee_container').hover( function(){ if(animating) return; animating = true; $(this).addClass('active');
If you roll over quickly and quickly, it can get confusing.
The best way to prevent something like this is to make it work on a click, not a hang.
Hope this helps
source share