File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 219
219
// black and white image with a nice fade to color
220
220
transition : filter 0.3s ease , transform 0.3s ease ;
221
221
filter : grayscale (100% );
222
+ z-index : 1 ;
222
223
}
223
224
.overlay {
224
225
// for text on top of the image
234
235
background-color : rgba (0 , 0 , 0 , 0.5 );
235
236
text-align : center ;
236
237
pointer-events : none ;
238
+ z-index : 2 ;
237
239
}
238
240
239
241
// upon hover, make image color
240
242
.robot-link :hover .image {
241
243
filter : grayscale (0% );
242
244
}
243
245
246
+ .robot-link :hover .overlay {
247
+ opacity : 0 ;
248
+ }
249
+
244
250
h2 {
245
251
color : var (--primary ) !important ; // text is accent color
246
- z-index : 2 ; // text on top
247
- position : relative ;
248
252
}
249
-
250
- p {
251
- z-index : 2 ; // text on top
253
+
254
+ h2 , p {
255
+ z-index : 2 ;
252
256
position : relative ;
257
+ transition : opacity 0.3s ease ;
253
258
}
254
259
}
255
260
}
You can’t perform that action at this time.
0 commit comments