[jQuery] Re: toggle + fade = possible?

2008-02-06 Thread stef
thanks Karl, works perfectly! On Feb 6, 2:50 am, Karl Swedberg [EMAIL PROTECTED] wrote: Hi Stef, You can write a custom animation like this: jQuery.fn.fadeToggle = function(speed, easing, callback) { return this.animate({opacity: 'toggle'}, speed, easing, callback); }; Then, you can

[jQuery] Re: toggle + fade = possible?

2008-02-05 Thread Karl Swedberg
Hi Stef, You can write a custom animation like this: jQuery.fn.fadeToggle = function(speed, easing, callback) { return this.animate({opacity: 'toggle'}, speed, easing, callback); }; Then, you can do this: $(.bio-toggler).click(function () {