In a list of links, I only want to activate the hover behavior for those links after the person is hovering over that link for a certain amount of time (say 1 second). So if they happen to just pass over the link (for less than one second) I don't want the hover event to occur.
Does anyone know how to do this or have any examples of this? Thanks!
Yes, There is a plugin for jQuery called hoverIntent that does what you describe.
I highly recomend using the hover intent jquery plugin for this. It's solved this problem for me before and seems to be very well written and light.
You can use delay in your hover chain:
http://api.jquery.com/delay/
There is also a plugin called "hoverIntent" which I would link you to if I was allowed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With