Posted By

dottDesign on 06/26/10


Tagged

javascript textmate jquery hover fade


Versions (?)

JQuery Slow Hover Fade


 / Published in: Other
 

  1. $('.selectorClass').hover(
  2. function(){
  3. $(this).stop().fadeTo('slow',0.4);
  4. },
  5. function(){
  6. $(this).stop().fadeTo('slow',1);
  7. });
  8.  
  9.  
  10.  
  11. $('.selectorClass2').mouseenter(function(){
  12. $(this).stop().fadeTo('slow',0.4);
  13. }).mouseleave(function(){
  14. $(this).stop().fadeTo('slow',1);
  15. });
  16.  
  17.  
  18.  
  19. $('.selectorClass3').hover(function(){
  20. this.check = this.check || 1;
  21. $(this).stop().fadeTo('slow',
  22. this.check++%2==0 ? 1 : 0.4);
  23. });
  24.  

Report this snippet  

You need to login to post a comment.