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'},
Thanks that is working.
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
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
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
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
] 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
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:
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
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
10 matches
Mail list logo