Combine Slide and Fade Functions

0
0
$.fn.slideFadeToggle  = function(speed, easing, callback) {
        return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);
}; 

#Usage

$("#something").click(function() {
   $(this).slideFadeToggle();
});
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.