Skip to content

feat(work): per-element ScrollTrigger for precise scroll-in reveals - #27

Merged
FafLikeASir merged 1 commit into
mainfrom
feat/work-scroll-animations
Jun 26, 2026
Merged

feat(work): per-element ScrollTrigger for precise scroll-in reveals#27
FafLikeASir merged 1 commit into
mainfrom
feat/work-scroll-animations

Conversation

@FafLikeASir

Copy link
Copy Markdown
Owner

Summary

  • Replace single section-level ScrollTrigger (all rows fire at once) with per-element triggers so each row reveals exactly as it enters the viewport
  • Add work-heading animation class to the Work h2 — slides up from translateY(24px) on its own trigger
  • Change .work-row entrance from pure-y to directional translate(-20px, 8px)(0, 0) with expo.out easing
  • Upgrade WorkAnimations from useEffect to useGSAP hook for automatic cleanup

Test plan

  • Scroll to Work section — heading should animate in first, then each row reveals individually as it enters the bottom of the viewport
  • Fast-scroll past the section and back — no stuck invisible rows (gsap.to + CSS initial state pattern preserved)
  • Check prefers-reduced-motion — all elements immediately visible, no animation

🤖 Generated with Claude Code

Switch from a single section-level trigger (all rows fire at once) to
per-element ScrollTriggers so each row and the heading reveal exactly
as they enter the viewport. Add heading animation and directional x+y
entrance for work rows. Upgrade WorkAnimations to useGSAP hook.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
rahan Ready Ready Preview, Comment Jun 26, 2026 2:21am

@FafLikeASir
FafLikeASir merged commit 48ed183 into main Jun 26, 2026
2 of 3 checks passed
@FafLikeASir
FafLikeASir deleted the feat/work-scroll-animations branch June 26, 2026 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant