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-2.1.0.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <div id="test">
    This is a test div    
  </div>
  <button id="transform-button">Transform</button>
</body>
</html>
 
#test {
  transition: transform 1s;
  /* transition: -webkit-transform 1s; */
}
#test.transformed {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}
 
$(document).ready(function() {
  $('#transform-button').click(function() {
    $('#test').toggleClass('transformed');
  });
});
Output 300px

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

Dismiss x
public
Bin info
turnerhayespro
0viewers