@keyframes animationname {keyframes-selector {css-styles;}}
其中需要的属性设置
animationname 必需。定义动画的名称。
keyframes-selector
必需。动画时长的百分比。
合法的值:
0-100%
from(与 0% 相同)
to(与 100% 相同)
css-styles 必需。一个或多个合法的 CSS 样式属性。
tips,可以只写成50%{keyframes-selector {css-styles;}}的形式