Moving a div with animation
I'm looking to move a div "#menu" to the side when it's clicked on. I'm
using this code
<script>
$("#menu").click(function(){
$("this").animate({
marginLeft: "+=250px",
}, 1000 );
});
</script>
but it doesnt seem to do anything, I dont even get a cursor when I hover
over it. What am I doing wrong here? I'm sure this is a simple fix that
I'm just overlooking.
No comments:
Post a Comment