Vector Tilt Scene, animated React component
A card that is really a little diorama: point at it and it tilts toward you while its paper-cut layers spring apart in depth, overshoot and settle. The layers then drift against the pointer for real parallax, and a sheen follows the pointer across the glass label.
- Free
- 3D Components
- Hover
- 3D
- Scroll
- Spring
Like Vector Tilt Scene? 256 more are in Pro.
Pro unlocks all 256 Pro components, every template and block, and everything we release next. Vector Tilt Scene stays free.
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Scene depth
Vector Tilt Scene
Layers that open up as you look closer.
Point at the card.
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| eyebrow | string | "Scene depth" | Small caption on the glass label. |
| title | string | "Vector Tilt Scene" | Title on the glass label, also used in the accessible name. |
| description | string | "Layers that open up as you look closer." | One line under the title. |
| children | ReactNode | — | Replaces the glass label with your own content, floating on the top layer. |
| maxTilt | number | 14 | Largest tilt in degrees. |
| depth | number | 26 | Gap between layers when the scene pops open, in px. |
| glare | boolean | true | Sheen that follows the pointer. |
| hint | string | "Point at the card." | Hint under the card. An empty string hides it. |
| autoplay | boolean | false | Pops the scene open and tilts it in a slow figure of eight until someone touches it. |
| className | string | — | Classes for the root. |
Add it to your project
- 1
Set up your project once
You need a Next.js project with Tailwind CSS and the
@/import alias. In its root folder, run this once. It createscomponents.jsonand thecn()helper insrc/lib/utils.ts:npx shadcn@latest init -d
Starting from nothing? The Quick Start walks through the whole thing.
- 2
Connect the registry
Run this once per project. It writes the Nexus UI entry into
components.jsonfor you:npx shadcn@latest registry add "@nexus-labs=https://www.nexus-ui.com/api/registry/{name}"Type it exactly as shown.
{name}is filled in by the CLI with the component you ask for, so you never replace it.
- 3
Add the component
Run this from your project root. It adds the component, the helpers it imports and its npm packages.
npx shadcn@latest add @nexus-labs/vector-tilt-scene
- 4
Check what was added
With a project made as in the Quick Start (a
src/folder), these files land in it:components/vector-tilt-scene/index.tsvector-tilt-scene.tsx - 5
Copying by hand? Skip the registry
Instead of steps 2 and 3 you can copy the files yourself, with no registry and no API key. Step 1 still applies, so that
cn()exists. Install the packages:npm install framer-motion
Then show the source and create each file at the path it gives:
- 6
Use it in a page
Installing only adds the files. Import the component in a page and render it. The Usage tab on the preview shows a fuller example with props:
// src/app/page.tsx import { VectorTiltScene } from "@/components/vector-tilt-scene"; export default function Page() { return ( <main> <VectorTiltScene /> </main> ); }
Like Vector Tilt Scene? 256 more are in Pro.
Pro unlocks all 256 Pro components, every template and block, and everything we release next. Vector Tilt Scene stays free.
About Vector Tilt Scene
The Vector Tilt Scene is a high-depth glass panel with 3D perspective tilt physics for hero cards and feature highlights. Mouse movement rotates the panel in three dimensions using Framer Motion spring physics, revealing layered glass surfaces at varying depths. The perspective effect makes flat content — screenshots, diagrams, feature previews — feel spatial and premium. It accepts any React content as children, so product screenshots, mockup images, and animated elements all work inside it.
Good for
- Product screenshot frames
- Hero card and feature highlight panels
- Promotional artwork containers
- App preview windows
Vector Tilt Scene questions
How do I install the tilt card?
Run `npx shadcn@latest add @nexus-labs/vector-tilt-scene`. It adds a single VectorTiltScene file and installs framer-motion.
How does the tilt work?
It measures the pointer's offset from the card's center and maps it to `rotateX`/`rotateY` of up to 12 degrees, smoothed by springs (stiffness 240, damping 22) with a 1100px perspective. Leaving the card springs it back to flat.
How do I change the card's content?
The component takes no props. The file is copied into your project, so edit the heading, text and Tailwind classes inside VectorTiltScene directly, or move the motion logic onto your own card.
Does it tilt on touch devices?
The tilt is driven by mouse movement, so on phones and tablets the card mostly stays flat. It is meant as a desktop hover effect.