Lenses that squint into the next scene

The signature hero: a pair of frames holds a sunny street; as you scroll, two lids close the lenses to a slit and open on the next street, then on the model; the headline gives way to a caption for each scene, and the chosen tint colours what you see.

HeroFreeFrom Squint, SignatureAbout 6k 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.

472 words
Download .zip
# Lenses that squint into the next scene

One hero 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
Let the visitor look through the product before reading about it.

## Structure
1. sticky stage: SVG glasses, copy area, foot row
2. SVG: lens clip, lid clip, the scene image, a tint rectangle, two lid lines, the rim
3. copy: headline with a side note, swapped for a scene number and caption
4. foot: frame name, Scroll to blink, tint radios

## 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
Section 430vh. Glasses up to 1180px wide and 58vh tall. Headline clamp(44px, 5.6vw, 86px); scene caption clamp(26px, 2.8vw, 42px).

## Behaviour
Scroll maps to four scenes. Each holds open, then between 55 and 78 percent the lid rectangle closes to a slit with an eased curve, the image swaps, and it opens again by the end. Lid lines show while closing. The tint rectangle multiplies the tint colour at about 30 percent.

## Responsive
Phones: the glasses run 128vw wide and crop at the edges so the lenses fill the screen; copy below.

## Accessibility
The SVG is role img with a title that names the scene and tint; captions are a polite live region; tints are a radio group.

## 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 760px, prefers-reduced-motion.
- Media: assets/street-1-2200.webp (2200x1467).
- Script: none, CSS only.

## Content to replace
- [Scenes]: four places with a time and a line each
- [Tints]: four lens colours

## 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: street-1-2200.webp

More like this

Hero

Every hero block

Same page

More from Squint

See the page