jquery fadeToggle


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



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.