<div class='animated'>animated</div>
<style>
@keyframes why {
from { color: red; }
to { color: blue; }
}
.animated {
animation: why 2s;
</style>