w3 animate css code example
Example: how to animate in css
<style>
.myclass{
background:red; /*DEFAULT VALUE*/
animation:colorchange 1s; /*ANIMATION PROPERTY [name, time]*/
}
@keyframes colorchange{
from{background:red} /*DEFAULT VALUE*/
to{background:blue} /*CHANGING VALUE*/
}
</style>
<body>
<div class="myclass"> ELEMENT </div>
</body>