Skip to content

bug: Fix GSAP animation issues, unsupported CSS masking, non-standard zoom usage, and SSR unsafe ScrollTrigger registration #2156

@ANSHIKATYAGI30

Description

@ANSHIKATYAGI30

Description

The FeatureCard animation component currently contains multiple issues related to animation handling, browser compatibility, and Next.js SSR safety.
The current implementation:

  • uses an invalid GSAP random value syntax,
  • relies on unsupported CSS masking properties,
  • uses non-standard CSS zoom scaling,
  • and registers ScrollTrigger at module level.

These issues can cause:

  • broken or inconsistent animations,
  • browser compatibility problems,
  • rendering inconsistencies across environments,
  • and SSR/build failures in Next.js applications.

Steps to Reproduce

  1. Open the application containing the FeatureCard component
  2. Hover over animated cards and inspect animation behavior
  3. Check browser compatibility in Firefox/Safari
  4. Run the app in a Next.js App Router environment
  5. Observe animation glitches, rendering inconsistencies, or SSR-related warnings/errors

Expected Behavior

GSAP animations should run correctly without invalid values
Border effects should work consistently across browsers
Scaling should use standard CSS transforms
ScrollTrigger should initialize safely in client-side lifecycle hooks without SSR issues

Environment

Chrome

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions