Created
December 23, 2017 20:38
-
-
Save stivenson/0890446fcb52b4c2b7d81983c6882b22 to your computer and use it in GitHub Desktop.
Flicker color on div
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
.background-flicker { | |
background-color: #FFF; | |
animation: flicker 2s; | |
-webkit-animation: flicker 2s; | |
-moz-animation: flicker 2s; | |
animation-iteration-count: infinite; | |
-webkit-animation-iteration-count: infinite; | |
-moz-animation-iteration-count: infinite | |
} | |
@keyframes flicker { | |
0%, 100% { | |
box-shadow: 0 0 10px #fff | |
} | |
50% { | |
box-shadow: 0 0 50px #fff | |
} | |
} | |
@-webkit-keyframes flicker { | |
0%, 100% { | |
-webkit-box-shadow: 0 0 10px #fff | |
} | |
50% { | |
-webkit-box-shadow: 0 0 50px #fff | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment