Line 1: | Line 1: | ||
.test { | .test { | ||
− | color: blue; | + | animation: color_change 1s infinite alernate; |
+ | } | ||
+ | |||
+ | @keyframes color_change { | ||
+ | from { background-color: blue; } | ||
+ | to { background-color: red; } | ||
} | } |
Revision as of 13:40, 15 September 2016
.test {
animation: color_change 1s infinite alernate;
}
@keyframes color_change {
from { background-color: blue; } to { background-color: red; }
}