Posted By

marcio on 01/19/09


Tagged

textmate plugin opacity jquery crossfade efect


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

benrudolph
bryandease


Crossfade Plugin for jQuery


 / Published in: Other
 

  1. $.fn.crossfade = function(){
  2. return this.each(function(){
  3. var $$ = $(this);
  4. $$.not('.current').hover(function(){
  5. $$.stop().animate({opacity:0},300);
  6. },function(){
  7. $$.stop().animate({opacity:1},600);
  8. });
  9. });
  10. };

Report this snippet  

You need to login to post a comment.