Reverse highlight with jquery


/ Published in: jQuery
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.