Created
September 14, 2016 20:10
-
-
Save aarongustafson/5fe32bbd847d68de679d4bb90879ea07 to your computer and use it in GitHub Desktop.
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
@keyframes count-issue { | |
0% { | |
background-color: #f5baba; | |
} | |
100% { | |
background-color: #fff; | |
} | |
} | |
@keyframes count-good { | |
0% { | |
background-color: #b6e4a9; | |
} | |
100% { | |
background-color: #fff; | |
} | |
} | |
.count { | |
animation-duration: 2s; | |
animation-fill-mode: forwards; | |
animation-timing-function: ease-out; | |
} | |
.count--good { | |
animation-name: count-good; | |
} | |
.count--under, .count--over { | |
animation-name: count-issue; | |
} | |
.count--under + strong, | |
.count--over + strong { | |
color: #D22; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment