Skip to content

Instantly share code, notes, and snippets.

@aarongustafson
Created September 14, 2016 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aarongustafson/5fe32bbd847d68de679d4bb90879ea07 to your computer and use it in GitHub Desktop.
Save aarongustafson/5fe32bbd847d68de679d4bb90879ea07 to your computer and use it in GitHub Desktop.
@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