Created
February 18, 2015 14:15
-
-
Save starquake/8fa1d5b0b201ce68f97b to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/rifoxakoxo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.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); | |
} | |
} | |
</style> | |
</head> | |
<body> | |
<div class="element"> | |
</div> | |
<script id="jsbin-source-css" type="text/css"> | |
.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); | |
} | |
}</script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment