Jump to content

how to close div


elmohack
 Share

Recommended Posts

So lets just take an example of a drop down menu. You hover it drops down, so how do i make it close with animation if not active? after mouse not on hover. An example of the menu i mean is similar to softlayer.com anyone know?

Link to comment
Share on other sites

The menu is opened by click, as long as you are within the dropdown menu a timer is prevented from triggering, as soon as you leave the dropdown (onmouseout or onmouseleave) the timer is triggered maybe 1 to 2 secs after triggering, the animation is applied to close the dropdown,. also if mouse returns to dropdown (onmouseover) within 1 to 2 seconds the timer is reset to 0.

Edited by dsonesuk
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...