Skip to content

Commit 0e0f0f4

Browse files
committed
Added Diagonal Hovering Effect
1 parent 2cf65ec commit 0e0f0f4

File tree

1 file changed

+83
-14
lines changed

1 file changed

+83
-14
lines changed

contributors.css

+83-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
body {
22
font-family: "Poppins";
3-
background-color: #f4f4f4;
3+
/* background-color: #c10f0f; */
44
color: #333;
55
display: flex;
66
justify-content: center;
@@ -18,9 +18,10 @@ body {
1818
font-size: 3em;
1919
margin-bottom: 20px;
2020
padding: 10px;
21-
color: #055364;
22-
border-radius: 20px;
23-
background-color: rgba(209, 209, 255, 0.8);
21+
color: #9dedff;
22+
text-shadow: 1px 1px 2px rgb(60, 0, 255), 0 0 1em rgba(0, 213, 255, 0.617), 0 0 0.2em rgba(0, 234, 255, 0.623);
23+
/* border-radius: 20px; */
24+
/* background-color: rgba(209, 209, 255, 0.8); */
2425
}
2526

2627
.contributors-grid {
@@ -33,19 +34,49 @@ body {
3334
}
3435

3536
.contributor-card {
36-
background-color: #e5e5f8;
37-
border: 2px solid #101010;
38-
border-radius: 10px;
39-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
40-
padding: 20px;
4137
width: 200px;
42-
text-align: center;
43-
transition: transform 0.3s, box-shadow 0.3s;
38+
position: relative;
39+
overflow: hidden;
40+
max-width: calc(25% - 16px);
41+
display: flex;
42+
flex-direction: column;
43+
align-items: center;
44+
background-color: #fff;
45+
/* border: 1px solid #00ebdf; */
46+
border-radius: 8px;
47+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
48+
padding: 16px;
49+
transition: transform 0.5s ease-in-out, box-shadow 0.3s ease;
50+
text-decoration: none;
51+
color: inherit;
52+
/* margin-bottom: 16px; */
4453
}
4554

4655
.contributor-card:hover {
47-
transform: scale(1.05);
48-
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.9);
56+
transform: scale(1.02);
57+
box-shadow: 1px 1px 23px rgba(0, 157, 255, 0.915);
58+
border: none;
59+
cursor: pointer;
60+
}
61+
62+
.contributor-card::before {
63+
content: '';
64+
position: absolute;
65+
top: 0;
66+
left: 0;
67+
width: 100%;
68+
height: 100%;
69+
background: linear-gradient(132deg, #0045ac 50%, #d8eeff 51%);
70+
/* background: linear-gradient(130deg, #3b89ff 50%, #eef6ff 50%); */
71+
transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
72+
transform: translate(-100%, -100%);
73+
opacity: 0;
74+
z-index: -1;
75+
}
76+
77+
.contributor-card:hover::before {
78+
transform: translate(0, 0);
79+
opacity: 1;
4980
}
5081

5182
.contributor-card img {
@@ -54,16 +85,51 @@ body {
5485
height: 100px;
5586
object-fit: cover;
5687
margin-bottom: 10px;
88+
transition: box-shadow 0.3s ease-in-out, border 0.1s ease-in-out;
5789
}
5890

91+
.contributor-card:hover img {
92+
border: 2px solid rgb(255, 234, 0);
93+
box-shadow: -1px 2px 27px rgb(0, 217, 255);
94+
}
95+
96+
/*
5997
.contributor-card h2 {
60-
font-size: 1.2em;
6198
margin: 0 0 10px;
99+
} */
100+
/*
101+
.contributor-card p {
102+
} */
103+
104+
.contributor-card h2 {
105+
font-size: 1.2em;
106+
color: #040404;
107+
position: relative;
108+
z-index: 1;
109+
transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
62110
}
63111

64112
.contributor-card p {
113+
font-size: 1.2em;
65114
color: #040404;
115+
position: relative;
116+
z-index: 1;
117+
transition: text-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
118+
margin: 0 0 10px;
119+
}
120+
121+
.contributor-card:hover h2 {
122+
text-shadow: 1px 1px 2px rgb(0, 108, 108), 0 0 0.2em rgb(0, 14, 108), 0 0 0.8em rgb(0, 14, 108);
123+
color: white;
66124
}
125+
126+
.contributor-card:hover p {
127+
text-shadow: 1px 1px 2px rgba(4, 0, 127, 0.715), 0 0 0.2em rgb(5, 18, 168), 0 0 0.3em rgb(134, 136, 250);
128+
color: white;
129+
130+
/* font-weight: 400; */
131+
}
132+
67133
/* dark mode */
68134
/* Toggle button styles */
69135
.toggle-container {
@@ -189,4 +255,7 @@ body {
189255
}
190256
body.dark-mode .contributor-card p{
191257
color: white;
258+
}
259+
body.dark-mode .contributor-card h2{
260+
color: white;
192261
}

0 commit comments

Comments
 (0)