[jQuery] Re: More efficient animation for multiple elements

2008-10-27 Thread c.barr
Scratch that, madesome minor tweaks, new version is here: http://jsbin.com/isive I also had to check for IE and change the easing method since that one looked a bit jerky in IE for some reason. On Oct 27, 2:00 pm, c.barr [EMAIL PROTECTED] wrote: Thanks again guys.  I ended up using

[jQuery] Re: More efficient animation for multiple elements

2008-10-27 Thread c.barr
Thanks again guys. I ended up using ricardobeat's version since the code actually fit my needs better - I needed it to go to exact sizes, not to calculate the size on the fly. I removed the plugin functionality since I'm only using it once, and when I posted my example without one imporant

[jQuery] Re: More efficient animation for multiple elements

2008-10-26 Thread ricardobeat
Thanks Karl. That was actually stupidity of my part, that single replace() call must be slower than most of the script. Number also seems to be slower than parseInt on all modern browsers (despite being 6x faster on IE6) - I like the looks of Number(...) though :] - ricardo On 25 out, 20:54,

[jQuery] Re: More efficient animation for multiple elements

2008-10-25 Thread ricardobeat
In case Remy Sharp is reading this: jsbin is not working here.. when I try to save to a new URL, it goes to http://edit/ Also, pressing backspace results in lag, using delete doesn't. I turned your code into a plugin, and made some changes. Now you pass an object with parameters and only need

[jQuery] Re: More efficient animation for multiple elements

2008-10-25 Thread ricardobeat
It's working again: http://jsbin.com/evodi/ On Oct 25, 4:18 pm, ricardobeat [EMAIL PROTECTED] wrote: In case Remy Sharp is reading this: jsbin is not working here.. when I try to save to a new URL, it goes tohttp://edit/ Also, pressing backspace results in lag, using delete doesn't. I

[jQuery] Re: More efficient animation for multiple elements

2008-10-25 Thread Mauricio (Maujor) Samy Silva
Here another approach: http://jsbin.com/omefi Maurício It's working again: http://jsbin.com/evodi/

[jQuery] Re: More efficient animation for multiple elements

2008-10-25 Thread c.barr
Awesome guys, thanks for the help here, both of these look more effiecient that what I was doing. I'm not in front of a Windows machine right now, so I can't test it in IE, but how does that seem to preform there? On Oct 25, 5:34 pm, Mauricio \(Maujor\) Samy Silva [EMAIL PROTECTED] wrote: Here

[jQuery] Re: More efficient animation for multiple elements

2008-10-25 Thread Karl Swedberg
that looks great, Ricardo. I'm interested to hear why you chose to write this: var normal = Number(this.find('a:first').css('paddingLeft').replace('px','')); instead of this: var normal = parseInt(this.find('a:first').css('paddingLeft'),10); Is there an advantage to your line? I

[jQuery] Re: More efficient animation for multiple elements

2008-10-24 Thread ricardobeat
Maybe you could post a working sample to jsbin.com, that would make things a lot easier. On Oct 24, 4:00 pm, c.barr [EMAIL PROTECTED] wrote: Hate to bump this, but it might get lost otherwise!

[jQuery] Re: More efficient animation for multiple elements

2008-10-24 Thread c.barr
Cool, I've never seen that site before. I made a small demo using my code above: http://jsbin.com/abuxe Strangely enough it's not working properly, and that's a direct copy of what I wrote that works. Basically they are all shrinking, and the on your mouse is over does not get larger. Not