[jQuery] Re: combine slide and fade

2009-02-11 Thread Christopher
thx! both works nice! On Wed, Feb 11, 2009 at 4:08 AM, mkmanning wrote: > > You could try this: > jQuery.fn.slideFadeToggle = function(speed, easing, callback) { >return this.animate({opacity: 'toggle', height: 'toggle'}, speed, > easing, callback); > }; > > On Feb 10, 12:31 pm, Paul Mil

[jQuery] Re: combine slide and fade

2009-02-10 Thread mkmanning
You could try this: jQuery.fn.slideFadeToggle = function(speed, easing, callback) { return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback); }; On Feb 10, 12:31 pm, Paul Mills wrote: > Hi Chris, > It's a bit tricky trying to get 2 effects to run at the same ti

[jQuery] Re: combine slide and fade

2009-02-10 Thread Paul Mills
Hi Chris, It's a bit tricky trying to get 2 effects to run at the same time on the same jQuery selection. My approach would be to change the HTML mark up so that the 2 effects can be applied to different selections. So if you have some HTML like this: Toggle This is the content to be h