-
Notifications
You must be signed in to change notification settings - Fork 0
/
Assignment8(Slider).html
75 lines (69 loc) · 1.61 KB
/
Assignment8(Slider).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
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Slider</title>
<link rel="stylesheet" href="css/normalize.css">
<style>
body {
overflow: hidden;
}
section {
width: 400vw;
height: 100vh;
position: absolute;
display: flex;
animation-name: slider;
animation-iteration-count: infinite;
animation-duration: 10s;
animation-direction: alternate;
animation-delay: 1s;
}
div {
width: 100vw;
height: 100vh;
position: relative;
}
img {
width: 100vw;
height: 100vh;
}
@keyframes slider {
0% {
margin-left: 0px;
}
25% {
margin-left: -100vw;
}
50% {
margin-left: -200vw;
}
75% {
margin-left: -300vw;
}
100% {
margin-left: -400vw;
}
}
</style>
</head>
<body>
<section>
<div>
<img src="asserts/57-572197_northern-lights-wallpaper-1080p.jpg">
</div>
<div>
<img src="asserts/lotus-5k-tm.jpg">
</div>
<div>
<img src="asserts/wallpapersden.com_astronaut-exploring-space_2048x1152.jpg">
</div>
<div>
<img src="asserts/high-res-background-24.jpg">
</div>
<div>
<img src="asserts/27651_beautiful-christmas-tree-wallpapers-47-jpg_3072x2048_h.jpg">
</div>
</section>
</body>
</html>