Skip to content

fix: optimize animation and video previews - #44

Merged
DavidHDev merged 1 commit into
DavidHDev:mainfrom
phh235:fix/performance-animation-video
Aug 14, 2026
Merged

fix: optimize animation and video previews#44
DavidHDev merged 1 commit into
DavidHDev:mainfrom
phh235:fix/performance-animation-video

Conversation

@phh235

@phh235 phh235 commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Optimizes animation and video preview performance across the landing page.

  • Pauses marquee animations when outside the viewport.
  • Defers preview video loading until needed.
  • Pauses HeroReveal animation when hidden, out of view, or under reduced-motion preferences.
  • Stops the automatic HeroReveal animation while the user is interacting with it.
  • Adds proper cleanup for observers, animation frames, and event listeners.

Type of change

  • Bug
  • Component improvement

Checklist

  • npx tsc --noEmit passes
  • npm run lint passes
  • npm run build passes
  • Tested in Chrome (with the html-in-canvas flag, if relevant)
  • Tested the WebGL overlay fallback (flag off / Safari / Firefox), if a component changed

@DavidHDev
DavidHDev merged commit e6d43be into DavidHDev:main Aug 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants