Change Image Opacity


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



Copy this code and paste it in your HTML
  1. jQuery(document).ready(function() {
  2. jQuery(".main-menu-image").delegate("img", "mouseover mouseout", function(e) {
  3. if (e.type == 'mouseover') {
  4. jQuery(".main-menu-image img").not(this).dequeue().animate({opacity: "0.3"}, 300);
  5. } else {
  6. jQuery(".main-menu-image img").not(this).dequeue().animate({opacity: "1"}, 300);
  7. }
  8. });
  9. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.