Skip to content

Commit 7a01a9b

Browse files
Merge pull request #129 from umdevclub/feat/chromeblur
fix:lessens the event card blur effect on chrome while hover
2 parents 1ec61dc + 919211e commit 7a01a9b

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

src/styles/Events.scss

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,11 @@
184184
opacity: 0;
185185
animation: none;
186186
will-change: transform, box-shadow;
187+
transform-style: preserve-3d;
188+
backface-visibility: hidden;
189+
-webkit-font-smoothing: antialiased;
190+
-moz-osx-font-smoothing: grayscale;
191+
backface-visibility: hidden;
187192

188193
&:hover {
189194
transform: translateY(-8px) rotate(-2.25deg) scale(1.01);
@@ -209,6 +214,9 @@
209214
object-fit: cover;
210215
background: #f0f0f000;
211216
transition: transform 0.35s ease;
217+
transform: translateZ(0);
218+
backface-visibility: hidden;
219+
image-rendering: auto;
212220
}
213221

214222
.event-title {
@@ -267,6 +275,16 @@
267275
pointer-events: none;
268276
}
269277
}
278+
279+
.event-title,
280+
.event-blurb,
281+
.term-tags,
282+
.btn {
283+
-webkit-font-smoothing: antialiased;
284+
-moz-osx-font-smoothing: grayscale;
285+
transform: translateZ(0);
286+
backface-visibility: hidden;
287+
}
270288
}
271289

272290
.btn:active {
@@ -472,16 +490,4 @@
472490
background: $dark-blue;
473491
}
474492
}
475-
476-
// @media (prefers-reduced-motion: reduce) {
477-
// .event-card,
478-
// .chip,
479-
// .term-title {
480-
// animation: none !important;
481-
// transition: none !important;
482-
// }
483-
// .btn:hover::after {
484-
// display: none !important;
485-
// }
486-
// }
487493
}

0 commit comments

Comments
 (0)