Pinned ride code that breaks into service cards
A pinned scene: a jade scan line sweeps a large code, the code splits into six tiles that fly to six service cards and fade, while three captions take turns above.
Links in the preview stay on the block.
Open on its ownThe 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.
629 words
# Pinned ride code that breaks into service cards 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 signature scroll moment showing that one code opens many services: the code itself becomes the cards. ## Structure 1. section 320vh with a sticky 100vh stage 2. three stacked h2 captions with a small supporting line, one visible at a time 3. a square board up to 380px on a white 28px plate, holding six tiles cut from one code (3 x 2, or 2 x 3 on phones) 4. a 3 x 2 grid of white 22px radius cards with an icon, an English and Chinese name and one line ## Type Geologica 500 and 600 for display and UI, Geologica 400 for text; Chinese in Noto Sans SC 400, 500 and 700 subsets. Captions 500 clamp(32px, 4.4vw, 64px). ## Colour Pearl #F4F5F1, white #FFFFFF, ink #0D1411, graphite #56605B, line #DDE2DC, mint wash #E3F1EB, deep jade #007A5A for buttons and text (white on it 5.3:1), bright jade #19C58F for the scan line and the night chapter, night #0A1712. ## Spacing and lines Cards grid up to 1000px wide with 14px gaps; card padding 22px, min height clamp(150px, 19vh, 210px). ## Behaviour GSAP ScrollTrigger scrub .7 drives one timeline: scan line top to bottom (0 to .27), tiles part 10px (.3), the plate fades (.36), tiles move and scale to each card's measured rect (.42 to .78, stagger .012), tiles fade as cards scale .94 to 1 (.6). Captions switch at .3 and .62. Rects are remeasured on refresh. ## Responsive Under 900px the grid is 2 x 3 and the code is cut the same way; under 600px the card lines hide while pinned. ## Accessibility Reduced motion, a missing GSAP or ?capture=1 show the final cards in normal flow with the last caption; hidden captions are aria-hidden. ## Built values (from code.html) - Fonts: Geologica 400 (self-hosted: fonts/geologica-400.woff2); Geologica 500 (self-hosted: fonts/geologica-500.woff2); Geologica 600 (self-hosted: fonts/geologica-600.woff2); Yilu SC 400 (self-hosted: fonts/noto-sans-sc-400.woff2); Yilu SC 500 (self-hosted: fonts/noto-sans-sc-500.woff2); Yilu SC 700 (self-hosted: fonts/noto-sans-sc-700.woff2). Self-hosted files sit in fonts/ in the block download. - Colour variables: --pearl #F4F5F1, --white #FFFFFF, --ink #0D1411, --graphite #56605B, --line #DDE2DC, --line-2 #C9D0C9, --mint #E3F1EB, --jade #00936D, --jade-deep #007A5A, --jade-bright #19C58F, --night #0A1712, --night-2 #12241D, --night-line #24392F, --night-text #E8EFEA. - Font variables: --sans "Geologica", "Yilu SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif. - Size variables: --gut clamp(16px, 4.4vw, 56px), --max 1240px, --bar 64px, --pad clamp(96px, 12vw, 176px). - Media queries: max-width 900px, max-width 720px, max-width 600px, prefers-reduced-motion. - No media files. - Script: none, CSS only. ## Script Set the Chinese or Japanese text in a CJK face with its own letter spacing and a looser line height than the Latin text, with strict line breaking and the palt feature on. Latin words inside a CJK line sit on the same baseline. ## Content to replace - [Captions]: three short claims that build - [Cards]: six services, each with one line ## 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.
More like this
Product tour
Same page




