Posted By

noobcoder on 09/27/12


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

BrockSamsom


Reverse highlight with jquery


 / Published in: jQuery
 

This was originally programmed for a Wordpress Menu (hence the class names)

  1. jQuery(document).ready (function() {
  2. jQuery("li.menu-item > a").hover(
  3. function () {
  4. jQuery(".menu-item > a").not(this).animate({
  5. opacity: .5
  6. }, 0, 'linear', function() {
  7. });
  8. },
  9. function () {
  10. jQuery(".menu-item > a").animate({
  11. opacity: 1.0
  12. })
  13. }
  14. );
  15. });

Report this snippet  

You need to login to post a comment.