作者:Hoorxx鹿_416 | 来源:互联网 | 2023-10-13 11:07
就是一个简单CSS3动画.light_pc{width:93px;height:9px;position:absolute;top:0;left:50%;margin-left:-
就是一个简单CSS3 动画
.light_pc {
width: 93px;
height: 9px;
position: absolute;
top: 0;
left: 50%;
margin-left: -46px;
background: url(https://zm.res.netease.com/pc/fab/20161226201931/img/light_pc_f3d5dee.png?_sprite) no-repeat;
-moz-animation: light_pc 4s linear 0s infinite;
-webkit-animation: light_pc 4s linear 0s infinite;
-o-animation: light_pc 4s linear 0s infinite;
-ms-animation: light_pc 4s linear 0s infinite;
animation: light_pc 4s linear 0s infinite
}
@-webkit-keyframes light_pc {
0% {
top: 0
}
50% {
top: 83px
}
100% {
top: 0
}
}
@-moz-keyframes light_pc {
0% {
top: 0
}
50% {
top: 83px
}
100% {
top: 0
}
}
@-ms-keyframes light_pc {
0% {
top: 0
}
50% {
top: 83px
}
100% {
top: 0
}
}
@-o-keyframes light_pc {
0% {
top: 0
}
50% {
top: 83px
}
100% {
top: 0
}
}
@keyframes light_pc {
0% {
top: 0
}
50% {
top: 83px
}
100% {
top: 0
}
}