Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div></div>
</body>
</html>
 
div {
  width: 50px;
  height: 50px;
  background: darkblue;
  position: relative;
  -webkit-animation-name: move-around; 
  -webkit-animation-duration: 5s; 
  -webkit-animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-direction: alternate;
}
@-webkit-keyframes move-around {
  0% { top: 0; left 0; }
  25% { top: 0; left: 200px; }
  50% { top: 200px; left: 200px}
  75% { top: 200px; left: 0px; }
  100% { top: 0; left: 0; }
}
Output

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

Dismiss x
public
Bin info
arjunvenkatpro
0viewers