Event Override

Demonstrates a mouseenter event canceling out a timeout function in a mouseleave event when mouse enters another element. timeout function in mouseleave event has the opportunity to fire when mouse does not enter another element that would cancel it before it has the chance to fire.

This allows the consecutively hovered elements to retain their styles and the counter to increase.