-
Notifications
You must be signed in to change notification settings - Fork 0
/
team.css
84 lines (73 loc) · 1.65 KB
/
team.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
.core-team {
padding: 6rem 0;
text-align: center;
background-color: #f9f9f9;
}
.core-team h2 {
font-size: 4rem;
margin-bottom: 2rem;
color: #333;
letter-spacing: -1px;
}
.team-member-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 3rem;
margin-top: 3rem;
}
/* .team-member {
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
padding: 3.5rem;
width: calc(33.33% - 4rem);
text-align: center;
transition: transform 0.3s, box-shadow 0.3s;
position: relative;
overflow: hidden;
cursor: pointer;
transform-style: preserve-3d;
} */
.team-member:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.5);
transform: translateZ(-1px);
opacity: 0;
pointer-events: none;
transition: opacity 0.3s;
}
.team-member img {
max-width: 160px;
border-radius: 50%;
margin-bottom: 2rem;
box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
transition: transform 0.3s;
transform-style: preserve-3d;
}
.team-member.hovered {
transform: translateY(-10px) rotateX(5deg);
box-shadow: 0px 30px 60px rgba(0, 0, 0, 0.2);
background-color: #f9f9f9;
}
.team-member.hovered img {
transform: scale(1.1);
}
.team-member.hovered:before {
opacity: 1;
}
.team-member h3 {
font-size: 2.5rem;
color: #333;
margin-bottom: 1.5rem;
}
.team-member p {
color: #777;
line-height: 1.6;
margin-bottom: 1.5rem;
}