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>
  <style>
    
  </style>
</head>
<body>
  <div class="container">
    <div class="slide" id="slide_1">
    </div>
    <div class="slide" id="slide_2">
    </div>
  </div>
</body>
</html>
 
.container{
        width:400px;
        height:400px;
        position:relative;
        overflow:hidden;
    }
    .slide{
    position:absolute;
    width:400px;
    height:400px;
    left:0px;
    top:0px;
    -webkit-animation:slide 10s infinite 0s;
        }
        #slide_1.slide{
            background:url("http://pic.nipic.com/2007-11-09/200711912453162_2.jpg") no-repeat center center;
            background-size:cover;
        }
        #slide_2.slide{
            background:url(http://www.xxjxsj.cn/article/UploadPic/2009-10/2009101018545196251.jpg) no-repeat center center;
            background-size:cover;
            -webkit-animation-delay: 5s;
            -webkit-transform: translatex(100%);
        }
        @-webkit-keyframes slide{
            0%{
                -webkit-transform: translatex(100%);
            }
            10%{
                -webkit-transform: translatex(0%);
            }
            50%{
                -webkit-transform: translatex(0%);
            }
            60%{
                -webkit-transform: translatex(-100%);
            }
            100%{
                -webkit-transform: translatex(-100%);
            }
        }
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers