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 id="testDiv" style="width:100px;height:100px;background-color:#188B18;position:absolute;"></div>
   
<script type="text/javascript">
  var el = document.getElementById("testDiv");
  var nAdd = 0;
  var nInterval = setInterval(function(){
    nAdd += 10;
    el.style.webkitTransform = "translate3d(" + nAdd + "px,0,0)";
    if(nAdd >= 400){
      clearInterval(nInterval);
      nInterval = null;
    }
  }, 16);
</script>  
</body>
</html>
Output

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

Dismiss x
public
Bin info
jindojspro
0viewers