Maison Editorial Hero
Editorial fashion hero section: a giant serif masthead over three campaign photos, revealed by clip-path wipes.
- Heroes
- Fashion
- React only · 0 deps
- 1 file
Browser support · All evergreen browsers. Images are props (src + alt) with local defaults.
Install. One command, or copy the file.
$
npx shadcn@latest add https://freedesignmd.com/r/hero-fashion-editorial.json- Byte-identical to the preview
- No Tailwind or config needed
- SSR-safe · keyboard accessible
- Respects reduced motion & transparency
components/heroes/hero-fashion-editorial.tsx
1/**2 * HeroFashionEditorial, a luxury-house campaign hero. A giant serif masthead3 * sets in letter by letter, and three campaign photographs (two cloth close4 * crops and the house fragrance) are revealed with clip-path wipes. Each frame5 * carries a ruled caption: look number, piece, price. On scroll the masthead6 * and the image strip drift horizontally in opposite directions; the pointer7 * adds a gentle parallax inside each frame, and hovering a frame lifts its8 * caption rule into the house red.9 *10 * Props: house, season, collection, intro, looks ({ no, title, detail, price,11 * src, alt }[]), primaryCta, secondaryCta.12 * CSS vars: --fd-msn-paper, --fd-msn-ink, --fd-msn-accent.13 *14 * Browser support: all evergreen browsers.15 * Motion: CSS entrance (clip-path wipes, letter masks), rAF scroll drift and16 * pointer parallax (transform only, paused off-screen).17 * prefers-reduced-motion: final composition, no drift.18 * Accessibility: images carry descriptive alt text; the masthead is the page19 * <h1>; captions are real <figcaption>s.20 */21import { useEffect, useRef } from "react";22 23export type LookFrame = {24 no: string;25 title: string;26 detail: string;27 price: string;28 src: string;29 alt: string;30};31 32export interface HeroFashionEditorialProps {33 house?: string;34 season?: string;35 collection?: string;36 kicker?: string;37 intro?: string;38 looks?: LookFrame[];39 primaryCta?: { label: string; href: string };40 secondaryCta?: { label: string; href: string };41}42 43const DEFAULT_LOOKS: LookFrame[] = [44 {45 no: "Look 07",46 title: "Double-faced cashmere coat",47 detail: "Terracotta, hand-finished seams",48 price: "€4,900",49 src: "/img/lux/drape-terra.webp",50 alt: "Close crop of terracotta double-faced cashmere falling in long soft folds",51 },52 {53 no: "N°38",54 title: "Vérane eau de parfum",55 detail: "Amber, iris, cedar",56 price: "€285",57 src: "/img/lux/perfume-noir.webp",58 alt: "An amber Vérane perfume bottle on a dark plinth under a warm arched alcove",59 },60 {61 no: "Look 21",62 title: "Wool gabardine trench",63 detail: "Nocturne, Biella cloth",64 price: "€3,600",65 src: "/img/lux/drape-ink.webp",66 alt: "Midnight-blue wool gabardine with cool highlights running down the drape",67 },68];69 70export function HeroFashionEditorial({71 house = "MAISON VÉRANE",72 season = "Automne-Hiver 2026",73 collection = "Vérane",74 kicker = "The Autumn-Winter collection",75 intro = "Forty-one looks cut in Biella wool, Como silk and the softest double-faced cashmere we have ever woven. Shown in Paris, 3 March.",76 looks = DEFAULT_LOOKS,77 primaryCta = { label: "Discover the collection", href: "#collection" },78 secondaryCta = { label: "Watch the show, 14 min", href: "#show" },79}: HeroFashionEditorialProps) {80 const root = useRef<HTMLElement>(null);81 const mast = useRef<HTMLHeadingElement>(null);82 const strip = useRef<HTMLDivElement>(null);83 const frames = useRef<(HTMLImageElement | null)[]>([]);84 85 // fit the masthead to the full measure, whatever serif the system resolves86 useEffect(() => {87 const h = mast.current;88 const wrap = h?.parentElement;89 if (!h || !wrap) return;90 const fit = () => {91 h.style.fontSize = "";92 const avail = wrap.clientWidth - parseFloat(getComputedStyle(wrap).paddingLeft) * 2;93 const fs = parseFloat(getComputedStyle(h).fontSize);94 const w = h.scrollWidth;95 if (w > 0) h.style.fontSize = `${Math.floor(fs * (avail / w) * 0.995)}px`;96 };97 fit();98 const r1 = requestAnimationFrame(fit);99 const t1 = window.setTimeout(fit, 400);100 document.fonts?.ready.then(fit).catch(() => {});101 const ro = new ResizeObserver(fit);102 ro.observe(wrap);103 return () => {104 ro.disconnect();105 cancelAnimationFrame(r1);106 window.clearTimeout(t1);107 };108 }, [collection]);109 110 useEffect(() => {111 const el = root.current;112 if (!el || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;113 const sp = { x: 0, y: 0, tx: 0, ty: 0 };114 const onMove = (e: PointerEvent) => {115 if (e.pointerType === "touch") return;116 const r = el.getBoundingClientRect();117 sp.tx = ((e.clientX - r.left) / r.width) * 2 - 1;118 sp.ty = ((e.clientY - r.top) / r.height) * 2 - 1;119 };120 el.addEventListener("pointermove", onMove);121 let raf = 0;122 let visible = true;123 const frame = () => {124 raf = 0;125 sp.x += (sp.tx - sp.x) * 0.06;126 sp.y += (sp.ty - sp.y) * 0.06;127 const r = el.getBoundingClientRect();128 const p = Math.max(-0.2, Math.min(1, -r.top / Math.max(1, r.height)));129 if (mast.current) mast.current.style.transform = `translate3d(${(-p * 22).toFixed(2)}vw, ${(p * 40).toFixed(1)}px, 0)`;130 if (strip.current) strip.current.style.transform = `translate3d(${(p * 14).toFixed(2)}vw, ${(-p * 60).toFixed(1)}px, 0)`;131 frames.current.forEach((f, i) => {132 if (!f) return;133 const d = [1, -0.7, 0.85][i % 3];134 f.style.transform = `translate3d(${(sp.x * 12 * d).toFixed(2)}px, ${(sp.y * 9 * d + p * 36 * d).toFixed(2)}px, 0) scale(${(1.1 + p * 0.05).toFixed(4)})`;135 });136 if (visible && !document.hidden) raf = requestAnimationFrame(frame);137 };138 const start = () => {139 if (!raf && visible && !document.hidden) raf = requestAnimationFrame(frame);140 };141 const io = new IntersectionObserver(([e]) => {142 visible = e.isIntersecting;143 if (visible) start();144 });145 io.observe(el);146 document.addEventListener("visibilitychange", start);147 start();148 return () => {149 cancelAnimationFrame(raf);150 io.disconnect();151 document.removeEventListener("visibilitychange", start);152 el.removeEventListener("pointermove", onMove);153 };154 }, []);155 156 const letters = Array.from(collection);157 158 return (159 <section ref={root} className="fd-msn" aria-label={`${house}, ${season}`}>160 <style>{css}</style>161 162 <div className="fd-msn-top">163 <span>{season}</span>164 <span className="fd-msn-hide-s">Collection N° 38</span>165 <span>Paris · Milano · Tokyo</span>166 </div>167 168 <div className="fd-msn-mastwrap">169 <h1 ref={mast} className="fd-msn-mast" aria-label={collection}>170 {letters.map((ch, i) => (171 <span key={i} className="fd-msn-ch" aria-hidden="true">172 <span style={{ animationDelay: `${120 + i * 70}ms` }}>{ch}</span>173 </span>174 ))}175 </h1>176 </div>177 178 <div className="fd-msn-body">179 <div className="fd-msn-copy">180 <p className="fd-msn-kicker">{kicker}</p>181 <p className="fd-msn-intro">{intro}</p>182 <div className="fd-msn-ctas">183 <a className="fd-msn-btn" href={primaryCta.href}>184 {primaryCta.label}185 <svg viewBox="0 0 20 10" width="20" height="10" aria-hidden="true">186 <path d="M0 5h18M14 1l4 4-4 4" fill="none" stroke="currentColor" strokeWidth="1.2" />187 </svg>188 </a>189 <a className="fd-msn-link" href={secondaryCta.href}>190 {secondaryCta.label}191 </a>192 </div>193 </div>194 195 <div ref={strip} className="fd-msn-strip">196 {looks.map((l, i) => (197 <figure key={l.no + l.title} className={`fd-msn-fig fd-msn-fig-${i}`}>198 <div className="fd-msn-frame" style={{ animationDelay: `${450 + i * 160}ms` }}>199 <img200 ref={(n) => {201 frames.current[i] = n;202 }}203 className="fd-msn-photo"204 src={l.src}205 alt={l.alt}206 width={1200}207 height={1500}208 decoding="async"209 />210 </div>211 <figcaption className="fd-msn-cap">212 <span className="fd-msn-no">{l.no}</span>213 <span className="fd-msn-what">214 <i>{l.title}</i>215 <small>{l.detail}</small>216 </span>217 <b className="fd-msn-price">{l.price}</b>218 </figcaption>219 </figure>220 ))}221 </div>222 </div>223 224 <div className="fd-msn-foot" aria-hidden="true">225 <span className="fd-msn-scroll">226 <i />227 Scroll228 </span>229 </div>230 </section>231 );232}233 234const css = `235.fd-msn, .fd-msn *, .fd-msn *::before, .fd-msn *::after { box-sizing: border-box; }236.fd-msn {237 --fd-ease-out: cubic-bezier(0.22, 1, 0.36, 1);238 --fd-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);239 --fd-spring: cubic-bezier(0.34, 1.56, 0.64, 1);240 --fd-dur-1: 120ms; --fd-dur-2: 240ms; --fd-dur-3: 420ms; --fd-dur-4: 700ms;241 --fd-msn-paper: #F3EEE6;242 --fd-msn-ink: #16120F;243 --fd-msn-accent: #7A1F24;244 --fd-msn-rule: rgba(22,18,15,0.18);245 --fd-msn-serif: "Didot", "Bodoni 72", "Bodoni MT", ui-serif, "New York", "Iowan Old Style", "Times New Roman", Georgia, serif;246 --fd-msn-sans: "Helvetica Neue", ui-sans-serif, -apple-system, "Inter", Arial, sans-serif;247 position: relative; display: block; overflow: hidden; margin: 0; padding: 0 0 28px; min-height: 860px;248 background: var(--fd-msn-paper); color: var(--fd-msn-ink); font: 400 1rem/1.5 var(--fd-msn-sans);249 isolation: isolate;250}251.fd-msn-top {252 display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 92px 40px 0;253 font: 500 0.6875rem/1 var(--fd-msn-sans); letter-spacing: 0.24em; text-transform: uppercase; color: #5a5048;254 animation: fd-msn-fade 1000ms var(--fd-ease-out) 900ms both;255}256.fd-msn-top span { margin: 0; padding: 0; }257.fd-msn-mastwrap { position: relative; z-index: 0; margin: 0; padding: 0 28px; }258.fd-msn-mast {259 width: max-content;260 display: block; margin: 6px 0 0; padding: 0; white-space: nowrap; will-change: transform;261 font: 400 clamp(5.5rem, 26vw, 26rem)/0.8 var(--fd-msn-serif); letter-spacing: -0.035em;262 color: var(--fd-msn-ink);263 font-optical-sizing: auto;264}265.fd-msn-ch { display: inline-block; overflow: hidden; padding: 0.04em 0 0.02em; }266.fd-msn-ch > span { display: inline-block; animation: fd-msn-up 1100ms var(--fd-ease-out) both; }267.fd-msn-body {268 position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 48px; align-items: start;269 margin: 28px 0 0; padding: 0 40px;270}271.fd-msn-copy { margin: 0; padding: 4px 0 0; }272.fd-msn-kicker { margin: 0 0 14px; padding: 0; font: italic 400 1.25rem/1.2 var(--fd-msn-serif); letter-spacing: -0.005em; color: var(--fd-msn-accent); animation: fd-msn-fade var(--fd-dur-4) var(--fd-ease-out) 1000ms both; }273.fd-msn-intro { margin: 0; padding: 0; max-width: 22rem; font: 400 0.9375rem/1.6 var(--fd-msn-sans); letter-spacing: 0; color: #3a322c; text-wrap: pretty; animation: fd-msn-fade var(--fd-dur-4) var(--fd-ease-out) 1100ms both; }274.fd-msn-ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin: 32px 0 0; padding: 0; animation: fd-msn-fade var(--fd-dur-4) var(--fd-ease-out) 1200ms both; }275.fd-msn-btn {276 display: inline-flex; align-items: center; gap: 14px; margin: 0; padding: 0 22px; height: 48px; border: 1px solid var(--fd-msn-ink); border-radius: 0;277 background: var(--fd-msn-ink); color: var(--fd-msn-paper); text-decoration: none;278 font: 500 0.6875rem/1 var(--fd-msn-sans); letter-spacing: 0.22em; text-transform: uppercase;279 transition: background var(--fd-dur-2) var(--fd-ease-out), color var(--fd-dur-2) var(--fd-ease-out), transform var(--fd-dur-2) var(--fd-spring);280}281.fd-msn-btn svg { display: block; transition: transform var(--fd-dur-3) var(--fd-ease-out); }282.fd-msn-btn:hover { background: transparent; color: var(--fd-msn-ink); }283.fd-msn-btn:hover svg { transform: translateX(5px); }284.fd-msn-btn:active { transform: scale(0.96); transition-duration: var(--fd-dur-1); }285.fd-msn-link {286 margin: 0; padding: 0 0 3px; color: var(--fd-msn-ink); text-decoration: none; border-bottom: 1px solid currentColor;287 font: 500 0.6875rem/1 var(--fd-msn-sans); letter-spacing: 0.22em; text-transform: uppercase;288 transition: color var(--fd-dur-1);289}290.fd-msn-link:hover { color: var(--fd-msn-accent); }291.fd-msn-btn:focus-visible, .fd-msn-link:focus-visible { outline: 2px solid rgba(122,31,36,0.7); outline-offset: 3px; }292 293.fd-msn-strip { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr 1fr; gap: 24px; align-items: start; margin-top: -15vw; will-change: transform; }294.fd-msn-fig { margin: 0; padding: 0; min-width: 0; }295.fd-msn-fig-1 { margin-top: 72px; }296.fd-msn-fig-2 { margin-top: 20px; }297.fd-msn-frame {298 position: relative; overflow: hidden; aspect-ratio: 4 / 5; margin: 0; padding: 0; background: #d9cfc2;299 clip-path: inset(100% 0 0 0); animation: fd-msn-wipe 1300ms var(--fd-ease-in-out) both;300}301.fd-msn-fig-1 .fd-msn-frame { aspect-ratio: 3 / 4; clip-path: inset(0 100% 0 0); animation-name: fd-msn-wipe-x; }302.fd-msn-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; object-fit: cover; will-change: transform; transform: scale(1.1); }303.fd-msn-fig-1 .fd-msn-photo { object-position: 50% 62%; }304 305.fd-msn-cap {306 position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: baseline;307 margin: 0; padding: 12px 0 0; border-top: 1px solid var(--fd-msn-rule);308 animation: fd-msn-fade var(--fd-dur-4) var(--fd-ease-out) 1500ms both;309}310.fd-msn-cap::before {311 content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--fd-msn-accent);312 transform: scaleX(0); transform-origin: left; transition: transform var(--fd-dur-4) var(--fd-ease-out);313}314.fd-msn-fig:hover .fd-msn-cap::before { transform: scaleX(1); }315.fd-msn-no { margin: 0; padding: 0; font: 500 0.625rem/1.6 var(--fd-msn-sans); letter-spacing: 0.22em; text-transform: uppercase; color: #6a5f55; white-space: nowrap; }316.fd-msn-what { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; min-width: 0; }317.fd-msn-what i { display: block; font: italic 400 1rem/1.25 var(--fd-msn-serif); letter-spacing: 0; color: var(--fd-msn-ink); }318.fd-msn-what small { display: block; font: 400 0.75rem/1.35 var(--fd-msn-sans); letter-spacing: 0; color: #6a5f55; }319.fd-msn-price { margin: 0; padding: 0; font: 500 0.75rem/1.6 var(--fd-msn-sans); letter-spacing: 0.04em; color: var(--fd-msn-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }320 321.fd-msn-foot {322 position: absolute; left: 40px; right: 40px; bottom: 26px; display: flex; justify-content: flex-end; align-items: center;323 font: 500 0.625rem/1 var(--fd-msn-sans); letter-spacing: 0.3em; text-transform: uppercase; color: #5a5048;324 animation: fd-msn-fade 1000ms var(--fd-ease-out) 1600ms both;325}326.fd-msn-scroll { display: inline-flex; align-items: center; gap: 12px; }327.fd-msn-scroll i { display: block; width: 40px; height: 1px; background: currentColor; transform-origin: left; animation: fd-msn-line 2400ms var(--fd-ease-in-out) infinite; }328 329@keyframes fd-msn-up { from { transform: translateY(102%); } to { transform: none; } }330@keyframes fd-msn-fade { from { opacity: 0; } to { opacity: 1; } }331@keyframes fd-msn-wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }332@keyframes fd-msn-wipe-x { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }333@keyframes fd-msn-line { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); transform-origin: left; } 50.01% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }334 335@media (max-width: 1100px) {336 .fd-msn-cap { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }337 .fd-msn-no { grid-column: 1 / -1; }338}339@media (max-width: 860px) {340 .fd-msn { min-height: 844px; padding-bottom: 72px; }341 .fd-msn-top { padding: 84px 16px 0; letter-spacing: 0.18em; }342 .fd-msn-hide-s { display: none; }343 .fd-msn-top span { white-space: nowrap; }344 .fd-msn-top span:last-child { display: none; }345 .fd-msn-mastwrap { padding: 0 12px; }346 .fd-msn-mast { margin-top: 14px; }347 .fd-msn-body { grid-template-columns: 1fr; gap: 32px; margin-top: 24px; padding: 0 16px; }348 .fd-msn-strip { grid-template-columns: 1.15fr 1fr; gap: 12px; margin-top: 0; }349 .fd-msn-fig-1 { margin-top: 44px; }350 .fd-msn-fig-2 { display: none; }351 .fd-msn-cap { grid-template-columns: 1fr; gap: 4px; padding-top: 10px; }352 .fd-msn-what i { font-size: 0.875rem; }353 .fd-msn-what small { display: none; }354 .fd-msn-ctas { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 22px; }355 .fd-msn-foot { left: 16px; right: 16px; bottom: 22px; }356 .fd-msn-copy { order: 2; }357 .fd-msn-intro { max-width: none; }358}359@media (prefers-reduced-motion: reduce) {360 .fd-msn *, .fd-msn *::before { animation: none !important; }361 .fd-msn-frame { clip-path: none; }362}363`;364 365/* ───────────────────────── Demo ───────────────────────── */366 367export function Demo() {368 return (369 <div className="fd-msn-demo">370 <style>{demoCss}</style>371 <header className="fd-msn-demo-nav">372 <nav aria-label="Shop">373 <a href="#women">Women</a>374 <a href="#men">Men</a>375 <a href="#leather">Leather goods</a>376 </nav>377 <a className="fd-msn-demo-logo" href="#top">MAISON VÉRANE</a>378 <div className="fd-msn-demo-r">379 <a href="#stores">Stores</a>380 <a href="#bag" aria-label="Shopping bag, 2 items">Bag (2)</a>381 </div>382 </header>383 <HeroFashionEditorial />384 </div>385 );386}387 388const demoCss = `389.fd-msn-demo { position: relative; margin: 0; padding: 0; min-height: 100vh; background: #F3EEE6; }390.fd-msn-demo *, .fd-msn-demo *::before, .fd-msn-demo *::after { box-sizing: border-box; }391.fd-msn-demo-nav {392 position: absolute; z-index: 10; top: 0; left: 0; right: 0; height: 64px; padding: 0 40px; margin: 0;393 display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;394 border-bottom: 1px solid rgba(22,18,15,0.12);395 animation: fd-msn-demo-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 800ms both;396}397.fd-msn-demo-nav nav, .fd-msn-demo-r { display: flex; gap: 28px; margin: 0; padding: 0; }398.fd-msn-demo-r { justify-content: flex-end; }399.fd-msn-demo-nav a { color: #16120F; text-decoration: none; font: 500 0.6875rem/1 "Helvetica Neue", ui-sans-serif, -apple-system, "Inter", Arial, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; }400.fd-msn-demo-nav a:focus-visible { outline: 2px solid rgba(122,31,36,.7); outline-offset: 3px; }401.fd-msn-demo-nav .fd-msn-demo-logo { font: 400 1.0625rem/1 "Didot", "Bodoni 72", ui-serif, "New York", "Times New Roman", Georgia, serif; letter-spacing: 0.32em; }402@keyframes fd-msn-demo-in { from { opacity: 0; } to { opacity: 1; } }403@media (max-width: 860px) {404 .fd-msn-demo-nav { padding: 0 16px; grid-template-columns: auto 1fr auto; gap: 12px; }405 .fd-msn-demo-nav nav a:not(:first-child), .fd-msn-demo-r a:first-child { display: none; }406 .fd-msn-demo-nav .fd-msn-demo-logo { font-size: 0.875rem; letter-spacing: 0.24em; text-align: center; }407}408@media (prefers-reduced-motion: reduce) { .fd-msn-demo-nav { animation: none; } }409`;More Heroes. Same file contract.
Questions about Maison Editorial Hero
Run npx shadcn@latest add https://freedesignmd.com/r/hero-fashion-editorial.json, or open the page and copy the file into your project. It has zero dependencies besides React. What you copy is the exact file that renders the live demo.
Editorial fashion hero section: a giant serif masthead over three campaign photos, revealed by clip-path wipes. It is a free, MIT-licensed React heroes component from the freedesignmd library.
Yes. It is free and MIT-licensed, use, modify and ship it in personal and commercial projects without attribution.
All evergreen browsers. Images are props (src + alt) with local defaults.
Yes. It is a plain React component with its own styles, so it runs in Next.js, Vite, Remix and Lovable projects, and it needs no Tailwind setup. It has zero dependencies besides React.


