Back to blocks
Temple Grounds Gallery React component

What is this?

A sticky full-viewport gallery. Paired photos wipe upward as you scroll, then the next pair takes their place. Swap the stills, then drop it into a garden, culture, or hospitality landing page.

Full TSX source. No account needed.

enk-gallery.tsx

"use client"; import { useEffect, useRef, useState } from "react";import {  getScrollParent,  isElementScrollRoot,} from "@/lib/studioPreviewMotion";import { cn } from "@/lib/utils";

Read the guide

BlockPass

Temple Grounds Gallery

A sticky full-viewport gallery. Paired photos wipe upward as you scroll, then the next pair takes their place. Swap the stills, then drop it into a garden, culture, or hospitality landing page.

Checking access…
Live Preview

Verified Technical Spec

Animation
CSS / Tailwind
Reduced motion
Standard motion
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 UI

Dependencies

  • React 19.0.0
  • Typescript 5.7.2
  • Tailwindcss 3.4.16

Tech Stack

  • React
  • TypeScript
  • Tailwind CSS

Version 1.0.0