Skip to content
VenusUI
Get started

Scroll Device

A large screen, tipped back in 3D, that swings upright as it scrolls into view.

Preview

Installation

npx shadcn@latest add @venusui/scroll-device

Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.

Files added to your project

Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.

  • @/components/ui/scroll-device.tsx

Usage

The code behind the preview above.

scroll-device-demo.tsx

import { ScrollDevice } from "@/components/ui/scroll-device"

export default function ScrollDeviceDemo() {
  return (
    <ScrollDevice className="w-full max-w-2xl">
      <div className="flex size-full items-center justify-center bg-linear-to-br from-violet-500/30 to-sky-400/30">
        <p className="text-xl font-semibold tracking-tight">Your product here</p>
      </div>
    </ScrollDevice>
  )
}

API reference

PropTypeDefaultDescription
childrenReactNode—What runs on the screen: a screenshot, a video or live UI. Required.
tiltnumber38Starting tilt in degrees.

Only the props above, plus className.

Requirements

  • motion (the CLI installs it), React 19 and Tailwind CSS v4.

Customization

  • The screen is 16:10; fill it with an image using object-cover.
  • Give the section overflow-hidden so the tilted screen doesn’t cause sideways scrolling.

Accessibility

  • Pure motion; the screen content keeps its own semantics.
  • Flat and still with reduced motion.

Troubleshooting

It doesn’t move.
The motion follows page scroll; it needs room above and below to scroll through.
Unknown registry "@venusui"
Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (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 found
Run npx shadcn@latest init in your project first.
Loading preview

A CSS-only cube with six content faces that tumbles slowly and pauses on hover.

Loading preview

A tilted wall of vertically scrolling columns, for screenshots and showcases.

Loading preview

A card that tilts in 3D toward the pointer with spring physics.