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
Post a Comment