Join our Discord Community
Interactive

3D Marquee

Animated 3D marquee with perspective grid transforms and smooth scrolling images. Perfect for React applications requiring immersive visual displays with Next.js integration and TypeScript support.

Powered by

Loading component...

Installation

npx shadcn@latest add https://www.shadcn.io/registry/3d-marquee.json
npx shadcn@latest add https://www.shadcn.io/registry/3d-marquee.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/3d-marquee.json
bunx shadcn@latest add https://www.shadcn.io/registry/3d-marquee.json

Features

  • 3D perspective grid with rotated transforms and dynamic image positioning
  • Smooth column animations with alternating vertical movement patterns using Motion
  • Responsive scaling adapts to different screen sizes (50% mobile, 75% tablet, 100% desktop)
  • Hover interactions with individual image lifting effects and shadow animations
  • Grid line overlays with customizable horizontal and vertical decorative elements
  • TypeScript support with comprehensive prop interfaces and type safety
  • Motion integration compatible with shadcn/ui design system and Tailwind CSS

Examples

Fullscreen Hero

Loading component...

Immersive fullscreen layout with content overlay and background marquee effect.

Use Cases

This free open source React component works well for:

  • Hero sections - Immersive landing page backgrounds built with Next.js
  • Portfolio showcases - Creative image galleries using TypeScript and Motion
  • Brand presentations - Dynamic visual displays with 3D perspective effects
  • Background animations - Ambient content for modern web applications

API Reference

ThreeDMarquee

PropTypeDefaultDescription
imagesstring[]requiredArray of image URLs to display in the 3D grid
classNamestringundefinedAdditional CSS classes for the marquee container

GridLineHorizontal

PropTypeDefaultDescription
classNamestringundefinedAdditional CSS classes for the horizontal grid line
offsetstring"200px"Extension of the line beyond element boundaries

GridLineVertical

PropTypeDefaultDescription
classNamestringundefinedAdditional CSS classes for the vertical grid line
offsetstring"150px"Extension of the line beyond element boundaries

Implementation Notes

  • Images are automatically distributed across 4 columns with alternating animations
  • Component uses CSS 3D transforms with 55° X-rotation and -45° Z-rotation
  • Alternating columns animate with 10s and 15s duration cycles
  • Grid lines use CSS custom properties for theming and positioning
  • Compatible with Motion's animation system and performance optimizations
  • Requires container with defined height for proper 3D perspective display