public
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
<html>
<head>
<style type="text/css">
#something {
width: 200px;
height: 200px;
background-color: red;
color: white;
border: 4px solid black;
margin: 100px 0 0 80px;
}
</style>
 
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
 
<script type="text/javascript">
$(document).ready(function(){
$('#something').animate({'margin-top': '300px', 'margin-left': '400px'}, 1000);
})
 
</script>
</head>
 
<body>
<div id="something">
<p>this is a handsome red box</p>
</div>
 
</body>
 
</html>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.