Optimize GradientBlinds with IntersectionObserver #10

Merged
google-labs-jules[bot] merged 1 commits from optimize-gradient-blinds-intersection-observer-8465585914404469487 into main 2026-01-23 09:55:48 +00:00

1 Commits

Author SHA1 Message Date
google-labs-jules[bot]
fe6e07fe92 perf: pause GradientBlinds animation when off-screen
Removes the unconditional start of the animation loop on mount. The loop is now exclusively managed by the existing IntersectionObserver, ensuring it only runs when the component is visible.

Updates tests to reflect this behavior by simulating intersection events to trigger the animation.
2026-01-23 09:29:42 +00:00