Skip to content

Commit 95c8610

Browse files
committed
Remove laggy screen wide timer effect
1 parent e156b23 commit 95c8610

File tree

1 file changed

+54
-54
lines changed

1 file changed

+54
-54
lines changed

styles/globals.scss

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,19 +1225,19 @@ h1, h2, h3, span, label {
12251225
transform: translateX(50%) scale(1.05);
12261226
}
12271227

1228-
// Screen edge warning effect - controlled by JavaScript conditions
1229-
body:has(.timer.critical)::before {
1230-
content: '';
1231-
position: fixed;
1232-
top: 0;
1233-
left: 0;
1234-
right: 0;
1235-
bottom: 0;
1236-
pointer-events: none;
1237-
z-index: 999;
1238-
animation: screenPulse 1s ease-in-out infinite;
1239-
border: 8px solid transparent;
1240-
}
1228+
// Screen edge warning effect - disabled for performance
1229+
// body:has(.timer.critical)::before {
1230+
// content: '';
1231+
// position: fixed;
1232+
// top: 0;
1233+
// left: 0;
1234+
// right: 0;
1235+
// bottom: 0;
1236+
// pointer-events: none;
1237+
// z-index: 999;
1238+
// animation: screenPulse 1s ease-in-out infinite;
1239+
// border: 8px solid transparent;
1240+
// }
12411241

12421242
@keyframes timerPulse {
12431243
0% {
@@ -1267,48 +1267,48 @@ body:has(.timer.critical)::before {
12671267
}
12681268
}
12691269

1270-
@keyframes screenPulse {
1271-
0% {
1272-
border-color: rgba(200, 80, 80, 0);
1273-
box-shadow:
1274-
inset 0 0 0 rgba(200, 80, 80, 0),
1275-
inset 30px 0 100px rgba(200, 80, 80, 0),
1276-
inset -30px 0 100px rgba(200, 80, 80, 0),
1277-
inset 0 30px 100px rgba(200, 80, 80, 0),
1278-
inset 0 -30px 100px rgba(200, 80, 80, 0);
1279-
}
1280-
50% {
1281-
border-color: rgba(200, 80, 80, 0.6);
1282-
box-shadow:
1283-
inset 0 0 120px rgba(200, 80, 80, 0.1),
1284-
inset 30px 0 100px rgba(200, 80, 80, 0.25),
1285-
inset -30px 0 100px rgba(200, 80, 80, 0.25),
1286-
inset 0 30px 100px rgba(200, 80, 80, 0.25),
1287-
inset 0 -30px 100px rgba(200, 80, 80, 0.25);
1288-
}
1289-
100% {
1290-
border-color: rgba(200, 80, 80, 0);
1291-
box-shadow:
1292-
inset 0 0 0 rgba(200, 80, 80, 0),
1293-
inset 30px 0 100px rgba(200, 80, 80, 0),
1294-
inset -30px 0 100px rgba(200, 80, 80, 0),
1295-
inset 0 30px 100px rgba(200, 80, 80, 0),
1296-
inset 0 -30px 100px rgba(200, 80, 80, 0);
1297-
}
1298-
}
1270+
// @keyframes screenPulse {
1271+
// 0% {
1272+
// border-color: rgba(200, 80, 80, 0);
1273+
// box-shadow:
1274+
// inset 0 0 0 rgba(200, 80, 80, 0),
1275+
// inset 30px 0 100px rgba(200, 80, 80, 0),
1276+
// inset -30px 0 100px rgba(200, 80, 80, 0),
1277+
// inset 0 30px 100px rgba(200, 80, 80, 0),
1278+
// inset 0 -30px 100px rgba(200, 80, 80, 0);
1279+
// }
1280+
// 50% {
1281+
// border-color: rgba(200, 80, 80, 0.6);
1282+
// box-shadow:
1283+
// inset 0 0 120px rgba(200, 80, 80, 0.1),
1284+
// inset 30px 0 100px rgba(200, 80, 80, 0.25),
1285+
// inset -30px 0 100px rgba(200, 80, 80, 0.25),
1286+
// inset 0 30px 100px rgba(200, 80, 80, 0.25),
1287+
// inset 0 -30px 100px rgba(200, 80, 80, 0.25);
1288+
// }
1289+
// 100% {
1290+
// border-color: rgba(200, 80, 80, 0);
1291+
// box-shadow:
1292+
// inset 0 0 0 rgba(200, 80, 80, 0),
1293+
// inset 30px 0 100px rgba(200, 80, 80, 0),
1294+
// inset -30px 0 100px rgba(200, 80, 80, 0),
1295+
// inset 0 30px 100px rgba(200, 80, 80, 0),
1296+
// inset 0 -30px 100px rgba(200, 80, 80, 0);
1297+
// }
1298+
// }
12991299

1300-
// Fallback for browsers that don't support :has()
1301-
.screen-critical-warning {
1302-
position: fixed;
1303-
top: 0;
1304-
left: 0;
1305-
right: 0;
1306-
bottom: 0;
1307-
pointer-events: none;
1308-
z-index: 999;
1309-
animation: screenPulse 1s ease-in-out infinite;
1310-
border: 8px solid transparent;
1311-
}
1300+
// Fallback for browsers that don't support :has() - disabled for performance
1301+
// .screen-critical-warning {
1302+
// position: fixed;
1303+
// top: 0;
1304+
// left: 0;
1305+
// right: 0;
1306+
// bottom: 0;
1307+
// pointer-events: none;
1308+
// z-index: 999;
1309+
// animation: screenPulse 1s ease-in-out infinite;
1310+
// border: 8px solid transparent;
1311+
// }
13121312

13131313
// Animated Counter Styles
13141314
.animated-counter {

0 commit comments

Comments
 (0)