Jessi

3D Gallery Photography

Galleries 3.3K

About

3D Gallery Photography Using React Three Fiber

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds 3D Gallery Photography to your project and fits it to your theme.

Code

How 3D Gallery Photography is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import InfiniteGallery  from "@/components/ui/3d-gallery-photography";

export default function DemoOne() {
const sampleImages = [
		{ src: 'https://cdn.21st.dev/assets/mirror/95/952b3b857ff14e4f91503879a7230d742e860ae4516f9dde3a505a4463c042e0.jpg', alt: 'Image 1' },
		{ src: 'https://cdn.21st.dev/assets/mirror/c6/c63e65818b6a3bae9a3fcc70204478ae64ba8a784ee3ece30b63240938225655.jpg', alt: 'Image 2' },
		{ src: 'https://cdn.21st.dev/assets/mirror/4b/4be49c7d2040e5588b22ac82a449e25f08f89bb69c6b528569cbea7fd963e3aa.jpg', alt: 'Image 3' },
		{ src: 'https://cdn.21st.dev/assets/mirror/eb/eb0ac0a8a2919d834c932802d63bd08e36503205928695a7261b3a2ad0ed4f9c.jpg', alt: 'Image 4' },
		{ src: 'https://cdn.21st.dev/assets/mirror/04/04281bdf07c83cc8477dedc5ada4f72964818de0bd06fa916a755df6f1054f68.jpg', alt: 'Image 5' },
		{ src: 'https://cdn.21st.dev/assets/mirror/5b/5bf1392386e3926240352cf21edc626753e268be3530ea563de58db86dbf7cc8.jpg', alt: 'Image 6' },
		{ src: 'https://cdn.21st.dev/assets/mirror/b9/b9bfe17ba11762604a7fadbf169fbf6b1021e62ee7ec4f6fa7ed9427017af908.jpg', alt: 'Image 7' },
		{ src: 'https://cdn.21st.dev/assets/mirror/51/51388b25912624d4b0d1cc8a87165e862f8fd32899da728c0ed6dce22fb7808c.jpg', alt: 'Image 8' },
	];

  return (
    <main className="min-h-screen h-full w-full">
			<InfiniteGallery
				images={sampleImages}
				speed={1.2}
				zSpacing={3}
				visibleCount={12}
				falloff={{ near: 0.8, far: 14 }}
				className="h-screen w-full rounded-lg overflow-hidden"
			/>
			<div className="h-screen inset-0 pointer-events-none fixed flex items-center justify-center text-center px-3 mix-blend-exclusion text-white">
				<h1 className="font-serif text-4xl md:text-7xl tracking-tight">
					<span className="italic">Shadway</span>
				</h1>
			</div>

			<div className="text-center fixed bottom-10 left-0 right-0 font-mono uppercase text-[11px] font-semibold">
				<p>Use mouse wheel, arrow keys, or touch to navigate</p>
				<p className=" opacity-60">
					Auto-play resumes after 3 seconds of inactivity
				</p>
			</div>
		</main>
	);
}

Dependencies

More by Jessi

View all
  • Wireframe Dotted Globe

    Wireframe Dotted Globe

    3.4K
  • Animate Card Animation

    Animate Card Animation

    2.4K
  • The Infinite Grid

    The Infinite Grid

    1.9K
  • Hero Dithering Card

    Hero Dithering Card

    1.6K
  • Hero section with smooth bg Shader

    Hero section with smooth bg Shader

    1.3K
  • 3D Image gallery

    3D Image gallery

    1.3K
  • Stacked Panels Cursor intereactive component

    Stacked Panels Cursor intereactive component

    1.2K
  • Wrap Shader

    Wrap Shader

    964

More in Galleries

View all
  • Thumbnail image viewer

    Thumbnail image viewer

    43
  • Animated Gallery

    Animated Gallery

    1.4K
  • Hero Section 6

    Hero Section 6

    881
  • Editorial Collage Hero

    Editorial Collage Hero

    430
  • Layout Grid

    Layout Grid

    826
  • 3D Parallax Unfurling Gallery

    3D Parallax Unfurling Gallery

    981
  • File Upload

    File Upload

    18
  • Image Gallery

    Image Gallery

    90