CSS
.box{
background:green;
opacity:0.6;
padding: 20px 40px;
display:inline-block;
border-radius:5px;
top:23%;
position: absolute;
left:-200px;
background-color:gray;
}
.box.show{
-webkit-animation: animation 700ms linear both;
animation: animation 700ms linear both;
}
.box.hide{
-webkit-animation: animation 700ms linear both;
animation: animation 700ms linear both;
-webkit-animation-direction: reverse;
animation-direction: reverse;
}
ul{
list-style:none;
padding: 0;
margin: 0;
}
ul li {
padding: 10px;
text-transform: uppercase;
}
.animation-target {
-webkit-animation: animation 1000ms linear infinite both;
animation: animation 1000ms linear infinite both;
}
/* Generated with Bounce.js. Edit at http://goo.gl/tWssQw */
@-webkit-keyframes animation {
0% { -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); }
5.31% { -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 112.525, 0, 0, 1); transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 112.525, 0, 0, 1); }
10.51% { -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 177.578, 0, 0, 1); transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 177.578, 0, 0, 1); }
15.82% { -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 204.879, 0, 0, 1); transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 204.879, 0, 0, 1); }
21.02% { -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 210.428, 0, 0, 1); transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 210.428, 0, 0, 1); }
35.34% { -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 201.989, 0, 0, 1); transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 201.989, 0, 0, 1); }
49.55% { -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 199.679, 0, 0, 1); transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 199.679, 0, 0, 1); }
...