Back to blocks
Pin Spacer Works React component

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

BlockPass

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.

Checking access…
Live Preview

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