-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
119 lines (105 loc) · 2.24 KB
/
style.css
File metadata and controls
119 lines (105 loc) · 2.24 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
115
116
117
118
119
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
body {
background: linear-gradient(135deg, #ff007f, #00d2ff); /* Neon gradient background */
display: flex;
justify-content: center;
align-items: center;
}
.slider {
position: relative;
width: 80vw; /* Adjust width if needed */
height: 80vh; /* Adjust height if needed */
overflow: hidden;
border: 2px solid #fff; /* Optional border for better visibility */
border-radius: 10px; /* Optional rounded corners */
box-shadow: 0 0 15px rgba(0, 255, 255, 0.8); /* Neon glow effect */
}
.slides {
display: flex;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
transition: transform 1s ease-in-out;
}
.slide {
min-width: 100%;
height: 100%;
position: relative;
overflow: hidden;
}
.slide img {
width: 100%;
height: 100%;
object-fit: contain; /* Ensure the image fits within the container without cropping */
}
.caption {
position: absolute;
bottom: 20px;
left: 20px;
color: #fff;
background: rgba(0, 0, 0, 0.5);
padding: 10px;
border-radius: 5px;
font-size: 1.2rem;
line-height: 1.4;
}
.navigation {
position: absolute;
top: 50%;
width: 100%;
display: flex;
justify-content: space-between;
transform: translateY(-50%);
z-index: 10;
}
.nav-btn {
background: rgba(0, 0, 0, 0.5);
border: none;
color: #fff;
font-size: 2rem;
cursor: pointer;
padding: 0.5rem;
border-radius: 50%;
transition: background 0.3s;
}
.nav-btn:hover {
background: rgba(0, 0, 0, 0.8);
}
.indicators {
position: absolute;
bottom: 20px;
width: 100%;
display: flex;
justify-content: center;
z-index: 10;
}
.indicator {
width: 15px;
height: 15px;
background: #fff;
border-radius: 50%;
margin: 0 5px;
cursor: pointer;
transition: background 0.3s;
}
.indicator.active {
background: #f00;
}
@media (max-width: 768px) {
.slider {
height: 60vh;
}
}
@media (max-width: 480px) {
.slider {
height: 40vh;
}
}