Page 1 of 1
Can this be altered to work on Hover?
Posted: Thu Nov 06, 2014 4:28 am
by simonmlewis
http://tympanus.net/codrops/2013/03/05/ ... down-menu/
I need to make the menu at the top work on hover AND CLICK. So it can work by the desktop mouse hovering over it, but on mobile, it will work with the tap on the screen.
I can make it work on "mouseover", however the dropdown part disappears when you leave the menu item.
Thanks.
Re: Can this be altered to work on Hover?
Posted: Thu Nov 06, 2014 6:45 am
by Celauran
simonmlewis wrote:I can make it work on "mouseover", however the dropdown part disappears when you leave the menu item.
Really? Shouldn't do that. Can you post your code (ie. with your modifications)?
Re: Can this be altered to work on Hover?
Posted: Thu Nov 06, 2014 8:24 am
by simonmlewis
Actually ignore this one. I've been told they want it to be click, and not hover. Hover ones can be annoying.
Thing is, if you set it to hover, then you have to set it to "mouseout" as well - the moment you do that, the menu that appears, disappears anyway.
Re: Can this be altered to work on Hover?
Posted: Thu Nov 06, 2014 8:33 am
by Celauran
simonmlewis wrote:Thing is, if you set it to hover, then you have to set it to "mouseout" as well - the moment you do that, the menu that appears, disappears anyway.
Not really. You can have mouseover toggle visibility so the initial hover switches it on and leaves it on until you hover again to close it.