Simulates prefers-reduced-motion for the demo. Off follows your system setting.
Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.
1
The Last Lighthouse (1987)
A movie browser that swells an endless wall of posters under a lens and opens each film in a full screen view.
npx shadcn@latest add ikislay/pixel-ui/poster-sphereimport { PosterSphere } from "@/components/ui/poster-sphere"export function Demo() {return <PosterSphere movement="hover" className="h-[640px] w-full" />}
1// Loading…
Options you can pass to customize this component.
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.
sizesmmdlgPoster 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.
smoothnesssnappysmoothfloatyHow closely the wall trails your drag and how far it glides after you let go.
movementdraghoverdrag moves only while dragging. hover also drifts the bulge toward the cursor and slides the wall near its edges.
classNamestringClasses applied to the root. Give it a height; the wall fills it.