Cinema
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardCinema(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/card-cinemaAbout this component
A film card that goes widescreen when you hover it: black bars close in from top and bottom until the still is cropped to 2.39:1, the camera pushes in a touch, and a line of dialogue fades up in the lower bar as a subtitle.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers3
- Hover
- State change
- Card
Techniques3
- CSS transition
- Transform only
- Gradient
Accessibility
Keyboard and screen readers
An article labelled with the film, year and running time; it takes focus, and focus or a tap shows the scene as hover does. The subtitle is decorative (aria-hidden), and the showtimes are ordinary text.
Reduced motion
The bars appear without moving.
Use it in anything you build, commercial and client work included. Licence
More cards
See allLighthouse · Sutherland
The spare key is under the blue pot. Don't tell Sam.
Golden hour · Slovenia