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

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -