navigation - jQuery hover - button stays to be with hover effect -
$("#navigation li.active").next().hover(function() { $(this).css("box-shadow", "inset -4px 0 7px -5px black"); });
when release cursor button, button stays hover effect. can please how make normal hover effect, must shown when cursor on button.
you need add mouse leave handler
$("#navigation li.active").next().hover(function() { $(this).css("box-shadow", "inset -4px 0 7px -5px black"); }, function(){ $(this).css("box-shadow", ""); });
Comments
Post a Comment