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="element">
    
  </div>
</body>
</html>
 
.element {
  position:absolute;
  top:-50%;
  left:-50%;
  border: 1px solid black;
  width: 200vw;
  height:200vh;
  padding: 20px;
  
  background-image:url(http://4.bp.blogspot.com/-JOqxgp-ZWe0/U3BtyEQlEiI/AAAAAAAAOfg/Doq6Q2MwIKA/s1600/google-logo-874x288.png);
  background-position: center;
  background-size: 10%;
  background-origin: content-box;    
    -webkit-animation: rotator 10s linear 0s infinite alternate, zoomer 10s linear 0s infinite alternate;
    -moz-animation: rotator 10s linear 0s infinite alternate, zoomer 10s linear 0s infinite alternate;
    animation: rotator 10s linear 0s infinite alternate, zoomer 10s linear 0s infinite alternate;
}
@-moz-keyframes rotator {
    100% {
        -moz-transform: rotate(360deg);
    }
}
@-webkit-keyframes rotator {
    100% {
        -webkit-transform: rotate(360deg);
    }
}
@keyframes rotator {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@-moz-keyframes zoomer {
    100% {
        -moz-transform: scale(2);
    }
}
@-webkit-keyframes zoomer {
    100% {
        -webkit-transform: scale(2);
    }
}
@keyframes zoomer {
    100% {
        -webkit-transform: scale(2);
        transform: scale(2);
    }
}
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers