from to css not infinite code example
Example: animation shorthand css
animation: name time func delay iteration dir fill play;
animation: none 0s ease 0s 1 normal none running;
animation: name time func delay iteration dir fill play;
animation: none 0s ease 0s 1 normal none running;