-
Notifications
You must be signed in to change notification settings - Fork 0
/
gundong.html
62 lines (62 loc) · 1.45 KB
/
gundong.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>gundong</title>
<style>
* {
margin: 0;
padding: 0;
}
div {
width: 600px;
height: 188px;
border: 1px solid #000;
margin:0 auto;
margin-top:100px;
overflow: hidden;
}
ul {
width: 2000px;
height: 188px;
list-style: none;
background-color: #000;
animation: move 5s linear 0s infinite normal;
}
ul li {
width: 300px;
height: 188px;
float: left;
}
@keyframes move{
from{
margin-left:0;
}
to{
margin-left:-1200px;
}
}
ul:hover {
animation-play-state: paused;
}
ul:hover li{
opacity:0.5;
}
ul li:hover {
opacity:1;
}
</style>
</head>
<body>
<div>
<ul>
<li><img src="./img/banner1.png" alt=""></li>
<li><img src="./img/banner2.jpg" alt=""></li>
<li><img src="./img/banner3.jpg" alt=""></li>
<li><img src="./img/banner4.jpg" alt=""></li>
<li><img src="./img/banner1.png" alt=""></li>
<li><img src="./img/banner2.jpg" alt=""></li>
</ul>
</div>
</body>
</html>