Skip to content

[Performance] Hero section animation runs even when not visible #498

Description

@nonsobethel0-dev

Description

The hero section animation continues running even when scrolled out of view, wasting GPU resources.

Current behavior

CSS animations run unconditionally.

Expected behavior

Pause animations when not visible using Intersection Observer.

Files

  • components/home/HeroSection.tsx

Impact

Unnecessary GPU usage and battery drain.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions