Drifting oval field
The signature: oval photographs drift diagonally and turn in 3D behind a fan of drawn speed lines and a giant wordmark at the foot.
Part of the style
Speed Line Ovals
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/speed-line-ovals/hero/figma.html?palette=7ef8064dfd89d2ff
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/speed-line-ovals/hero/figma.html?palette=7ef8064dfd89d2ff and pass that whole HTML document to the html_to_figma tool, so the part "Drifting oval field" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<style>
/* Goes after the pack's base.css */
:root {
--ink: #fbf4ee;
--paper: #251a1a;
--ink-soft: #827676;
--dot: #615555;
--field: #2c2121;
}
</style>
<section class="hero" aria-labelledby="hero-title">
<div class="hero__field" aria-hidden="true">
<div class="hero__post" style="--x: 6%; --y: 18%; --w: 260px; --h: 190px; --d: 34s; --o: -4s; --s: 30s"><img class="hero__pic" src="assets/grapes.jpg" alt="" width="800" height="640" loading="eager"></div>
<div class="hero__post" style="--x: 30%; --y: 50%; --w: 150px; --h: 210px; --d: 22s; --o: -15s; --s: 24s; --turn: reverse"><img class="hero__pic" src="assets/apples.jpg" alt="" width="598" height="800"></div>
<div class="hero__post" style="--x: 62%; --y: 30%; --w: 300px; --h: 220px; --d: 44s; --o: -30s; --s: 46s"><img class="hero__pic" src="assets/fish.jpg" alt="" width="800" height="634"></div>
<div class="hero__post" style="--x: 78%; --y: 72%; --w: 180px; --h: 150px; --d: 28s; --o: -9s; --s: 20s; --turn: reverse"><img class="hero__pic" src="assets/lemons.jpg" alt="" width="800" height="662"></div>
<div class="hero__post" style="--x: 14%; --y: 76%; --w: 210px; --h: 170px; --d: 38s; --o: -26s; --s: 36s"><img class="hero__pic" src="assets/strawberries.jpg" alt="" width="800" height="573"></div>
<div class="hero__post" style="--x: 48%; --y: 12%; --w: 120px; --h: 96px; --d: 18s; --o: -6s; --s: 22s"><img class="hero__pic" src="assets/jug.jpg" alt="" width="800" height="643"></div>
<div class="hero__post" style="--x: 86%; --y: 20%; --w: 230px; --h: 180px; --d: 40s; --o: -12s; --s: 40s; --turn: reverse"><img class="hero__pic" src="assets/street.jpg" alt="" width="800" height="621"></div>
<div class="hero__post" style="--x: 40%; --y: 82%; --w: 140px; --h: 120px; --d: 26s; --o: -20s; --s: 28s"><img class="hero__pic" src="assets/fruitpiece.jpg" alt="" width="800" height="671"></div>
<div class="hero__post" style="--x: 2%; --y: 46%; --w: 96px; --h: 120px; --d: 20s; --o: -2s; --s: 18s; --turn: reverse"><img class="hero__pic" src="assets/lemons.jpg" alt="" width="800" height="662"></div>
<div class="hero__post" style="--x: 70%; --y: 4%; --w: 110px; --h: 84px; --d: 24s; --o: -17s; --s: 26s"><img class="hero__pic" src="assets/grapes.jpg" alt="" width="800" height="640"></div>
</div>
<div class="hero__intro">
<p class="hero__lede">Supper rounds in borrowed kitchens. Every few weeks, somewhere new.</p>
<a class="hero__cta" href="#">see the spring round</a>
</div>
<div class="hero__mark">
<svg class="hero__lines" viewBox="0 0 600 260" aria-hidden="true" focusable="false">
<line class="hero__line" x1="17.5" y1="224" x2="109.6" y2="35.3" pathLength="1" style="--i: 0" />
<line class="hero__line" x1="80.3" y1="170.8" x2="160.6" y2="81.7" pathLength="1" style="--i: 1" />
<line class="hero__line" x1="74.6" y1="209.7" x2="348.2" y2="25.2" pathLength="1" style="--i: 2" />
<line class="hero__line" x1="182.7" y1="178.7" x2="475" y2="48.5" pathLength="1" style="--i: 3" />
<line class="hero__line" x1="144.9" y1="221.2" x2="579.6" y2="104.7" pathLength="1" style="--i: 4" />
</svg>
<h1 class="hero__title" id="hero-title">oddbite</h1>
</div>
</section>
<style>
.hero {
position: relative;
overflow: hidden;
height: clamp(540px, 68vw, 880px);
background: var(--paper);
perspective: 1200px;
}
.hero__field {
position: absolute;
inset: 0;
pointer-events: none;
}
.hero__post {
position: absolute;
inset: 0;
animation: hero-drift var(--d) linear var(--o) infinite;
will-change: translate;
}
.hero__pic {
position: absolute;
left: var(--x);
top: var(--y);
width: calc(var(--w) * var(--hero-scale, 1));
height: calc(var(--h) * var(--hero-scale, 1));
max-width: none;
border-radius: var(--radius-oval);
background: var(--field);
object-fit: cover;
animation: hero-spin var(--s) linear infinite var(--turn, normal);
}
.hero__intro {
position: relative;
z-index: 2;
display: grid;
justify-items: start;
gap: var(--space-m);
max-width: 17em;
padding: var(--space-l) var(--edge) 0;
font: 600 var(--text-l) / var(--leading-l) var(--font-body);
letter-spacing: var(--track-tight);
}
.hero__lede {
margin: 0;
}
.hero__cta {
display: inline-flex;
align-items: center;
min-height: 48px;
padding: 0 var(--space-l);
border-radius: var(--pill);
background: var(--ink);
color: var(--paper);
font-size: var(--text-m);
text-decoration: none;
transition: background-color var(--quick) var(--ease);
}
.hero__cta:hover {
background: var(--ink-soft);
}
.hero__cta:focus-visible {
outline: var(--line) solid var(--ink);
outline-offset: 4px;
}
.hero__mark {
position: absolute;
z-index: 2;
left: clamp(16px, 9vw, 160px);
right: var(--edge);
bottom: var(--space-m);
}
.hero__lines {
width: min(64%, 640px);
height: auto;
margin: 0 0 var(--space-m) 0.04em;
overflow: visible;
}
.hero__line {
fill: none;
stroke: var(--ink);
stroke-width: var(--line-speed);
stroke-linecap: butt;
stroke-dasharray: 1;
stroke-dashoffset: 1;
vector-effect: non-scaling-stroke;
animation: hero-draw var(--draw) var(--ease) forwards;
animation-delay: calc(300ms + var(--i) * 120ms);
}
.hero__title {
margin: 0;
font: 900 var(--display) / 0.78 var(--font-display);
letter-spacing: var(--track-display);
}
@keyframes hero-drift {
from { translate: -70% 70%; }
to { translate: 70% -70%; }
}
@keyframes hero-spin {
0% { transform: rotate3d(1, 0, 1, 0deg); }
50% { transform: rotate3d(1, 1, 1, 180deg); }
100% { transform: rotate3d(1, 1, 1, 360deg); }
}
@keyframes hero-draw {
to { stroke-dashoffset: 0; }
}
.hero.is-paused .hero__post,
.hero.is-paused .hero__pic {
animation-play-state: paused;
}
@media (min-width: 80rem) {
.hero {
--hero-scale: 1.3;
}
}
@media (max-width: 40rem) {
.hero {
--hero-scale: 0.6;
}
.hero__lines {
width: 88%;
}
}
@media (prefers-reduced-motion: reduce) {
.hero__post,
.hero__pic {
animation: none;
}
.hero__pic {
transform: rotate3d(1, 1, 1, 24deg);
}
.hero__line {
animation: none;
stroke-dashoffset: 0;
}
}
</style>
<script>
(() => {
const watch = new IntersectionObserver((entries) => {
for (const entry of entries) entry.target.classList.toggle('is-paused', !entry.isIntersecting);
});
for (const root of document.querySelectorAll('.hero')) watch.observe(root);
})();
</script>