jquery - Slide DIV from left after load the website -


i need create jquery script slide div

<left: -200px>  

to

<left: 0px>  

after page loads. i've tried following, doesn't work:

$(window).load(function () {     $("divid").css("margin-left", -$(this).width()).animate({         marginleft: 0     }, 1000); }); 

i have no idea why answering .... should , learn how ask question in stackoverflow first.. looks first time..

but anyways....what need $.animate()

perform custom animation of set of css properties.

$('#divid').animate({      left: '0'  }, 5000); 

Comments

Popular posts from this blog

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -