elmohack Posted July 17, 2012 Share Posted July 17, 2012 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 More sharing options...
dsonesuk Posted July 17, 2012 Share Posted July 17, 2012 if using JavaScript on its own use onmouseout, jquery hover would use a second function separated by comma from first that would apply animation or whatever on pointer moving away from hovered over element. Link to comment Share on other sites More sharing options...
elmohack Posted July 17, 2012 Author Share Posted July 17, 2012 Im still not able to figure it out.. Did you even have a look at the link? Link to comment Share on other sites More sharing options...
davej Posted July 17, 2012 Share Posted July 17, 2012 http://www.softlayer.com/ Looks fine to me in Chrome20.0 Link to comment Share on other sites More sharing options...
dsonesuk Posted July 17, 2012 Share Posted July 17, 2012 (edited) 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 July 17, 2012 by dsonesuk Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now