动画效果需要用到animation(动画) 属性
animation: onmove 5s 10s; 一次运行时间5s, 运行时间10s (infinite 为无穷大 ,无限运行)
.onmove{
from {left:0px}
to{right:100px}
}
在盒子上需要设置 position:relative 定位
CSS动画效果
原文:https://www.cnblogs.com/yaooo/p/12428031.html