Cinematic web kit
Standards and tooling for sites that feel like film: scroll controls a camera, type is large and deliberate, and the cursor can touch things. Read this file first, then the reference you need.
| Need | Read |
|---|---|
| Layout recipe, type, colour, what "cinematic" means | references/design-standards.md |
| Making the hero footage (keyframe, image-to-video, scrub encode) | references/asset-pipeline.md |
| Which interaction to use and how to wire it | references/interactions.md |
| Motion checklist for whole-site coverage | references/motion-checklist.md |
| Budgets, Lighthouse, loading rules | references/performance-budget.md |
| Things that make a site look cheap | references/anti-patterns.md |
| How to judge the result honestly | references/blind-review-gate.md |
The repository this skill ships in also contains the modules (src/), a runnable demo/, and tools (tools/capture_steps.py, tools/make_frames.sh). Copy only the module files you need.
The recipe
- Hero is a scroll-driven shot. Full-bleed image sequence or video, big serif headline, one subline, one primary call to action, minimal navigation. Two to four screens of scroll move the camera (push in, dive, pass through, pull apart a product). Text appears in about three timed beats, each beat one true claim. Module:
scroll-scrub. - One more scroll story if there is enough content: product exploded into layers, a pass-through to the next scene, data as light. Module:
zoom-pullbackor a secondscroll-scrub. - Everything else gets restrained micro-motion: headlines revealed line by line, images revealed by clip-path, counters (real numbers only), marquee, magnetic buttons, hover image follow. Never the same entrance on every block.
- At least one cursor moment per site, chosen from what the site sells:
glass-tilt,fan-deck,cursor-swarm,arc-carousel. Do not stack all of them on one page: at most two active effects per screen. - Type: a serif or characterful display face for headlines (for example Instrument Serif, Fraunces, Cormorant Garamond), tight tracking (about -0.02em) and line-height near 1.1; body 1.6 to 1.75. No grey gradient headlines, no all-grey pages.
- Colour comes from the picture: pick one accent from the hero image plus neutrals.
Coverage is the whole site
List every page template. Each template gets the same motion system: the home page scrubs video, inner pages use the same world with a full-bleed hero (parallax, push, mask reveal, or a short scrub of a shared clip). Templates that repeat (products, models, articles) share template-level assets and fill them with real page data. If the site is generated, change the template source and regenerate everything. Cross-document View Transitions make the page-to-page jumps feel continuous.
Real beats generated
Order of preference for the main visual: (1) real product footage, screen recordings, photographs, measured data; (2) real material processed (3D screen arrays, parallax layers, shader distortion); (3) generated imagery only as atmosphere or transition, never as the product or a person. A generated image of a product the customer actually ships will be spotted by the customer.
Using the modules
Each file in src/ is standalone (no dependency on the others, none on GSAP or Lenis). Load with a plain script tag, then call CWK.<name>(element, options).
<script src="src/scroll-scrub.js"></script>
<script>CWK.scrollScrub(document.querySelector('#hero'), { frames: { src: '/hero/f_{i}.webp', count: 120 }, length: 300 });</script>
GSAP ScrollTrigger and Lenis are optional enhancements: pass scrollTrigger: true or lenis: instance where supported. All modules honour prefers-reduced-motion (content stays complete, effects become static or instant) and have touch and keyboard equivalents. Details and the option tables are in references/interactions.md.
Done means
- Performance budget met on a mobile profile (
references/performance-budget.md). - Console clean at 390 and 1440 widths, no horizontal scroll at 390.
prefers-reduced-motionshows complete content.- New version compared with the old one by two blind fresh reviewers (
references/blind-review-gate.md). - A report listing each technique used, where, and its fallback.