make jquery animation faster
Posted
by darkandcold
on Stack Overflow
See other posts from Stack Overflow
or by darkandcold
Published on 2010-05-19T04:33:34Z
Indexed on
2010/05/19
4:40 UTC
Read the original article
Hit count: 277
jQuery
|jquery-animation
Hello,
while loading a page i am using a animation,
wid=jQuery(window).width()+400;
jQuery('#div').animate({'marginLeft' : '+='+wid+'px'},{queue:false, duration:20000 })
div, is being moved to left in 20 sec.
I use this animation for loading page.
when page is loaded <body onload=myfunction()>
is called.
when myfunction is called (page is loadad completly) i want to my animation faster.
how to change an animation duration while it's animating?
© Stack Overflow or respective owner