Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div id='foo'></div>
</body>
</html>
 
#foo {
    width: 90px;
    height: 90px;
    background: indigo
}
 
function AnimateRotate(d){
    $({deg: 0}).animate({deg: d}, {
        step: function(now, fx){
            $("#foo").css({
                 transform: "rotate(" + now + "deg)"
            });
        }
    });
}
AnimateRotate(90);
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers