Skip to content
Advertisement

Hoverintent fails to hide div on hover

I hover on top of the div with the id="navbar" and it just won’t seem to do anything.

i have added this to my head

JavaScript

code:

JavaScript

my old code that worked

JavaScript

Advertisement

Answer

Im not familiar with hoverIntent, so this is a general observation.

For over and out you are not passing a reference to a function, but rather the result of the functions as you are calling the function in your object

Try this instead.

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement