Created
April 30, 2014 00:48
-
-
Save TheEnigmaBlade/72c415158d4cb71d926f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
body { | |
background-image: url(%%bg1%%); | |
background-repeat: no-repeat; | |
background-color: black; | |
background-position: 100% 10px; | |
background-size: 40%; | |
} | |
body:before { | |
content: ""; | |
opacity: 0; | |
top: 0; | |
left: 0; | |
bottom: 0; | |
right: 0; | |
position: absolute; | |
z-index: -1; | |
background-image: url(%%bg2%%); | |
background-repeat: no-repeat; | |
background-color: black; | |
background-position: 100% 10px; | |
background-size: 40%; | |
animation: body-bg 60s 15s infinite ease-out alternate; | |
} | |
@keyframes body-bg { | |
0% {opacity: 0;} | |
47% {opacity: 0;} | |
53% {opacity: 1} | |
100% {opacity: 1} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment