[jQuery] Re: animate padding start value - Firefox (getComputedStyle)

2009-05-22 Thread Liam Byrne
Yup, setting the individual padding improves matters slightly if you set the 4 individuals in CSS IE - works, as before Opera - works, as before FF - jumps to zero, then animates Safari - jumps to zero, then animates Chrome - jumps to zero, then animates The only way to get all 5 browsers to

[jQuery] Re: animate padding start value - Firefox (getComputedStyle)

2009-05-22 Thread Jason Persampieri
Oh... gotcha. Yes, mine doesn't error-out either. It's just that if I'm trying to animate to 12px from whatever is currently set in the stylesheet, the padding first 'jumps' to 0px, then animates to 12px. So, for yours, maybe if you tried setting the 4 sides individually (or set the padding on t

[jQuery] Re: animate padding start value - Firefox (getComputedStyle)

2009-05-22 Thread ryan.j
have you tried setting a longer duration (or just the 'slow' attrib) to see if that cures the jumpyness? On May 22, 2:51 pm, Liam Byrne wrote: > It has worked for me by just setting a single value in the CSS and using > a single value in the animate function; as I said, the only issue I > encoun

[jQuery] Re: animate padding start value - Firefox (getComputedStyle)

2009-05-22 Thread Liam Byrne
It has worked for me by just setting a single value in the CSS and using a single value in the animate function; as I said, the only issue I encountered was that FF, Chrome & Safari "jumped" as if I'd simply set the value. Maybe that's related to what you're seeing, but it "works" on some le

[jQuery] Re: animate padding start value - Firefox (getComputedStyle)

2009-05-21 Thread Jason Persampieri
The problem occurs when trying to determine the 'start' value. getComputedStyle explodes 'padding' into its four individual components. If you want to animate padding (or margin), you either have to specify each one in the first argument, or explicitly set the initial padding on the element (as o

[jQuery] Re: animate padding start value - Firefox (getComputedStyle)

2009-05-21 Thread Liam Byrne
Maybe I'm wrong, but I think myElement.animate( {padding: 12px} ) won't work anyway ? Shouldn't it be myElement.animate( {padding: 12} ) That said, tests here show that only IE & Opera offer a smooth animation - the others (FF, Chrome & Safari) seem to jump L Jason Persamp