-
Notifications
You must be signed in to change notification settings - Fork 6
/
style.css
135 lines (114 loc) · 2.7 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/* Importing fonts from Google */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
/* Reseting */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
background: linear-gradient(to bottom, #000428, #004683);
animation: background-color 20s;
min-height: 100vh;
}
@keyframes background-color {
0% {
background: linear-gradient(to bottom, #000428, #004683);
}
25% {
background: linear-gradient(135deg, #1a4223, #5ee95e);
}
50% {
background: linear-gradient(to bottom, #421a31, #e95ed2);
}
100% {
background: linear-gradient(-135deg, #fae37d, #881da8, #20668f);
}
}
.container {
margin-top: 80px;
}
.container .col-lg-4 {
display: flex;
justify-content: center;
}
.card {
width: 300px;
height: 300px;
transform-style: preserve-3d;
perspective: 500px;
border: none;
background-color: inherit;
}
.card .face {
position: absolute;
color: #fff;
width: 100%;
height: 100%;
overflow: hidden;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
border-radius: 15px;
background: rgba(255, 255, 255, 0.06);
transform-style: preserve-3d;
transition: 0.5s;
backface-visibility: hidden;
border-top: 1px solid #ddd;
border-left: 1px solid #ddd;
/* border-right: 1px solid #999;
border-bottom: 1px solid #999; */
}
.card .face.front-face,
.card .face.back-face {
position: absolute;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.card .face.front-face .profile {
width: 150px;
height: 150px;
border-radius: 50%;
object-fit: cover;
}
.card .face.front-face .name {
letter-spacing: 2px;
}
.card .face.front-face .designation {
font-size: 0.8rem;
color: #ddd;
letter-spacing: 0.8px;
}
.card:hover .face.front-face {
transform: rotateY(180deg);
}
.card .face.back-face {
position: absolute;
background: rgba(255, 255, 255, 0.06);
transform: rotateY(180deg);
padding: 20px 30px;
text-align: center;
user-select: none;
}
.card .face.back-face .fa-quote-left {
position: absolute;
top: 25px;
left: 25px;
font-size: 1.2rem;
}
.card .face.back-face .fa-quote-right {
position: absolute;
bottom: 35px;
right: 25px;
font-size: 1.2rem;
}
.card:hover .face.back-face {
transform: rotateY(360deg);
}
@media(max-width: 991.5px) {
.col-lg-4 {
margin-top: 40px;
margin-bottom: 20px;
}
}