Masthead

A weekend in Lille14 places

Belfries, beer halls and the Braderie

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-masthead

About 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 all
Ball bounceFrame 12 / 24
Onion SkinGet code
OvergrownGet code
PanoramaGet code
Order #2291
  • Ceramic mug × 2
  • Linen tea towel
3 items · 1.2 kg
ParcelGet code