-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
54 lines (54 loc) · 1.52 KB
/
main.css
File metadata and controls
54 lines (54 loc) · 1.52 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
/* CSS for Zoomable Gallery */
.cluster-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
padding: 20px;
}
.grid-item {
position: relative;
cursor: pointer;
width: 150px; /* Adjust the size of the grid item */
perspective: 1000px; /* Add perspective for 3D effect */
}
.grid-item img {
width: 100%;
height: auto;
display: block;
border-radius: 8px;
transition: transform 0.5s;
transform-style: preserve-3d; /* Enable 3D transformations */
}
.info-container {
position: absolute;
bottom: -30px;
left: 50%;
transform: translateX(-50%);
background-color: rgba(0, 0, 0, 0.7);
color: white;
padding: 5px 10px;
border-radius: 4px;
font-size: 12px;
}
/* Hidden initially */
.zoom-container {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.9);
z-index: 9999;
text-align: center;
}
.zoom-image {
max-width: 80%;
max-height: 80%;
margin: auto;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}