Posted By

localhorst on 06/17/09


Tagged

toggle


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

vali29
zoblue


jquery fadeToggle


 / Published in: jQuery
 

  1. jQuery.fn.fadeToggle = function(speed, easing, callback) {
  2. return this.animate({opacity: 'toggle'}, speed, easing, callback);
  3.  
  4. };
  5.  
  6. jQuery('.fb_entry').each(function() {
  7. var parent = jQuery(this);
  8. jQuery(this).find(".fb_info_tab").click(function () {
  9. parent.find(".fb_info").fadeToggle('fast','linear',function() {
  10. // callback
  11. });
  12. parent.find("table").toggleClass('toggle');
  13. });
  14. });

Report this snippet  

You need to login to post a comment.