Loading preview
3D Cube
3DA CSS-only cube with six content faces that tumbles slowly and pauses on hover.
A tilted wall of vertically scrolling columns, for screenshots and showcases.
npx shadcn@latest add @venusui/marquee-3dRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/marquee.tsxfrom marquee@/components/ui/marquee-3d.tsxThe code behind the preview above.
marquee-3d-demo.tsx
import { Marquee3d } from "@/components/ui/marquee-3d"
const tiles = Array.from({ length: 16 }, (_, i) => (
<div key={i} className="h-28 w-40 rounded-lg border bg-card p-3">
<div className="h-2 w-12 rounded bg-muted" />
<div className="mt-2 h-2 w-20 rounded bg-muted" />
<p className="mt-6 font-mono text-xs text-muted-foreground">Screen {i + 1}</p>
</div>
))
export default function Marquee3dDemo() {
return <Marquee3d items={tiles} className="max-w-3xl" />
}
| Prop | Type | Default | Description |
|---|---|---|---|
| items | ReactNode[] | — | Tiles to show; split across the columns. Required. |
| columns | number | 4 | Number of scrolling columns. |
| className | string | — | Classes for the wall, e.g. a height. |
Only the props above.
marquee (the CLI installs it and its CSS). Works in Server Components.rotateX/rotateZ transform in the file.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.A CSS-only cube with six content faces that tumbles slowly and pauses on hover.
Curved lines across a section with light traveling along them.
Beams of light fall to the floor and burst into sparks when they land.