Problem lies in $().animate function, I had terible speed in one of my
projects, so I rewriten $().animate to custom function.
Problem is that $().animate creates new interval for every propertie
it animates.
for ( var p in prop ) {
var e = new jQuery.fx( this, jQuery.speed(speed,callback,i++), p );
My function creates only one interval for one animation and sets
properties in loop avery "frame":
var e = new jQuery.fx( this, jQuery.speed(speed,callback,0), 'animation' );
var ps = {}, pd = {}, pz = {};
for ( var p in prop ) {
ps[p] = parseInt(jQuery.curCSS(e.el, p), 10);
pd[p] = parseInt(prop[p]) - ps[p];
pz[p] = {opacity:1}[p] ? "" : "px";
}
e.a = function(){
for (var p in ps)
jQuery.attr(this.el.style, p, (ps[p] + pd[p] * this.now)
+pz[p]);
};
e.custom(0, 1);
On 8/10/06, Steve Clay <[EMAIL PROTECTED]> wrote:
> Thursday, August 10, 2006, 5:10:13 AM, Gilles Vincent wrote:
> > http://www.tweosc.org/example/jquery-addressbook/ Opera is really
> > sloooooow..
>
> I get about the same speed as FF, though FF is a little smoother in its
> slide transition. Sometimes Opera seems to wait until the slide interval is
> almost complete and then show the whole block. Browsers tend to get fussy
> when you keep reducing the delay period with setInterval. :/
>
> --
> Steve
> http://mrclay.org/
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/