css中animation的steps如果遇到多个帧,是每个都进行分割:
#rect{
width:76px;
height:125px;
border:1px solid black;
animation:move 1 2s steps(2,start) ;
}
@keyframes move{
0%{
background:red;
}
50%{
background:blue;
}
100%{
background:red;
}
}
原文链接:
css中animation的steps遇到多帧