perf: fix GPU-heavy CSS patterns

- Remove mix-blend-mode: overlay from body::before noise texture
  (was forcing fullscreen GPU compositing on every paint)
- Disable noise texture on mobile via display:none media query
- Replace backdrop-filter animation in backdropFadeIn/Out keyframes
  with opacity-only animation (backdrop-filter transition is expensive)
- Replace toast progress bar width animation with scaleX (GPU-composited)
- Remove redundant will-change: transform from .glass and .wave-blob
This commit is contained in:
Fringg
2026-02-23 17:14:57 +03:00
parent 9a84e13e6c
commit 860493058a
2 changed files with 14 additions and 15 deletions

View File

@@ -221,9 +221,10 @@ function ToastItem({ toast, onClose }: { toast: Toast; onClose: () => void }) {
{/* Progress bar */}
<div className="absolute bottom-0 left-0 right-0 h-1 bg-dark-800/50">
<div
className={`h-full ${style.progress} opacity-60`}
className={`h-full w-full ${style.progress} opacity-60`}
style={{
animation: `shrink ${toast.duration}ms linear forwards`,
transformOrigin: 'left',
}}
/>
</div>