-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCSS.css
More file actions
114 lines (97 loc) · 1.65 KB
/
Copy pathCSS.css
File metadata and controls
114 lines (97 loc) · 1.65 KB
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
108
109
110
111
112
113
114
/* styles.css */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #f4f4f4;
}
.slider-container {
width: 80%;
max-width: 800px;
position: relative;
overflow: hidden;
background-color: #000;
}
.slider {
display: flex;
transition: transform 0.5s ease-in-out;
}
.slide {
min-width: 100%;
transition: opacity 1s ease-in-out;
opacity: 0;
position: absolute;
top: 0;
left: 0;
}
.slide.active {
opacity: 1;
position: relative;
}
.slide img {
width: 100%;
display: block;
}
.prev, .next {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: rgba(0,0,0,0.5);
color: white;
border: none;
padding: 10px;
cursor: pointer;
z-index: 1000;
}
.prev {
left: 10px;
}
.next {
right: 10px;
}
.thumbnails {
display: flex;
justify-content: center;
margin-top: 10px;
}
.thumb {
width: 100px;
margin: 0 5px;
cursor: pointer;
opacity: 0.6;
}
.thumb.active {
border: 2px solid #fff;
opacity: 1;
}
.caption-container {
text-align: center;
color: white;
padding: 10px;
background-color: rgba(0, 0, 0, 0.7);
position: absolute;
bottom: 0;
width: 100%;
}
.caption-container h3 {
margin: 5px 0;
}
.caption-container p {
margin: 0;
font-size: 14px;
}
@media screen and (max-width: 600px) {
.thumb {
width: 50px;
}
.caption-container h3 {
font-size: 16px;
}
.caption-container p {
font-size: 12px;
}
}