-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
53 lines (53 loc) · 1.28 KB
/
test.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
*{
margin: 0px;
padding: 0px;
}
div{
overflow: hidden;
width: 100%;
height: 500px;
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
}
img{
width: 100%;
height: 100%;
position: absolute;
animation-iteration-count: infinite;
animation-timing-function: linear;
animation-duration: 60s;
}
.c1{
animation-name: roll1;
}
.c2{
animation-name: roll2;
}
@keyframes roll1{
0%{left: 0px; top: 0px;}
100%{left: 100%; top: 0px;}
}
@keyframes roll2{
0%{left: -100%; top: 0px;}
100%{left: 0px; top: 0px;}
}
</style>
</head>
<body>
<div>
<img class="c1" src="./EX/image/section_1_bg_1.jpg"/>
<img class="c2" src="./EX/image/section_1_bg_1.jpg"/>
</div>
</body>
</html>