Lighthouse · Sutherland
Dolly
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardDolly(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-dollyAbout this component
A travel card whose cover does the vertigo shot: hover and the camera pulls back while the lens zooms in, so the lighthouse stays exactly the same size while the hills behind it loom up and the cliff in front falls away, the focal length counting up from 24 to 85 mm.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers3
- Hover
- 3D
- Card
Techniques4
- SVG
- CSS transition
- @property
- Transform only
Accessibility
Keyboard and screen readers
An article labelled with the place; it takes focus, and focus or a tap runs the shot as hover does. The scene is aria-hidden.
Reduced motion
The shot changes without the move.
Use it in anything you build, commercial and client work included. Licence
More cards
See allThe spare key is under the blue pot. Don't tell Sam.
Golden hour · Slovenia