Skip to content

Commit 50844fc

Browse files
Bikram GoleBikram Gole
authored andcommitted
Stabilize pulse effect on low-power browsers
1 parent bd1b882 commit 50844fc

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

script.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,12 @@ function triggerPulseBackdrop(clientX = null, clientY = null) {
758758
pulseCoreFlash?.classList.remove("pulse-active");
759759
}, 920);
760760

761-
if (typeof pulseWaveLayer.animate !== "function" || typeof pulseCoreFlash.animate !== "function") {
761+
if (
762+
isFirefoxLike ||
763+
isConstrained ||
764+
typeof pulseWaveLayer.animate !== "function" ||
765+
typeof pulseCoreFlash.animate !== "function"
766+
) {
762767
return;
763768
}
764769

styles.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4079,6 +4079,21 @@ body.force-terminal-fallback .pulse-wave {
40794079
radial-gradient(520px 380px at var(--pulse-x, 50%) var(--pulse-y, 35%), rgba(71, 139, 255, 0.26), transparent 78%);
40804080
}
40814081

4082+
body.force-terminal-fallback .hero,
4083+
body.force-terminal-fallback .panel,
4084+
body.force-terminal-fallback .site-header,
4085+
body.force-terminal-fallback .section-rail,
4086+
body.force-terminal-fallback .mini-terminal,
4087+
body.force-terminal-fallback .glass-card,
4088+
body.force-terminal-fallback .repo-card,
4089+
body.force-terminal-fallback .contact-item,
4090+
body.force-terminal-fallback .favorite-card,
4091+
body.force-terminal-fallback .fact-card,
4092+
body.force-terminal-fallback .chaos-card {
4093+
backdrop-filter: none;
4094+
box-shadow: 0 8px 18px rgba(3, 12, 28, 0.22);
4095+
}
4096+
40824097
@media (max-width: 820px) {
40834098
.pulse-wave {
40844099
inset: -8%;

0 commit comments

Comments
 (0)