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 class='box'>
    <div class='ele'>123456</div>
  </div>
  
</body>
</html>
 
.box{
    width:100%;
    height:300px;
    background-color:#999;
}
.ele{
    width:90%;
    height: 90%;
    background-color:#ddd;
    animation: testCC 1s ease forwards;
}
@keyframes testCC{
    0%   {transform: translate3d(100%,0,0);}
    100% {transform: translate3d(5%,0,0);}
}
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers