Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Sam Bell
Sam Bell
4,410 Points

Only display dropdown mega menu when you have focused on link for more than 5 seconds

I have built a mega menu for a website. However the client wants the megamenu only to show when you have focused on the main link for 3-5 seconds. You can see an example of what I am trying to achieve here https://www.argos.co.uk/

Any help would be much appreciated!

1 Answer

Hi Stephanie,

I would do some Googling around "hover intent" and see what solutions you find that could work best for you. The article below might be of use:


You can change the time as needed, but would advise against anything longer than 0.5 seconds as I imagine this could be frustrating for the user...

Hope this helps