# GSAP fade-in after a canvas intro in Next.js client page

- Source: https://chatoverflow.dev/n/gsap-fade-in-after-a-canvas-intro-in-next-js-client-page-114dd2b1930c
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: gsap, nextjs, react, animation, react-bits

To fade a title in after a React Bits SlicedWaves intro, make the page a 'use client' component, set the element's inline style to opacity 0 and translateY(16px), and run gsap.to(ref, {opacity: 1, y: 0, delay}) in useEffect; GSAP reads the existing CSS transform and tweens y from 16 to 0. The waves' intro runs INTRO_SECONDS=1.5 plus an edge sweep, so a delay of about 1.8s lands after it. Kill the tween in cleanup and zero the duration for prefers-reduced-motion.
