[jQuery] Re: animation question

2009-01-18 Thread Karl Swedberg
You should be able to set up simple effects plugins like this: jQuery.fn.extend({ widthShow: function(speed, easing, callback) { return this.animate({width: 'show'}, speed, easing, callback); }, widthHide: function(speed, easing, callback) { return this.animate({width: 'hide'},

[jQuery] Re: animation question

2009-01-18 Thread Raúl Negueruela
Thanks that is working.

[jQuery] Re: animation question

2008-02-15 Thread spaceage
One more thing on this--I was thinking about how to make this code less brittle as far as the handling of the spacing. Since the lis in my list contain browser text, the height/spacing of the li can vary depending on a bunch of factors (ie. font size, line-height, etc). Is there a way to have

[jQuery] Re: animation question

2008-02-14 Thread spaceage
andrea--thanks so much for this helpful tip. I get the positioning and overflow stuff, but I'm unclear on the 'li:eq(' + n + ')' syntax-- I would have expected some form of .each perhaps with an incrementing variable to use as the multiplier for determining the top value for each li. If I read

[jQuery] Re: animation question

2008-02-14 Thread andrea varnier
On 14 Feb, 15:04, spaceage [EMAIL PROTECTED] wrote: andrea--thanks so much for this helpful tip. you're welcome :) I would have expected some form of .each perhaps with an incrementing variable to use as the multiplier for determining the top value for each li. If I read this correctly, it

[jQuery] Re: animation question

2008-02-13 Thread andrea varnier
On 13 Feb, 06:41, spaceage [EMAIL PROTECTED] wrote: Is this a reasonable undertaking using jQuery, or is there another better way (or plug in) to do this? jQuery is perfect for this kind of things :) just give the div a overflow:hidden style, and the li's a position:relative, and a very high

[jQuery] Re: ..animation question..

2007-05-14 Thread Alexandre Plennevaux
] On Behalf Of John Resig Sent: lundi 14 mai 2007 6:59 To: jquery-en@googlegroups.com Subject: [jQuery] Re: ..animation question.. Nope! jQuery uses only one timer for all animations now (even across multiple elements). It helps drastically, with performance. --John On 5/13/07, Brandon Aaron

[jQuery] Re: ..animation question..

2007-05-14 Thread Brandon Aaron
Nice. Thanks for clarifying that John! -- Brandon Aaron On 5/14/07, John Resig [EMAIL PROTECTED] wrote: Nope! jQuery uses only one timer for all animations now (even across multiple elements). It helps drastically, with performance. --John On 5/13/07, Brandon Aaron [EMAIL PROTECTED] wrote:

[jQuery] Re: ..animation question..

2007-05-13 Thread Brandon Aaron
The latest SVN uses only one timer per an element but there currently is not a way to animate several elements under one timer. I'm not sure if Interface provides such a method either but perhaps that is where such functionality should exist. -- Brandon Aaron On 5/13/07, spinnach [EMAIL

[jQuery] Re: ..animation question..

2007-05-13 Thread John Resig
Nope! jQuery uses only one timer for all animations now (even across multiple elements). It helps drastically, with performance. --John On 5/13/07, Brandon Aaron [EMAIL PROTECTED] wrote: The latest SVN uses only one timer per an element but there currently is not a way to animate several