-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslider.css
107 lines (97 loc) · 1.76 KB
/
slider.css
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
body {
margin: 0;
}
#slides {
position: relative;
width: 100%;
height: 100%;
padding: 0px;
margin: 0px;
list-style-type: none;
}
.slide {
position: absolute;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
/* opacity: 0; */
z-index: 1;
}
.showing{
opacity: 1;
z-index: 2;
}
.controls{
display: none;
}
.slide {
font-size: 40px;
padding: 40px;
box-sizing: border-box;
background: #333;
color: #fff;
width: 100%;
height: 100%;
background-size: cover;
left: 100%;
}
.slide.showing {
left: 0;
}
.slide:nth-of-type(1){
background-image: url('images/1.png');
}
.slide:nth-of-type(2){
background-image: url('images/2.png');
}
.slide:nth-of-type(3){
background-image: url('images/3.png');
}
.slide:nth-of-type(4){
background-image: url('images/4.png');
}
.slide:nth-of-type(5){
background-image: url('images/5.png');
}
.slide:nth-of-type(6){
background-image: url('images/7.png');
}
.slide:nth-of-type(7){
background-image: url('images/8.png');
}
.slide:nth-of-type(8){
background-image: url('images/9.png');
}
.slide:nth-of-type(9){
background-image: url('images/10.png');
}
.slide:nth-of-type(10){
background-image: url('images/11.png');
}
.controls{
background: rgb(216, 210, 210);
color: rgb(8, 8, 8);
border: none;
padding: 10px 0px;
font-size: 10px;
cursor: pointer;
margin: 5px 0px 0px 10px;
width: 32px;
opacity: 0.5;
border-radius:50%
}
.container {
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
}
.buttons{
position: absolute;
left: 50%;
bottom: 50px;
z-index: 10;
font-size: 0px;
transform: translateX(-50%);
}