Cube CarouselAn interactive 3D photo cube with six placeholder images on its faces.

3D & ShadersImage galleryPortfolioHero section
Cube face 1
Cube face 2
Cube face 3
Cube face 4
Cube face 5
Cube face 6

Add to your project

One command adds this component to your project.

1

Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.

npx shadcn@latest add @aicanvas/cube-carousel
2

For dark mode, add the dark class to your <html> element:

Optional
<html class="dark">

Install with AI Canvas MCP

With AI Canvas MCP, your AI knows every component we ship. Ask for “a navigation component from AI Canvas” inside Claude Code, Codex, or Cursor and it can suggest you a few options, then install the one you like. Less typing, lower token cost, modern way to build.

Get MCP

About Cube Carousel

Cube Carousel is a true 3D photo cube built on CSS transforms with preserve-3d, not a Three.js scene or a perspective trick. Six placeholder images sit on the faces of a cube with a 16:9:9 width-height-depth ratio. The drag interaction uses Motion onPan to apply rotation deltas on both axes simultaneously; releasing the cube lets it coast to a soft spring stop with no snap-back. No buttons, no controls, no UI chrome, just a cube and your cursor. It is well suited to portfolio galleries, product showcases, or hero sections where a tactile, physical-feeling interaction is worth more than another fade-in.

Built with

MotionTailwind CSS

More like this