Posted By

ryarwood on 01/30/12


Tagged

javascript jquery example client travismathew


Versions (?)

jQuery onRollOver / onRollOut on div


 / Published in: JavaScript
 

  1. $('.fadeClip').mouseenter(function(e) {
  2. $(this).find("img").animate({ opacity: .25}, 250);
  3. $(this).find(".fadeItem").animate({ left: "13px" }, 250);
  4. $(this).find(".fadeSub").delay(250).fadeTo(250, 1);
  5. }).mouseleave(function(e) {
  6. $(this).find("img").animate({ opacity: 1}, 250);
  7. $(this).find(".fadeItem").animate({ left: "8px" }, 250);
  8. $(this).find(".fadeSub").fadeTo(100, 0);
  9. });

Report this snippet  

You need to login to post a comment.