Line 10: | Line 10: | ||
from { | from { | ||
background-color: blue; | background-color: blue; | ||
+ | color: red; | ||
} | } | ||
to { | to { | ||
background-color: red; | background-color: red; | ||
+ | color: blue; | ||
} | } | ||
} | } |
Revision as of 13:45, 15 September 2016
.test {
/* animation: color_change 1s infinite alernate; */ animation-name: color_change; animation-duration: 1s; animation-iteration-count: infinite; animation-direction: alternate;
}
@keyframes color_change {
from { background-color: blue; color: red; } to { background-color: red; color: blue; }
}