Line 1: | Line 1: | ||
.test { | .test { | ||
− | |||
animation-name: color_change; | animation-name: color_change; | ||
− | animation-duration: | + | animation-duration: 3s; |
animation-iteration-count: infinite; | animation-iteration-count: infinite; | ||
animation-direction: alternate; | animation-direction: alternate; | ||
Line 9: | Line 8: | ||
@keyframes color_change { | @keyframes color_change { | ||
from { | from { | ||
− | |||
color: red; | color: red; | ||
} | } | ||
to { | to { | ||
− | |||
color: blue; | color: blue; | ||
} | } | ||
} | } |
Revision as of 13:46, 15 September 2016
.test {
animation-name: color_change; animation-duration: 3s; animation-iteration-count: infinite; animation-direction: alternate;
}
@keyframes color_change {
from { color: red; } to { color: blue; }
}