<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
.box1{
width:100%;
height:400px;
/* background-color:red; */
overflow:hidden;
}
.box2>img{
width:1500px;
height:400px;
float:left;
}
.box2{
width:6000px;
height:400px;
animation: myname 20s 5s infinite alternate;
}
@keyframes myname{
35%{
margin-left:-1500px;
}
70%{
margin-left:-3000px;
}
100%{
margin-left:-4500px;
}
}
.box2:hover{
-webkit-animation: ;
-o-animation: ;
animation-play-state:paused;
}
</style>
</head>
<body>
<div class="box1">
<div class="box2">
<img src="./1.jpg" alt="">
<img src="./2.png" alt="">
<img src="./3%20(1).jpg" alt="">
<img src="./4.jpg" alt="">
</div>
</div>
</body>
</html>
01-12
1281
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-18
6711
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-25
649
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)