-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathexplore_style.css
64 lines (56 loc) · 1.08 KB
/
explore_style.css
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
body {
background-color: #333;
/* Dark background */
color: #fff;
font-family: Arial, sans-serif;
}
.book-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 20px;
padding: 20px;
}
.card {
perspective: 1000px;
position: relative;
}
.card-inner {
position: relative;
width: 100%;
height: 300px;
transition: transform 0.6s;
transform-style: preserve-3d;
}
.card:hover .card-inner {
transform: rotateY(180deg);
}
.card-front,
.card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
border: 1px solid #fff;
border-radius: 5px;
overflow: hidden;
}
.card-front {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: #444;
}
.card-back {
display: flex;
align-items: center;
justify-content: center;
background-color: #666;
transform: rotateY(180deg);
padding: 10px;
text-align: center;
}
img {
max-width: 100%;
max-height: 200px;
}