📜  动画从左到右 css 代码示例

📅  最后修改于: 2022-03-11 14:47:40.478000             🧑  作者: Mango

代码示例1
#idor.class{    
  animation: example 4s infinite
}

@keyframes example {
  0%   {background-color:red; left:0px; top:0px;}
  25%  {background-color:yellow; left:200px; top:0px;}
  50%  {background-color:blue; left:200px; top:0px;}
  100% {background-color:red; left:0px; top:0px;}
}