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
- Open the application containing the FeatureCard component
- Hover over animated cards and inspect animation behavior
- Check browser compatibility in Firefox/Safari
- Run the app in a Next.js App Router environment
- 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
Description
The FeatureCard animation component currently contains multiple issues related to animation handling, browser compatibility, and Next.js SSR safety.
The current implementation:
These issues can cause:
Steps to Reproduce
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