animation:name duration timing-function delay iteration-count direction;

name:名字

duration: 持续时间

timing-function:速度曲线

delay:延迟时间

iteration-count:循环次数

direction:是否应该轮流反向播放动画

@keyframes animationname { keyframes-selector {css-styles}}

keyframes:关键帧

animationname:声明动画名

keyframes-selector:用来划分动画时长,可用百分比,也可以from 和 to

例:

animation: theanimation 4s inifinite alternate;

@keyframes theanimation{
  0%{0px; left: 0px;background:red}
  100%{top:700px;left:0px;background:green} 
}

  

相关文章:

  • 2022-12-23
  • 2021-07-22
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2022-02-10
  • 2021-04-18
  • 2021-11-28
相关资源
相似解决方案