Belfries, beer halls and the Braderie
Masthead
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardMasthead(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-mastheadAbout this component
A city guide card that pulls back out of its own name: at rest the photo fills the frame, and on hover the camera retreats through the I of LILLE until the picture sits only inside the five block letters, set in the dark frame.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers3
- Hover
- Morph
- Card
Techniques3
- CSS transition
- Gradient
- SVG
Accessibility
Keyboard and screen readers
An article labelled with the guide's title; it takes focus, and focus or a tap shows the letters as hover does. The photo is aria-hidden and the city name is in the text below.
Reduced motion
It switches between photo and letters without the zoom.
Use it in anything you build, commercial and client work included. Licence
More cards
See allWater the fern
Every 7 days · last done 31 days ago
- Ceramic mug × 2
- Linen tea towel