Posted By

talbs on 04/27/09


Tagged

toggle jquery fade animation useful learningjquerycom


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

benrudolph
talbs
vali29
keith


[JQuery] fadeToggle


 / Published in: jQuery
 

URL: http://www.learningjquery.com/2008/02/simple-effects-plugins

Mad props to Karl S. - http://www.learningjquery.com/2008/02/simple-effects-plugins

  1. jQuery.fn.fadeToggle = function(speed, easing, callback) {
  2. return this.animate({opacity: 'toggle'}, speed, easing, callback);
  3. };

Report this snippet  

You need to login to post a comment.