Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  Hover over the gear to see it spin
  <i class="fa fa-gear"></i>
</body>
</html>
 
@-webkit-keyframes my-spin {
  0%   { transform: rotate(0deg) }
  100% { transform: rotate(360deg) }
}
body i:hover {
  /* I want to use this */
  -webkit-animation: spin 2s infinite linear;
  
  /* Instead I have to use this */
  color: red;
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers