Controls

Poster Sphere

Size
Smoothness
Movement
Preview
Reduced motion

Simulates prefers-reduced-motion for the demo. Off follows your system setting.

Keyboard stepping

Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.

Poster Sphere

The Last Lighthouse (1987)

Drag to browse, click a poster to open it

Poster Sphere

A movie browser that swells an endless wall of posters under a lens and opens each film in a full screen view.

Dependencies

motion

Installation

npx shadcn@latest add ikislay/pixel-ui/poster-sphere

How to use

import { PosterSphere } from "@/components/ui/poster-sphere"
export function Demo() {
return <PosterSphere movement="hover" className="h-[640px] w-full" />
}

Source Code

// Loading…

Props

Options you can pass to customize this component.

Prop
Type
Description
movies
{ title: string; year: number; genre: string; rating: number; tagline: string; synopsis: string; poster: string }[]

The films on the wall, repeated to fill it. poster is an image URL; rating is out of 100.

size
smmdlg

Poster width on the flat wall: 22, 30 or 42 pixels; the centre of the bulge magnifies about three times. Smaller posters fit more but cost more to draw.

smoothness
snappysmoothfloaty

How closely the wall trails your drag and how far it glides after you let go.

movement
draghover

drag moves only while dragging. hover also drifts the bulge toward the cursor and slides the wall near its edges.

className
string

Classes applied to the root. Give it a height; the wall fills it.