
What is this?
A pinned full-screen works gallery. As you scroll, photos alternating left and right fly out of the distance toward the camera while a blurred backdrop of the active work crossfades behind them. The active work's name follows along the bottom bar. Swap the talent names, clients, and photos, then drop it into a photographer or creative portfolio.
Full TSX source. No account needed.
pin-spacer-works.tsx
"use client"; import { useEffect, useRef } from "react";import gsap from "gsap";import { ScrollTrigger } from "gsap/ScrollTrigger";import { clamp01, cn } from "@/lib/utils"; const FONT_LINK_ID = "pin-spacer-works-fonts";Read the guide
- Read the guide: Claude Code in Cursor: How to Use Both Agents Together (and Add Motion React Components)
- Read the guide: GSAP pin-spacer Explained: Why It Adds Space and How to Fix Pinning in React and Next.js
- Read the guide: Aceternity UI Alternatives in 2026: Animated React Libraries Compared (Free vs Paid)
- Read the guide: GSAP ScrollTrigger in Next.js: useGSAP, Scrub, Pin, and Cleanup
Pin Spacer Works
A pinned full-screen works gallery. As you scroll, photos alternating left and right fly out of the distance toward the camera while a blurred backdrop of the active work crossfades behind them. The active work's name follows along the bottom bar. Swap the talent names, clients, and photos, then drop it into a photographer or creative portfolio.
Verified Technical Spec
- Animation
- GSAP
- Reduced motion
- Verified
- Keyboard focus
- Not detected in source
- Compatibility
- Tailwind CSS v3.4 + v4 · React 19 / Next.js 15 App Router + Vite / Remix compatible
Included
- Copy source into Cursor or Claude for agent install
- Responsive on phone, tablet, and desktop
- Finished React · TypeScript · Tailwind CSS · GSAP UI
Dependencies
- React 19.0.0
- Typescript 5.7.2
- Tailwindcss 3.4.16
- GSAP 3.15.0
Tech Stack
- React
- TypeScript
- Tailwind CSS
- GSAP
Version 1.0.0





