Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div style="width:10em;height:10em;background:green"></div><br>
  <div style="width:10em;height:10em;background:green"></div><br>
  <div style="width:10em;height:10em;background:green"></div><br>
  <style>
    body {
      margin: 4em;
    }
    div {
      transition: transform 0.25s linear;
    }
  </style>
  <script>
    $('div').hover(function() {
        var a = Math.random() * 10 - 5;
        $(this).css('transform', 'rotate(' + a + 'deg) scale(1.25)');
    }, function() {
        $(this).css('transform', 'none');
    });
  </script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers