Skip to content

Instantly share code, notes, and snippets.

@julianobailao
Created March 2, 2018 20:44
Show Gist options
  • Save julianobailao/5b2a7c435d35b576f816654b36ee41ce to your computer and use it in GitHub Desktop.
Save julianobailao/5b2a7c435d35b576f816654b36ee41ce to your computer and use it in GitHub Desktop.
CSS Background animation
.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