[jQuery] "Flickering" resize animations
Hello
While playing around with the effects I noticed that some of them
(those, who resize the components) seem to flicker at the start of
the animation. After looking at the Jquery Source I noticed what was
happening: It uses scrollHeight/scrollWidth as base values for the
resizing and afterwards feeds those values into CSS width/height,
thereby increasing the initial size of the component which was about
to be hidden by the size of the paddings and borders.
I suppose it's not worth the effort and extra code size to do this
another way and it's probably best to keep this behaviour, but it's
maybe a good idea to add a hint on http://jquery.com/docs/fx/ that
people should wrap two DIVs and use paddings/borders on the inner div
and use the animation on the outer div, if they intend to do resize
animations on them, because I probably will not be the only one who
does not immediately think of the problem.
--
Markus Peter - SPiN AG
warp@spin.de
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/