标签:add inf ges 背景 pos url position order http
*{margin:0;padding:0;}
section{
width: 180px;
height: 300px;
background: url(images/charector.png) no-repeat;
margin: 50px auto;
border: 2px solid red;
animation:run 1s infinite step-start;
}
@keyframes run{
0%{background-position: 0 0;}
14%{background-position: -180px 0;}
28%{background-position: -360px 0;}
42%{background-position: -540px 0;}
56%{background-position: -720px 0;}
70%{background-position: -900px 0;}
84%{background-position: -1080px 0;}
100%{background-position: 0 0;}
}
background-position和animation制作逐帧动画
标签:add inf ges 背景 pos url position order http
原文地址:https://www.cnblogs.com/web-learning/p/10292346.html