setTimeOut jquery problem -


I would like to scroll the window at the top, stop my animation for 1 second, and then use the fade Content, but this code does not work, do you know why?

  $ ('# link') Dump ('click', function () {preloading.show (); $ ('Html, body'). ({'ScrollTop': 0}, 300, function () {$ ('# myDiv') setTimeout (function () {$ (This) .empty () .append (conteneurBio) .hide () .FadeIn ('slow', function () {preloading.hide ();}}}}, 1000);})    

Will not this also work?

  $ ( 'Html, body'). Animate ({'scrollTop': 0}, 300, function () {$ ('# myDiv') .empty () .hide () .append (conteneurBio) .delay (1000). FadeIn ('Slow', function () {preloading.hide ());}});    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -