perf(thermal): eradicate thermal heating, CPU throttling, and excessive power draw across mobile and low-end devices
This commit is contained in:
+100
-14
@@ -53,9 +53,7 @@
|
||||
color: #0F172A;
|
||||
background-color: #FAF8F5;
|
||||
background-image:
|
||||
radial-gradient(circle at 50% -10%, rgba(37, 99, 235, 0.05) 0%, transparent 60%),
|
||||
radial-gradient(circle at 90% 25%, rgba(2, 132, 199, 0.04) 0%, transparent 50%),
|
||||
radial-gradient(circle at 10% 75%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
|
||||
radial-gradient(circle at 50% -10%, rgba(37, 99, 235, 0.04) 0%, transparent 60%);
|
||||
background-attachment: scroll;
|
||||
font-family: var(--font-sans), system-ui, -apple-system, sans-serif;
|
||||
overflow-x: clip;
|
||||
@@ -197,7 +195,7 @@
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
/* Shimmer Animation Effect for Badges & Buttons */
|
||||
/* Shimmer Animation Effect for Badges & Buttons — disabled on touch devices */
|
||||
.shimmer-badge {
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
@@ -206,7 +204,10 @@
|
||||
rgba(255, 255, 255, 0) 100%
|
||||
);
|
||||
background-size: 200% 100%;
|
||||
animation: shimmer 3s infinite;
|
||||
animation: shimmer 4s infinite;
|
||||
}
|
||||
@media (pointer: coarse) {
|
||||
.shimmer-badge { animation: none; }
|
||||
}
|
||||
|
||||
@keyframes gradient-flow {
|
||||
@@ -323,8 +324,9 @@ body, h1, h2, h3, h4, p, span, button {
|
||||
}
|
||||
}
|
||||
|
||||
/* holographic-laser-pulse: disabled — box-shadow pulses cause GPU paint on every frame */
|
||||
.holographic-laser-split {
|
||||
animation: holographic-laser-pulse 2.4s ease-in-out infinite;
|
||||
box-shadow: 0 0 10px rgba(37, 99, 235, 0.5), 0 0 25px rgba(197, 168, 128, 0.3);
|
||||
}
|
||||
|
||||
/* Light Luxury Cinematic 3D Card Shadows */
|
||||
@@ -439,7 +441,7 @@ h1, h2, h3, h4, h5, h6, .text-3d-chiseled {
|
||||
}
|
||||
|
||||
.animate-neural-sweep {
|
||||
animation: neural-sweep 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
||||
animation: none; /* Disabled — was causing constant paint on every page; re-enable only in targeted hero contexts if needed */
|
||||
}
|
||||
|
||||
@supports (content-visibility: auto) {
|
||||
@@ -548,7 +550,7 @@ h1, h2, h3, h4, h5, h6, .text-3d-chiseled {
|
||||
.glass-card:hover, .button-primary:hover, .button-secondary:hover { transform: none; }
|
||||
}
|
||||
|
||||
/* Animated Quantum Logo Keyframes */
|
||||
/* Animated Quantum Logo Keyframes — slowed down to reduce thermal impact */
|
||||
@keyframes cre-orbit-cw {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
@@ -558,8 +560,8 @@ h1, h2, h3, h4, h5, h6, .text-3d-chiseled {
|
||||
to { transform: rotate(0deg); }
|
||||
}
|
||||
@keyframes cre-pulse-star {
|
||||
0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(56,189,248,0.9)); }
|
||||
50% { transform: scale(1.08); filter: drop-shadow(0 0 14px rgba(236,72,153,1)); }
|
||||
0%, 100% { transform: scale(1); }
|
||||
50% { transform: scale(1.05); }
|
||||
}
|
||||
@keyframes cre-shimmer-slide {
|
||||
0%, 20% { transform: translate(-80px, -80px) rotate(45deg); opacity: 0; }
|
||||
@@ -567,20 +569,33 @@ h1, h2, h3, h4, h5, h6, .text-3d-chiseled {
|
||||
60%, 100% { transform: translate(80px, 80px) rotate(45deg); opacity: 0; }
|
||||
}
|
||||
|
||||
/* Slower orbit = less frame renders = cooler device */
|
||||
.cre-anim-orbit {
|
||||
transform-origin: 50px 50px;
|
||||
animation: cre-orbit-cw 14s linear infinite;
|
||||
animation: cre-orbit-cw 28s linear infinite;
|
||||
}
|
||||
.cre-anim-orbit-reverse {
|
||||
transform-origin: 50px 50px;
|
||||
animation: cre-orbit-ccw 10s linear infinite;
|
||||
animation: cre-orbit-ccw 22s linear infinite;
|
||||
}
|
||||
/* Removed drop-shadow filter from keyframe — filters force layer rasterization on every frame */
|
||||
.cre-anim-core {
|
||||
transform-origin: 50px 50px;
|
||||
animation: cre-pulse-star 3s ease-in-out infinite;
|
||||
animation: cre-pulse-star 5s ease-in-out infinite;
|
||||
}
|
||||
/* Slower shimmer = much lower repaint frequency */
|
||||
.cre-anim-shimmer {
|
||||
animation: cre-shimmer-slide 4.5s ease-in-out infinite;
|
||||
animation: cre-shimmer-slide 8s ease-in-out infinite;
|
||||
}
|
||||
|
||||
/* On touch/mobile devices — disable logo orbit animations entirely (huge thermal saving) */
|
||||
@media (pointer: coarse), (max-width: 767px) {
|
||||
.cre-anim-orbit,
|
||||
.cre-anim-orbit-reverse,
|
||||
.cre-anim-core,
|
||||
.cre-anim-shimmer {
|
||||
animation: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes laser-scan {
|
||||
@@ -594,5 +609,76 @@ h1, h2, h3, h4, h5, h6, .text-3d-chiseled {
|
||||
animation: laser-scan 1.6s ease-in-out infinite;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
MOBILE & TABLET THERMAL SAFETY NET — kills all non-essential
|
||||
continuously running CSS animations, heavy backdrop-filter passes,
|
||||
and unneeded GPU layer allocations on touch devices & tablets.
|
||||
Keeps native 120Hz smooth scrolling without CPU/GPU thermal spikes.
|
||||
============================================================ */
|
||||
@media (pointer: coarse), (max-width: 1024px) {
|
||||
/* Kill always-running background sweeps, laser scans & shimmer beams */
|
||||
.animate-neural-sweep,
|
||||
.animate-border-beam,
|
||||
.animate-laser-scan,
|
||||
.shimmer-badge,
|
||||
.holographic-laser-split {
|
||||
animation: none !important;
|
||||
}
|
||||
|
||||
/* Kill logo orbit animations (they run 24/7 even when offscreen) */
|
||||
.cre-anim-orbit,
|
||||
.cre-anim-orbit-reverse,
|
||||
.cre-anim-core,
|
||||
.cre-anim-shimmer {
|
||||
animation: none !important;
|
||||
}
|
||||
|
||||
/* Kill Tailwind's built-in pulse/bounce/spin/ping on touch devices */
|
||||
.animate-pulse {
|
||||
animation: none !important;
|
||||
opacity: 0.6;
|
||||
}
|
||||
.animate-bounce {
|
||||
animation: none !important;
|
||||
}
|
||||
.animate-spin {
|
||||
animation: none !important;
|
||||
}
|
||||
.animate-ping {
|
||||
animation: none !important;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Kill always-on float animations */
|
||||
.animate-float-slow,
|
||||
.animate-float-medium {
|
||||
animation: none !important;
|
||||
}
|
||||
|
||||
/* Reduce will-change on mobile/tablets: browser treats this as a hint to
|
||||
allocate a separate GPU layer, which costs VRAM and generates heat */
|
||||
[class*="will-change-"] {
|
||||
will-change: auto !important;
|
||||
}
|
||||
|
||||
/* Disable expensive backdrop-filter on mobile/tablets where it causes GPU thermal spikes */
|
||||
[class*="backdrop-blur"],
|
||||
.liquid-glass-nav,
|
||||
.liquid-glass-dropdown,
|
||||
.glass-neo {
|
||||
backdrop-filter: none !important;
|
||||
-webkit-backdrop-filter: none !important;
|
||||
}
|
||||
|
||||
/* Disable body background gradient on mobile: static color is free */
|
||||
body {
|
||||
background-image: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Marquee: use CSS contain to limit repaint area */
|
||||
.animate-marquee,
|
||||
.animate-marquee-vertical {
|
||||
contain: layout style;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user