28 lines
1.6 KiB
Markdown
28 lines
1.6 KiB
Markdown
|
|
### H7 · Demo Video — Clipped-by-viewport-edge
|
|||
|
|
Display headline left, demo video right, the rightmost ~10–20 % extending past the viewport so it's intentionally cut off. The clip *is* the design — implies "there's more product than fits the screen". Pioneered by Linear, refined by Vercel / Resend / Cursor.
|
|||
|
|
*Use when:* the brief is SaaS / dev-tool / dashboard / platform AND you have real footage of the product (or a hand-built CSS-art mockup of it).
|
|||
|
|
*Don't confuse with:* H4 Stat-Led (number-led, no video) or H8 Mockup Split (still screenshot, not video).
|
|||
|
|
|
|||
|
|
See [`hero-enrichment.md`](../hero-enrichment.md) for the full E1 recipe (codec chain, autoplay rules, `prefers-reduced-motion` fallback, mobile collapse). The cookbook entry below is the structural sketch.
|
|||
|
|
|
|||
|
|
```html
|
|||
|
|
<section class="hero hero--clipped">
|
|||
|
|
<div class="hero__copy">
|
|||
|
|
<h1>Plan, build, ship.</h1>
|
|||
|
|
<p>The project tracker your engineering team won't ignore.</p>
|
|||
|
|
</div>
|
|||
|
|
<figure class="hero__media">
|
|||
|
|
<video autoplay muted loop playsinline preload="metadata"
|
|||
|
|
poster="/hero-poster.webp" fetchpriority="high">
|
|||
|
|
<source src="/hero.av1.mp4" type='video/mp4; codecs="av01.0.05M.08"'>
|
|||
|
|
<source src="/hero.h264.mp4" type="video/mp4">
|
|||
|
|
</video>
|
|||
|
|
</figure>
|
|||
|
|
</section>
|
|||
|
|
```
|
|||
|
|
```css
|
|||
|
|
.hero--clipped { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-2xl); overflow: visible; }
|
|||
|
|
.hero__media { width: calc(100% + 12vw); aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; }
|
|||
|
|
@media (max-width: 60rem) { .hero--clipped { grid-template-columns: 1fr; } .hero__media { width: 100%; } }
|
|||
|
|
```
|