Created
March 2, 2018 20:44
-
-
Save julianobailao/5b2a7c435d35b576f816654b36ee41ce to your computer and use it in GitHub Desktop.
CSS Background animation
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
.image-background { | |
position: absolute; | |
left: 0; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
background-image: url('https://cdn.suwalls.com/wallpapers/games/diablo-iii-18620-1920x1080.jpg'); | |
animation: backgroundAnimation 5s linear infinite; | |
} | |
@keyframes backgroundAnimation { | |
0% { | |
transform: rotate(0deg); | |
} | |
100% { | |
transform: rotate(360deg); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment