Edge-to-edge frame row with a squint hover

Four product cards joined by 1px seams; on hover the card squints: two ink lids meet in the middle, then the second view opens from a slit like an eye, the product shot eases back behind it, and a small label rises. Below, two campaign photos side by side.

Product tourFreeFrom Squint, SignatureAbout 3k tokens saved
The whole page

Links in the preview stay on the block.

Open on its own

The prompt

One prompt, written to stand on its own: goal, structure, type, colour, spacing, behaviour and the words in square brackets to replace. Paste it into any tool that writes HTML. The Code tab has this block as one file.

507 words
Download .zip
# Edge-to-edge frame row with a squint hover

One product tour section, not a whole page: build it to drop into a page that already exists. Works in Claude, v0, Lovable, Bolt, Cursor or any tool that writes HTML.

## Goal
A row of products that reads like a shop window.

## Structure
1. head with heading and one line
2. row of four cards on the ground colour: product shot, second view, open button, label pill, Add pill
3. two-up campaign photos with mono captions

## Type
Xanh Mono for headings, labels, prices and buttons (13px caps at 0.08em); Rubik 400 to 500 for body copy.

## Colour
Lime-wash stone #EAEAE6, paper #F6F6F3, ink #1A1A18, muted #605E58, rule #CFCEC7, bottle green #2F4A3C; tints grey #4A4A46, brown #6B4A2E, rose #B98A8E.

## Spacing and lines
Cards 3:4 with 1px rule gaps; label pill 11px caps, 7px 10px padding; Add pill 11px caps.

## Behaviour
On hover or focus two 2px ink lines run from the top and bottom edges to the middle in about 120ms and travel back out while the second view opens with clip-path from inset(50% 0 50% 0) to inset(0) over 620ms cubic-bezier(0.76, 0, 0.24, 1), 120ms after the hover starts; the product shot scales to 1.07 over 1.1s; the label rises 8px into place at 420ms. Leaving closes the view back to a slit. Add puts the default size and tint in the bag and shows an Added card under the header.

## Responsive
Two cards per row below 1000px; campaign photos stack on phones.

## Accessibility
Each card has a labelled open button; focus triggers the same squint as hover; the label is decorative; Add is labelled with the frame name. Reduced motion swaps the views without movement.

## Built values (from code.html)
- Fonts: Xanh Mono 400 (self-hosted: fonts/xanh-mono.woff2); Rubik 300 to 700 (self-hosted: fonts/rubik.woff2). Self-hosted files sit in fonts/ in the block download.
- Colour variables: --stone #EAEAE6, --paper #F6F6F3, --ink #1A1A18, --ink2 #605E58, --line #CFCEC7, --green #2F4A3C.
- Font variables: --mono "Xanh Mono",ui-monospace,monospace; --sans "Rubik",system-ui,sans-serif.
- Size variables: --pad 20px, --top 70px, --bar 30px.
- Media queries: max-width 1000px, max-width 760px, prefers-reduced-motion.
- Media: assets/campaign-facade-1300.webp (1300x1733), assets/campaign-facade-720.webp (720x960), assets/campaign-tiles-1300.webp (1300x1733), assets/campaign-tiles-720.webp (720x960).
- Script: none, CSS only.

## Content to replace
- [Frames]: four names, shapes, prices and acetate colours
- [Second views]: a worn shot or the view through the lens

## Rules
Plain, specific copy that reads as a live product; never the word sample. No shadows, glow, glass, blur, gradient text, emoji or italics. Motion moves transform and opacity, with colour, border, height and stroke transitions on state changes, and holds its end state under prefers-reduced-motion. Text passes WCAG AA.

## Output
Return the block in one piece: the markup, one style block with the web fonts imported on its first line, and a small script only if the behaviour needs one. No page wrapper, no framework, no build step. Prefix every class with `blk-` and put the colours and sizes in CSS variables at the top.

Media to supply

The photos and video on the live page are licensed for this showcase, so the code points at an assets folder instead. Drop your own files in with these names, or change the paths: campaign-facade-1300.webp, campaign-facade-720.webp, campaign-tiles-1300.webp, campaign-tiles-720.webp

More like this

Product tour

Every product tour block

Same page

More from Squint

See the page