-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
75 lines (68 loc) · 1.47 KB
/
style.css
File metadata and controls
75 lines (68 loc) · 1.47 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
/* Body */
body {
margin: 0;
background-color: black;
font-family: Arial, sans-serif;
cursor: url('path-to-your-custom-cursor.png'), auto;
}
/* Container */
.container {
margin: 50px auto;
width: 90%;
max-width: 1200px;
display: flex;
justify-content: center;
gap: 10px;
overflow-x: auto;
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
padding-bottom: 20px;
}
/* Hide scrollbar */
.container::-webkit-scrollbar { display: none; }
/* Images */
.container img {
flex: 0 0 auto;
width: 20%;
height: 300px;
object-fit: cover;
border-radius: 12px;
border: 2px solid rgba(255,255,255,0.5);
transition: all 0.5s ease;
cursor: pointer;
opacity: 0.8;
}
/* Active / Hovered Image */
.container img.active {
width: 35%;
opacity: 1;
transform: scale(1.05);
box-shadow: 0 10px 30px rgba(255,255,255,0.2);
}
/* Desktop hover */
@media (hover: hover) {
.container img:hover {
width: 35%;
opacity: 1;
transform: scale(1.05);
}
}
/* Mobile responsiveness */
@media screen and (max-width: 768px) {
.container img {
width: 40%;
height: 250px;
}
.container img.active {
width: 50%;
}
}
@media screen and (max-width: 480px) {
.container img {
width: 60%;
height: 180px;
}
.container img.active {
width: 70%;
}
}