Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
63 lines (54 loc) · 1.98 KB
/
Copy pathstyle.css
File metadata and controls
63 lines (54 loc) · 1.98 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
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
display: flex; align-items: center; justify-content: center;
min-height: 100vh;
background: linear-gradient(135deg, #0f172a, #1e293b);
padding: 1rem;
}
.carousel-container { width: 100%; max-width: 800px; }
.carousel {
position: relative; width: 100%; height: 450px;
border-radius: 20px; overflow: hidden;
box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.slides {
display: flex; height: 100%; transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slide {
min-width: 100%; height: 100%; position: relative;
background-size: cover; background-position: center;
}
.slide::after {
content: ''; position: absolute; bottom: 0; left: 0; right: 0;
height: 50%; background: linear-gradient(transparent, rgba(0,0,0,0.6));
}
.nav-btn {
position: absolute; top: 50%; transform: translateY(-50%);
width: 48px; height: 48px; border: none; border-radius: 50%;
background: rgba(255,255,255,0.2); backdrop-filter: blur(8px);
color: #fff; font-size: 1.2rem; cursor: pointer; z-index: 10;
transition: all 0.25s ease; display: flex; align-items: center; justify-content: center;
}
.nav-btn:hover { background: rgba(255,255,255,0.35); transform: translateY(-50%) scale(1.1); }
.prev { left: 1rem; }
.next { right: 1rem; }
.indicators {
position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
display: flex; gap: 0.5rem; z-index: 10;
}
.indicator {
width: 10px; height: 10px; border-radius: 50%;
background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.25s ease;
}
.indicator.active { background: #fff; width: 30px; border-radius: 5px; }
.caption {
text-align: center; color: #94a3b8; margin-top: 1rem;
font-size: 1rem; font-weight: 500;
animation: fadeIn 0.4s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) {
.carousel { height: 300px; }
.nav-btn { width: 40px; height: 40px; }
}