You are on the right track right there on your @keyframes But if you want to ues your animation, you have to use the name of the animation. Ex:
@keyframes animation_name {
0% {color: black}
100% {color: yellow}
}
element {
animation-name: animation_name; /* You have to use the animation
name which is declared after the @keyframes*/
animation-duration: 5s;
}
/* OR you can use one line code like this */
element {
animation: animation_name 5s;
}
/* It uses this inline template */
animation: animation-name duration timing-function delay iteration-count direction fill-mode play-state;