Skip to content

Commit c2bbbd1

Browse files
committed
another try
1 parent fcb4930 commit c2bbbd1

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

assets/css/style.scss

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@
219219
// black and white image with a nice fade to color
220220
transition: filter 0.3s ease, transform 0.3s ease;
221221
filter: grayscale(100%);
222+
z-index: 1;
222223
}
223224
.overlay {
224225
// for text on top of the image
@@ -234,22 +235,26 @@
234235
background-color: rgba(0, 0, 0, 0.5);
235236
text-align: center;
236237
pointer-events: none;
238+
z-index: 2;
237239
}
238240

239241
// upon hover, make image color
240242
.robot-link:hover .image {
241243
filter: grayscale(0%);
242244
}
243245

246+
.robot-link:hover .overlay {
247+
opacity: 0;
248+
}
249+
244250
h2 {
245251
color: var(--primary) !important; // text is accent color
246-
z-index: 2; // text on top
247-
position: relative;
248252
}
249-
250-
p {
251-
z-index: 2; // text on top
253+
254+
h2, p {
255+
z-index: 2;
252256
position: relative;
257+
transition: opacity 0.3s ease;
253258
}
254259
}
255260
}

0 commit comments

Comments
 (0)