This looks correct, but does not work. I would like the "huh" div to become opaque when the menu freezes. I tried this with fadein / out and it worked, but only once, which was strange.
<script type="text/javascript"> $( function() { $('#menuNav').hover( function() { $('#huh').addClass('.opacity'); }, function(){ $('#huh').removeClass('.opacity'); }); }); </script> .opacity { opacity: 0.3; }
source share