-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
105 lines (85 loc) · 1.77 KB
/
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
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
*{
padding: 0;
margin: 0;
box-sizing: border-box;
/* transform-style: preserve-3d; */
perspective: 1000px;
}
.wrapper{
height: 100vh;
overflow-x: hidden;
overflow-y: auto;
display: flex;
justify-content: center;
align-items: center;
transform-style: preserve-3d;
}
.flip{
height: 400px;
width: 350px;
transform-style: preserve-3d;
}
.card{
position: absolute;
/* border: 2px solid black; */
box-shadow: 0 0 10px rgb(150, 150, 150);
border-radius: 15px;
height: 400px;
width: 350px;
transform-style: preserve-3d;
transform: rotateY(0deg);
}
.front{
/* position: absolute; */
}
.front img{
height: 100%;
width: 100%;
object-fit: cover;
border-radius: 15px;
box-shadow: 0 0 10px rgb(150, 150, 150);
}
.back{
visibility: hidden;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #9fffe4;
transform: rotateY(180deg);
backface-visibility: hidden;
}
.back img{
height: 150px;
width: 150px;
padding:4px;
background-color: #fff;
box-shadow: 0 0 5px rgb(70, 70, 70);
border-radius: 50%;
margin-bottom: 40px;
}
.name{
font-size: 2rem;
text-transform: uppercase;
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-weight: 600;
margin-bottom: 20px;
}
.txt{
padding:10px 15px;
text-align: center;
box-shadow: 0 0 5px rgb(159, 159, 159);
/* color: red; */
font-weight: bold;
text-transform: uppercase;
background-color: #fff6c6;
border-radius: 15px;
}
.flip:hover{
transform: rotateY(-180deg);
transition: 0.7s;
}
.flip:hover .back{
visibility: visible;
transition: 0.7s;
}