Sticker Shock
A loud craft-table style: acid lime and deep green crumpled paper, fat condensed caps cut out like letters from a poster, round product stickers, tape strips and pen notes, and everything springs, rolls or slides as you scroll. Suits a consumer brand with a sense of humour: food, drinks, toys, stationery, a campaign page.
Parts
Pull-tab menu
A top strip with a two-line slogan and a paper tab with a pinked edge, fixed to the top right. Pulling the tab drops a paper sheet of big links with dotted rules; a hovered link grows a sticker. Closes on Escape, on a link or on a click outside.
Code
React For Figma<header class="pull-menu">
<p class="pull-menu__aside">Fermented on purpose<br>since last Tuesday</p>
<nav class="pull-menu__drawer" aria-label="Main">
<ul class="pull-menu__sheet" id="pull-menu-sheet">
<li>
<a class="pull-menu__link" href="#flavours">
<span class="pull-menu__thumb" style="--lid: var(--sun)"></span>
<span class="pull-menu__label">Flavours</span>
<span class="pull-menu__go" aria-hidden="true"></span>
</a>
</li>
<li>
<a class="pull-menu__link" href="#story">
<span class="pull-menu__thumb" style="--lid: var(--coral)"></span>
<span class="pull-menu__label">Our story</span>
<span class="pull-menu__go" aria-hidden="true"></span>
</a>
</li>
<li>
<a class="pull-menu__link" href="#stockists">
<span class="pull-menu__thumb" style="--lid: var(--sky)"></span>
<span class="pull-menu__label">Stockists</span>
<span class="pull-menu__go" aria-hidden="true"></span>
</a>
</li>
<li>
<a class="pull-menu__link" href="#hello">
<span class="pull-menu__thumb" style="--lid: var(--iris)"></span>
<span class="pull-menu__label">Say hello</span>
<span class="pull-menu__go" aria-hidden="true"></span>
</a>
</li>
</ul>
<button class="pull-menu__tab" type="button" aria-expanded="false" aria-controls="pull-menu-sheet">
<span class="pull-menu__tab-label">Pull me</span>
</button>
</nav>
</header>
<style>
.pull-menu {
--pull-menu-width: min(19.5rem, 100vw - 2 * var(--gutter));
position: relative;
z-index: 40;
height: 4.5rem;
padding: 0.9rem var(--gutter);
background: var(--crease) 0 0 / var(--crease-size), var(--lime);
background-blend-mode: soft-light;
}
/* on its own the header keeps room for the open sheet */
.pull-menu:not(:has(~ section, ~ main, ~ footer, ~ div)) {
height: 24rem;
}
.pull-menu__aside {
width: fit-content;
margin: 0;
padding-left: 0.65rem;
border-left: 2px dotted var(--pine);
font: 800 1.05rem / 0.95 var(--font-display);
text-transform: uppercase;
letter-spacing: -0.01em;
}
.pull-menu__drawer {
position: fixed;
top: 0;
right: var(--gutter);
width: var(--pull-menu-width);
transform: translateY(-100%);
transition: transform var(--time-pop) var(--ease-spring);
filter: drop-shadow(0 0.5rem 0.6rem var(--shade));
}
.pull-menu__drawer--open {
transform: translateY(0);
}
.pull-menu__sheet {
position: relative;
margin: 0;
padding: 0.35rem 0.75rem 0.5rem;
list-style: none;
border-radius: 0 0 0 0.9rem;
background: var(--paper);
visibility: hidden;
transition: visibility 0s var(--time-pop);
}
/* paper above the sheet, so the spring overshoot never shows a gap */
.pull-menu__sheet::before {
content: "";
position: absolute;
inset: -5rem 0 100%;
background: var(--paper);
}
.pull-menu__drawer--open .pull-menu__sheet {
visibility: visible;
transition-delay: 0s;
}
.pull-menu__link {
display: flex;
align-items: center;
min-height: 3.6rem;
border-bottom: 2px dotted var(--pine);
color: var(--pine);
text-decoration: none;
font: 900 2.3rem / 1 var(--font-display);
text-transform: uppercase;
letter-spacing: -0.02em;
}
.pull-menu__sheet li:first-child .pull-menu__link {
border-top: 2px dotted var(--pine);
}
.pull-menu__label {
flex: 1;
transform: translateY(1.2em) rotate(5deg);
opacity: 0;
transition:
transform var(--time-pop) var(--ease-spring),
opacity var(--time-quick) ease;
}
.pull-menu__drawer--open .pull-menu__label {
transform: none;
opacity: 1;
transition-delay: calc(var(--row) * 70ms + 120ms);
}
.pull-menu__thumb {
flex: none;
width: 0;
height: 2.5rem;
margin-right: 0;
border-radius: var(--radius-pill);
background: radial-gradient(circle closest-side, color-mix(in srgb, var(--lid) 42%, var(--paper)) 62%, var(--lid) 66%);
transform: scale(0) rotate(-90deg);
transition:
width var(--time-quick) var(--ease-snap),
margin-right var(--time-quick) var(--ease-snap),
transform var(--time-pop) var(--ease-spring);
}
.pull-menu__link:hover .pull-menu__thumb,
.pull-menu__link:focus-visible .pull-menu__thumb {
width: 2.5rem;
margin-right: 0.55rem;
transform: scale(1) rotate(0deg);
}
.pull-menu__go {
flex: none;
display: grid;
place-items: center;
width: 1.5rem;
height: 1.5rem;
border-radius: var(--radius-pill);
background: var(--lime);
transition: transform var(--time-pop) var(--ease-spring);
}
.pull-menu__go::before {
content: "";
width: 0.4rem;
height: 0.4rem;
border-top: 2px solid var(--pine);
border-right: 2px solid var(--pine);
transform: translate(-1px, 1px);
}
.pull-menu__link:hover .pull-menu__go,
.pull-menu__link:focus-visible .pull-menu__go {
transform: rotate(45deg) scale(1.25);
}
.pull-menu__tab {
position: absolute;
top: 100%;
right: 0;
width: 8.4rem;
height: 5.25rem;
padding: 0 0 0.8rem;
border: 0;
background: var(--paper);
color: var(--pine);
font: 900 1.25rem / 1 var(--font-display);
text-transform: uppercase;
cursor: pointer;
/* pinked edge, the way craft scissors cut it */
clip-path: polygon(0 0, 100% 0, 100% 100%, 87.5% 86%, 75% 100%, 62.5% 86%, 50% 100%, 37.5% 86%, 25% 100%, 12.5% 86%, 0 100%);
transition: height var(--time-pop) var(--ease-spring);
}
.pull-menu__tab::before {
content: "";
position: absolute;
inset: 1.4rem 0.6rem auto;
border-top: 2px dotted var(--pine);
}
.pull-menu__tab:hover {
height: 6.1rem;
}
.pull-menu__tab-label {
display: block;
margin-top: 1.2rem;
}
.pull-menu__drawer--open .pull-menu__tab {
height: 3.6rem;
}
.pull-menu__drawer--open .pull-menu__tab::before {
display: none;
}
.pull-menu__drawer--open .pull-menu__tab-label {
margin-top: 0;
}
@media (max-width: 47.99rem) {
.pull-menu__tab {
width: 6.4rem;
height: 4.5rem;
font-size: 1.1rem;
}
.pull-menu__tab:hover {
height: 5rem;
}
.pull-menu__tab::before {
top: 1.1rem;
}
.pull-menu__tab-label {
margin-top: 0.9rem;
}
}
@media (prefers-reduced-motion: reduce) {
.pull-menu__drawer,
.pull-menu__label,
.pull-menu__thumb,
.pull-menu__go,
.pull-menu__tab {
transition-duration: 0.01s;
transition-delay: 0s;
}
}
</style>
<script>
(() => {
const OPEN = 'pull-menu__drawer--open';
const setUp = (menu) => {
const drawer = menu.querySelector('.pull-menu__drawer');
const sheet = menu.querySelector('.pull-menu__sheet');
const tab = menu.querySelector('.pull-menu__tab');
const label = menu.querySelector('.pull-menu__tab-label');
sheet.querySelectorAll('.pull-menu__label').forEach((row, index) => row.style.setProperty('--row', index));
const pull = (open) => {
drawer.classList.toggle(OPEN, open);
tab.setAttribute('aria-expanded', open);
label.textContent = open ? 'Push me' : 'Pull me';
};
tab.addEventListener('click', () => pull(!drawer.classList.contains(OPEN)));
sheet.addEventListener('click', (event) => event.target.closest('a') && pull(false));
addEventListener('keydown', (event) => event.key === 'Escape' && pull(false));
addEventListener('pointerdown', (event) => drawer.contains(event.target) || pull(false));
};
document.querySelectorAll('.pull-menu').forEach(setUp);
})();
</script>
Cut-out hero
Two tilted lines of huge uneven letters on lime, a blob badge between two kickers, and a thick jar-lid sticker that drops in, then rolls away with the scroll. The sheet ends in a curve over deep green with a pen note.
Code
React For Figma<section class="hero">
<div class="hero__sheet">
<p class="hero__top">
<span class="hero__kicker">Small jars</span>
<span class="hero__badge"><span class="hero__badge-name">Loud<br>Jar</span></span>
<span class="hero__kicker">Big noise</span>
</p>
<h1 class="hero__title" aria-label="Crunch out loud">
<span class="hero__line" aria-hidden="true">Crunch</span>
<span class="hero__line" aria-hidden="true">Out loud</span>
</h1>
</div>
<div class="hero__lid" role="img" aria-label="Lid of a jar of dill spears">
<svg class="hero__lid-print" viewBox="0 0 200 200" aria-hidden="true">
<path id="hero-lid-arc" d="M30,100 a70,70 0 1,1 140,0" fill="none" />
<path id="hero-lid-foot" d="M5,100 a95,95 0 0,0 190,0" fill="none" />
<text class="hero__lid-arc"><textPath href="#hero-lid-arc" startOffset="50%">Packed by hand · 400 g · keep it cold</textPath></text>
<text class="hero__lid-foot"><textPath href="#hero-lid-foot" startOffset="50%">Extra loud</textPath></text>
</svg>
<span class="hero__lid-brand">Loud Jar</span>
<strong class="hero__lid-name">Dill<br>Spears</strong>
<span class="hero__lid-code"></span>
</div>
<p class="hero__note">made for real kitchens.<br>not fancy, just loud.</p>
</section>
<style>
.hero {
--hero-progress: 0;
position: relative;
padding-bottom: clamp(9rem, 19vw, 18rem);
background: var(--crease) 0 0 / var(--crease-size), var(--forest);
background-blend-mode: soft-light;
overflow: clip;
}
.hero__sheet {
display: flex;
flex-direction: column;
align-items: center;
min-height: clamp(23rem, 50vw, 48rem);
padding: clamp(4.5rem, 5vw, 5.5rem) var(--gutter) calc(var(--curve-depth) + 3rem);
border-radius: 0 0 50% 50% / 0 0 var(--curve-depth) var(--curve-depth);
background: var(--crease) 0 0 / var(--crease-size), var(--lime);
background-blend-mode: soft-light;
}
.hero__top {
display: flex;
align-items: center;
gap: clamp(0.5rem, 2vw, 2rem);
margin: 0;
position: relative;
z-index: 2;
}
.hero__kicker {
font: 900 clamp(1.15rem, 2.8vw, 2.6rem) / 1 var(--font-display);
text-transform: uppercase;
letter-spacing: -0.02em;
white-space: nowrap;
}
.hero__badge {
display: grid;
place-items: center;
width: clamp(5.25rem, 13vw, 12rem);
aspect-ratio: 1.75;
margin-bottom: -1.2rem;
border-radius: 52% 48% 46% 54% / 62% 54% 46% 38%;
background: var(--forest);
box-shadow: 0.2em 0.35em 0 var(--sun);
transform: rotate(-9deg);
transition: transform var(--time-pop) var(--ease-spring);
}
.hero__badge:hover {
transform: rotate(6deg) scale(1.08);
}
.hero__badge-name {
font: 900 clamp(1.15rem, 2.9vw, 2.7rem) / var(--tight) var(--font-display);
text-transform: uppercase;
text-align: center;
color: var(--paper);
}
.hero__title {
display: flex;
flex-direction: column;
align-items: center;
margin: 0;
font: 900 var(--size-hero) / 0.74 var(--font-display);
text-transform: uppercase;
letter-spacing: -0.015em;
white-space: nowrap;
}
.hero__line {
display: block;
transform: translateY(calc(var(--hero-progress) * var(--drift, 0) * 1em)) rotate(var(--tilt));
}
.hero__line:nth-child(1) {
--tilt: -4deg;
--drift: -0.12;
}
.hero__line:nth-child(2) {
--tilt: 3.5deg;
--drift: 0.1;
}
.hero__char {
display: inline-block;
transform: translateY(var(--lift)) rotate(var(--lean)) scaleY(var(--stretch));
transform-origin: 50% 80%;
transition: transform var(--time-pop) var(--ease-spring);
animation: hero-rise calc(var(--time-pop) * 1.5) var(--ease-spring) backwards;
animation-delay: calc(var(--order) * var(--stagger) + 0.1s);
}
.hero__char:hover {
transform: translateY(calc(var(--lift) - 0.07em)) rotate(calc(var(--lean) * -2.5)) scaleY(1.06);
}
@keyframes hero-rise {
from {
opacity: 0;
transform: translateY(0.55em) rotate(calc(var(--lean) * 7)) scale(0.6);
}
30% {
opacity: 1;
}
}
.hero__lid {
--lid: var(--sun);
--lid-face: color-mix(in srgb, var(--lid) 42%, var(--paper));
--lid-side: color-mix(in srgb, var(--lid) 30%, var(--paper));
position: absolute;
left: 50%;
bottom: clamp(1.5rem, 4vw, 4rem);
z-index: 3;
display: grid;
place-content: center;
justify-items: center;
width: 1em;
height: 1em;
margin-left: -0.5em;
font-size: clamp(12.5rem, 25vw, 23rem);
border-radius: var(--radius-pill);
background: radial-gradient(circle closest-side, var(--lid-face) calc(0.5em - var(--lid-rim)), var(--lid) calc(0.5em - var(--lid-rim) + 1px));
box-shadow:
-0.03em 0.012em 0 var(--lid-side),
-0.06em 0.024em 0 var(--lid-side),
-0.09em 0.036em 0 var(--lid-side),
-0.12em 0.048em 0 var(--lid-side),
-0.15em 0.06em 0 var(--lid-side),
-0.18em 0.072em 0 var(--lid-side),
-0.2em 0.2em 0.3em var(--shade);
color: var(--ink);
transform: translateY(calc(var(--hero-progress) * 0.5em)) rotate(calc(-14deg + var(--hero-progress) * 240deg));
animation: hero-drop calc(var(--time-pop) * 2) var(--ease-spring) 0.5s backwards;
}
@keyframes hero-drop {
from {
transform: translateY(-1.1em) rotate(-200deg);
}
}
.hero__lid-print {
position: absolute;
inset: 0;
font-family: var(--font-display);
font-weight: 800;
text-transform: uppercase;
text-anchor: middle;
}
.hero__lid-arc {
font-size: 8.4px;
letter-spacing: 0.04em;
fill: var(--ink);
}
.hero__lid-foot {
font-size: 11.5px;
font-weight: 900;
letter-spacing: 0.05em;
fill: var(--paper);
}
.hero__lid-brand {
padding: 0.35em 0.8em 0.25em;
border-radius: 55% 45% 50% 50% / 60% 60% 40% 40%;
background: var(--forest);
color: var(--paper);
font: 900 0.058em / 1 var(--font-display);
text-transform: uppercase;
transform: rotate(-6deg);
}
.hero__lid-name {
margin: 0.03em 0 0.04em;
font: 900 0.2em / var(--tight) var(--font-display);
text-transform: uppercase;
text-align: center;
letter-spacing: -0.02em;
}
.hero__lid-code {
width: 0.2em;
height: 0.075em;
border: 0.012em solid var(--paper);
background: repeating-linear-gradient(90deg, var(--ink) 0 1.5%, var(--paper) 1.5% 4%, var(--ink) 4% 8%, var(--paper) 8% 9.5%, var(--ink) 9.5% 10.5%, var(--paper) 10.5% 14%);
}
.hero__note {
position: absolute;
right: 9%;
bottom: clamp(4rem, 9vw, 8rem);
margin: 0;
padding: 0.5em 0 0 0.9em;
border-top: 1px solid var(--lime);
border-left: 1px solid var(--lime);
font: 400 var(--size-hand) / 1.25 var(--font-hand);
text-transform: lowercase;
color: var(--lime);
transform: rotate(-5deg);
}
@media (max-width: 47.99rem) {
.hero__note {
display: none;
}
}
@media (prefers-reduced-motion: reduce) {
.hero__char,
.hero__lid {
animation: none;
transition: none;
}
.hero {
--hero-progress: 0 !important;
}
}
</style>
<script>
(() => {
const LEANS = [-3, 2.2, -1.4, 3.1, -2.4, 1.2, -3.4, 2.6, -1, 3.3];
const LIFTS = [0, -0.018, 0.022, -0.01, 0.026, -0.02, 0.012, -0.026, 0.018, 0];
const STRETCHES = [1, 1.05, 0.97, 1.04, 0.98, 1.06, 1, 0.96, 1.03, 1.01];
const cutIntoLetters = (line, firstOrder) => {
const letters = [...line.textContent];
line.textContent = '';
letters.forEach((letter, index) => {
const order = firstOrder + index;
const char = document.createElement('span');
char.className = 'hero__char';
char.textContent = letter === ' ' ? ' ' : letter;
char.style.setProperty('--order', order);
char.style.setProperty('--lean', `${LEANS[order % LEANS.length]}deg`);
char.style.setProperty('--lift', `${LIFTS[order % LIFTS.length]}em`);
char.style.setProperty('--stretch', STRETCHES[order % STRETCHES.length]);
line.append(char);
});
return letters.length;
};
const followScroll = (hero) => {
const update = () => {
const { top, height } = hero.getBoundingClientRect();
hero.style.setProperty('--hero-progress', Math.min(1, Math.max(0, -top / height)).toFixed(3));
};
addEventListener('scroll', update, { passive: true });
update();
};
document.querySelectorAll('.hero').forEach((hero) => {
let order = 0;
hero.querySelectorAll('.hero__line').forEach((line) => {
order += cutIntoLetters(line, order);
});
followScroll(hero);
});
})();
</script>
Scrapbook board
A collage on dark paper: sticky note with a paperclip, a kraft card that prints its sentence word by word, a strip of clear tape, a printed card and a gingham napkin with a sticker. Pieces drift at different speeds on scroll. Positions are in container units, so the board scales as one picture.
Code
React For Figma<section class="scrapboard">
<div class="scrapboard__board">
<div class="scrapboard__item scrapboard__note" style="--depth: -5">
<span class="scrapboard__tape"></span>
<h3 class="scrapboard__note-title">Shopping list</h3>
<ul class="scrapboard__note-list">
<li>more jars</li>
<li>dill (a lot of dill)</li>
<li>call mum back</li>
</ul>
<svg class="scrapboard__clip" viewBox="0 0 40 70" aria-hidden="true">
<path d="M12 52V16a9 9 0 0 1 18 0v40a13 13 0 0 1-26 0V20" />
</svg>
</div>
<div class="scrapboard__item scrapboard__kraft" style="--depth: 3">
<span class="scrapboard__kraft-strip"></span>
<p class="scrapboard__say">Sad desk lunch, midnight fridge raid, picnic with no plan, burger missing something. We bring the crunch.</p>
</div>
<span class="scrapboard__item scrapboard__ribbon" style="--depth: 9"></span>
<p class="scrapboard__item scrapboard__hand" style="--depth: -9">found on our fridge door.<br>all of it true.</p>
<div class="scrapboard__item scrapboard__print" style="--depth: -12">
<span class="scrapboard__tape"></span>
<svg class="scrapboard__slices" viewBox="0 0 400 276" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
<defs>
<g id="scrapboard-slice">
<circle class="scrapboard__slice-skin" r="56" />
<circle class="scrapboard__slice-flesh" r="45" />
<g class="scrapboard__slice-seed">
<ellipse rx="5" ry="11" cy="-22" />
<ellipse rx="5" ry="11" cy="-22" transform="rotate(60)" />
<ellipse rx="5" ry="11" cy="-22" transform="rotate(120)" />
<ellipse rx="5" ry="11" cy="-22" transform="rotate(180)" />
<ellipse rx="5" ry="11" cy="-22" transform="rotate(240)" />
<ellipse rx="5" ry="11" cy="-22" transform="rotate(300)" />
</g>
</g>
<path id="scrapboard-sprig" class="scrapboard__sprig" d="M0 44C2 20 2 6 0-44M0 20c-12-6-18-14-20-26M0 20c12-6 18-14 20-26M0-2c-10-6-15-13-16-24M0-2c10-6 15-13 16-24M0-24c-6-5-9-10-10-18M0-24c6-5 9-10 10-18" />
</defs>
<use href="#scrapboard-slice" x="70" y="72" />
<use href="#scrapboard-slice" x="205" y="64" transform="rotate(20 205 64)" />
<use href="#scrapboard-slice" x="338" y="84" />
<use href="#scrapboard-slice" x="128" y="198" transform="rotate(35 128 198)" />
<use href="#scrapboard-slice" x="270" y="204" />
<use href="#scrapboard-sprig" x="138" y="84" transform="rotate(14 138 84)" />
<use href="#scrapboard-sprig" x="272" y="92" transform="rotate(-18 272 92)" />
<use href="#scrapboard-sprig" x="200" y="212" transform="rotate(80 200 212)" />
<use href="#scrapboard-sprig" x="52" y="200" transform="rotate(-30 52 200)" />
<use href="#scrapboard-sprig" x="352" y="210" transform="rotate(24 352 210)" />
</svg>
</div>
<div class="scrapboard__item scrapboard__napkin" style="--depth: -18">
<span class="scrapboard__band"></span>
<span class="scrapboard__lid" style="--lid: var(--coral)"><b>Kim<br>chi</b></span>
</div>
</div>
</section>
<style>
.scrapboard {
--scrap-progress: 0;
background: var(--crease) 0 0 / var(--crease-size), var(--forest);
background-blend-mode: soft-light;
overflow: clip;
}
.scrapboard__board {
--u: 1cqw;
container-type: inline-size;
position: relative;
height: 96vw;
}
.scrapboard__item {
position: absolute;
transform: translateY(calc(var(--scrap-progress) * var(--depth) * 1vw)) rotate(var(--tilt, 0deg));
will-change: transform;
}
.scrapboard__tape {
position: absolute;
left: 50%;
top: calc(-1.7 * var(--u));
z-index: 1;
width: calc(8 * var(--u));
height: calc(3.2 * var(--u));
margin-left: calc(-4 * var(--u));
background: var(--tape);
opacity: 0.92;
box-shadow: 0 0.15rem 0.3rem var(--shade);
transform: rotate(-4deg);
clip-path: polygon(0 8%, 3% 0, 97% 4%, 100% 14%, 98% 50%, 100% 92%, 96% 100%, 4% 96%, 0 84%, 2% 50%);
}
/* sticky note */
.scrapboard__note {
--tilt: -3deg;
left: 6%;
top: 5cqw;
width: calc(15.5 * var(--u));
padding: calc(2.6 * var(--u)) calc(1.4 * var(--u)) calc(3.4 * var(--u));
background: linear-gradient(175deg, var(--note) 70%, color-mix(in srgb, var(--note) 82%, var(--kraft-ink)));
box-shadow: 0.4rem 0.9rem 1.2rem var(--shade);
color: var(--kraft-ink);
}
.scrapboard__note-title {
margin: 0 0 calc(0.6 * var(--u));
font: 900 calc(2.5 * var(--u)) / 1 var(--font-display);
text-transform: uppercase;
transform: rotate(-2deg);
}
.scrapboard__note-list {
margin: 0;
padding: 0;
list-style: none;
font: 400 calc(1.12 * var(--u)) / 1 var(--font-hand);
text-transform: lowercase;
}
.scrapboard__note-list li {
display: flex;
align-items: center;
gap: 0.6em;
padding: 0.55em 0 0.4em;
border-bottom: 1px dotted var(--kraft-ink);
}
.scrapboard__note-list li::before {
content: "";
flex: none;
width: 0.7em;
height: 0.7em;
border: 1px solid var(--kraft-ink);
border-radius: var(--radius-pill);
}
.scrapboard__clip {
position: absolute;
left: calc(-1.4 * var(--u));
bottom: calc(-1.6 * var(--u));
width: calc(2.6 * var(--u));
fill: none;
stroke: var(--paper);
stroke-width: 3.5;
stroke-linecap: round;
filter: drop-shadow(0 0.15rem 0.15rem var(--shade));
transform: rotate(48deg);
}
/* kraft card with the big line */
.scrapboard__kraft {
right: -2%;
top: 9cqw;
width: 52cqw;
min-height: 56cqw;
padding: 10cqw 9cqw 6cqw 6cqw;
background:
radial-gradient(circle, color-mix(in srgb, var(--kraft-ink) 40%, transparent) 0.6px, transparent 1.3px) 0 0 / 23px 17px,
radial-gradient(circle, color-mix(in srgb, var(--kraft-ink) 30%, transparent) 0.5px, transparent 1.2px) 7px 11px / 13px 29px,
radial-gradient(circle, color-mix(in srgb, var(--paper) 50%, transparent) 0.6px, transparent 1.4px) 3px 5px / 19px 11px,
var(--crease) 0 0 / var(--crease-size),
var(--kraft);
background-blend-mode: normal, normal, normal, soft-light, normal;
box-shadow: -0.5rem 1rem 1.6rem var(--shade);
}
.scrapboard__kraft-strip {
position: absolute;
left: 24%;
right: 0;
top: -3.5cqw;
height: 8.5cqw;
background: var(--kraft-light);
box-shadow: 0 0.3rem 0.5rem var(--shade);
transform: rotate(-0.6deg);
}
.scrapboard__say {
position: relative;
margin: 0;
font: 900 5.1cqw / 0.9 var(--font-display);
text-transform: uppercase;
letter-spacing: -0.015em;
color: var(--kraft-ink);
}
.scrapboard__word {
display: inline-block;
margin-right: 0.2em;
transform: translateY(0.9em) rotate(var(--lean));
opacity: 0;
transition:
transform calc(var(--time-pop) * 1.4) var(--ease-spring),
opacity var(--time-quick) ease;
transition-delay: calc(var(--order) * 55ms);
}
.scrapboard__say--shown .scrapboard__word {
transform: none;
opacity: 1;
}
/* a strip of clear tape running down the board */
.scrapboard__ribbon {
--tilt: 1deg;
left: 43.5%;
top: -3cqw;
z-index: 2;
width: 6cqw;
height: 50cqw;
background: linear-gradient(90deg, color-mix(in srgb, var(--paper) 34%, transparent), color-mix(in srgb, var(--paper) 16%, transparent) 30% 70%, color-mix(in srgb, var(--paper) 30%, transparent));
clip-path: polygon(0 0, 100% 0, 100% 99%, 84% 100%, 70% 98.6%, 52% 100%, 36% 98.8%, 18% 100%, 0 98.8%);
}
.scrapboard__hand {
--tilt: -6deg;
left: 3.5%;
top: 33cqw;
margin: 0;
padding: 0.5em 0 0 0.9em;
border-top: 1px solid var(--lime);
border-left: 1px solid var(--lime);
font: 400 var(--size-hand) / 1.25 var(--font-hand);
text-transform: lowercase;
color: var(--lime);
}
/* printed card */
.scrapboard__print {
--tilt: -14deg;
left: -4%;
top: 46cqw;
width: 44cqw;
aspect-ratio: 1.45;
padding: 1.2cqw;
background: var(--paper);
box-shadow: 0.4rem 1rem 1.4rem var(--shade);
}
.scrapboard__print .scrapboard__tape {
left: 78%;
top: -1.4cqw;
width: 12cqw;
height: 4cqw;
transform: rotate(9deg);
}
.scrapboard__slices {
display: block;
width: 100%;
height: 100%;
}
.scrapboard__slice-skin {
fill: var(--forest);
}
.scrapboard__slice-flesh {
fill: var(--lime);
}
.scrapboard__slice-seed {
fill: var(--paper);
}
.scrapboard__sprig {
fill: none;
stroke: var(--forest);
stroke-width: 4;
stroke-linecap: round;
}
/* gingham napkin with a lid stuck on it */
.scrapboard__napkin {
--tilt: 13deg;
left: 60%;
top: 63cqw;
width: 36cqw;
aspect-ratio: 1;
background:
linear-gradient(90deg, color-mix(in srgb, var(--candy) 55%, transparent) 50%, transparent 50%) 0 0 / 5cqw 5cqw,
linear-gradient(0deg, color-mix(in srgb, var(--candy) 55%, transparent) 50%, transparent 50%) 0 0 / 5cqw 5cqw,
var(--paper);
box-shadow: 0.4rem 1rem 1.6rem var(--shade);
}
.scrapboard__band {
position: absolute;
inset: 0 auto 0 58%;
width: 5cqw;
background: var(--paper);
box-shadow: 0 0 0.4rem var(--shade);
}
.scrapboard__lid {
position: absolute;
left: 12%;
top: 16%;
display: grid;
place-items: center;
width: 1em;
height: 1em;
font-size: 15cqw;
border-radius: var(--radius-pill);
background: radial-gradient(circle closest-side, color-mix(in srgb, var(--lid) 42%, var(--paper)) calc(0.5em - var(--lid-rim)), var(--lid) calc(0.5em - var(--lid-rim) + 1px));
box-shadow: 0.02em 0.05em 0 color-mix(in srgb, var(--lid) 65%, var(--ink)), 0.1em 0.16em 0.2em var(--shade);
color: var(--ink);
transform: rotate(-20deg);
transition: transform var(--time-pop) var(--ease-spring);
}
.scrapboard__lid:hover {
transform: rotate(8deg) scale(1.08);
}
.scrapboard__lid b {
font: 900 0.24em / var(--tight) var(--font-display);
text-transform: uppercase;
text-align: center;
}
@media (max-width: 47.99rem) {
.scrapboard__board {
--u: 2.5cqw;
height: 205vw;
}
.scrapboard__note {
left: 5%;
top: 8cqw;
}
.scrapboard__kraft {
top: 42cqw;
width: 84cqw;
min-height: 0;
padding: 13cqw 11cqw 9cqw 8cqw;
}
.scrapboard__kraft-strip {
top: -5cqw;
height: 12cqw;
}
.scrapboard__say {
font-size: 9cqw;
}
.scrapboard__ribbon {
left: 70%;
width: 11cqw;
height: 58cqw;
}
.scrapboard__hand {
left: 52%;
top: 14cqw;
}
.scrapboard__print {
left: -8%;
top: 128cqw;
width: 76cqw;
}
.scrapboard__print .scrapboard__tape {
width: 20cqw;
height: 7cqw;
top: -3cqw;
}
.scrapboard__napkin {
left: 46%;
top: 150cqw;
width: 58cqw;
}
.scrapboard__napkin,
.scrapboard__band {
background-size: 8cqw 8cqw, 8cqw 8cqw, auto;
}
.scrapboard__band {
width: 8cqw;
}
.scrapboard__lid {
font-size: 25cqw;
}
}
@media (prefers-reduced-motion: reduce) {
.scrapboard {
--scrap-progress: 0 !important;
}
.scrapboard__word,
.scrapboard__lid {
transition: none;
transform: none;
opacity: 1;
}
}
</style>
<script>
(() => {
const LEANS = [-7, 5, -4, 8, -6, 4];
const cutIntoWords = (line) => {
const words = line.textContent.trim().split(/\s+/);
line.setAttribute('aria-label', words.join(' '));
line.textContent = '';
words.forEach((word, order) => {
const span = document.createElement('span');
span.className = 'scrapboard__word';
span.setAttribute('aria-hidden', 'true');
span.textContent = word;
span.style.setProperty('--order', order);
span.style.setProperty('--lean', `${LEANS[order % LEANS.length]}deg`);
line.append(span, ' ');
});
};
const revealWhenSeen = (line) => {
const watcher = new IntersectionObserver(
([entry]) => {
if (!entry.isIntersecting) return;
line.classList.add('scrapboard__say--shown');
watcher.disconnect();
},
{ threshold: 0.25 }
);
watcher.observe(line);
};
const followScroll = (board) => {
const update = () => {
const { top, height } = board.getBoundingClientRect();
const travelled = (innerHeight - top) / (innerHeight + height);
board.style.setProperty('--scrap-progress', (Math.min(1, Math.max(0, travelled)) - 0.5).toFixed(3));
};
addEventListener('scroll', update, { passive: true });
addEventListener('resize', update);
update();
};
document.querySelectorAll('.scrapboard').forEach((board) => {
board.querySelectorAll('.scrapboard__say').forEach((line) => {
cutIntoWords(line);
revealWhenSeen(line);
});
followScroll(board);
});
})();
</script>
Wave ribbon
A lime ribbon on an S-curve between two section colours with text and rolling stickers running along it. Scroll speed and direction push the text. Set --wave-above and --wave-below to the neighbouring section colours.
Code
React For Figma<section class="wave-band" aria-label="Boring sandwiches fear us. Pass the jar.">
<svg class="wave-band__svg" viewBox="0 0 1440 330" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
<path class="wave-band__ribbon" id="wave-band-path" d="M-240,205 C120,330 470,70 860,128 S1480,300 1700,90" />
<text class="wave-band__text" dy="0.33em">
<textPath class="wave-band__run" href="#wave-band-path"><tspan class="wave-band__phrase">Boring sandwiches fear us</tspan><tspan class="wave-band__phrase" dx="150">Pass the jar</tspan><tspan class="wave-band__phrase" dx="150">Boring sandwiches fear us</tspan><tspan class="wave-band__phrase" dx="150">Pass the jar</tspan><tspan class="wave-band__phrase" dx="150">Boring sandwiches fear us</tspan><tspan class="wave-band__phrase" dx="150">Pass the jar</tspan><tspan class="wave-band__phrase" dx="150">Boring sandwiches fear us</tspan><tspan class="wave-band__phrase" dx="150">Pass the jar</tspan></textPath>
</text>
<g class="wave-band__lids"></g>
</svg>
</section>
<style>
.wave-band {
--wave-above: var(--forest);
--wave-below: var(--tangerine);
--wave-cut: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 330' preserveAspectRatio='xMidYMid slice'%3E%3Cpath d='M-240,205 C120,330 470,70 860,128 S1480,300 1700,90 V-100 H-240 Z'/%3E%3C/svg%3E");
position: relative;
z-index: 1;
height: clamp(11.5rem, 23vw, 20.5rem);
margin-bottom: -1px;
background: var(--crease) 0 0 / var(--crease-size), var(--wave-below);
background-blend-mode: soft-light;
overflow: hidden;
}
/* the colour above the ribbon: a full layer cut along the same curve the ribbon follows */
.wave-band::before {
content: "";
position: absolute;
inset: 0;
background: var(--crease) 0 0 / var(--crease-size), var(--wave-above);
background-blend-mode: soft-light;
-webkit-mask: var(--wave-cut) 0 0 / 100% 100% no-repeat;
mask: var(--wave-cut) 0 0 / 100% 100% no-repeat;
}
.wave-band__svg {
position: relative;
display: block;
width: 100%;
height: 100%;
}
.wave-band__ribbon {
fill: none;
stroke: var(--lime);
stroke-width: 124;
}
.wave-band__text {
fill: var(--pine);
font: 900 92px / 1 var(--font-display);
text-transform: uppercase;
letter-spacing: 0.01em;
word-spacing: 0.08em;
}
.wave-band__lid-rim {
fill: var(--sun);
}
.wave-band__lid-face {
fill: color-mix(in srgb, var(--sun) 42%, var(--paper));
}
.wave-band__lid-name {
fill: var(--ink);
font: 900 21px / 1 var(--font-display);
text-transform: uppercase;
text-anchor: middle;
}
</style>
<script>
(() => {
const GAP = 150;
const CRUISE = 70;
const SCROLL_PUSH = 1.6;
const SVG = 'http://www.w3.org/2000/svg';
const calm = matchMedia('(prefers-reduced-motion: reduce)');
const drawLid = () => {
const lid = document.createElementNS(SVG, 'g');
lid.innerHTML =
'<circle class="wave-band__lid-rim" r="50"/><circle class="wave-band__lid-face" r="41"/>' +
'<text class="wave-band__lid-name" y="-3">Loud</text><text class="wave-band__lid-name" y="17">Jar</text>';
return lid;
};
const setUp = (band) => {
const path = band.querySelector('.wave-band__ribbon');
const run = band.querySelector('.wave-band__run');
const phrases = [...band.querySelectorAll('.wave-band__phrase')];
const lidLayer = band.querySelector('.wave-band__lids');
const lids = phrases.map(() => lidLayer.appendChild(drawLid()));
const pathLength = path.getTotalLength();
let starts = [];
let loop = 0;
let offset = 0;
let lastScroll = scrollY;
let lastTime = 0;
const measure = () => {
let cursor = 0;
starts = phrases.map((phrase) => {
const start = cursor;
cursor += phrase.getComputedTextLength() + GAP;
return start;
});
loop = starts[2];
};
const place = () => {
run.setAttribute('startOffset', offset);
lids.forEach((lid, index) => {
const along = offset + starts[index] - GAP / 2;
const onPath = along > 0 && along < pathLength;
lid.style.display = onPath ? '' : 'none';
if (!onPath) return;
const here = path.getPointAtLength(along);
const ahead = path.getPointAtLength(along + 2);
const angle = (Math.atan2(ahead.y - here.y, ahead.x - here.x) * 180) / Math.PI;
lid.setAttribute('transform', `translate(${here.x} ${here.y}) rotate(${angle + offset * 0.4})`);
});
};
const tick = (time) => {
const elapsed = Math.min(0.05, (time - lastTime) / 1000 || 0);
const scrolled = scrollY - lastScroll;
lastTime = time;
lastScroll = scrollY;
offset -= CRUISE * elapsed + scrolled * SCROLL_PUSH;
offset = ((offset % loop) - loop) % loop;
place();
if (!calm.matches) requestAnimationFrame(tick);
};
document.fonts.ready.then(() => {
measure();
offset = -loop * 0.35;
place();
if (!calm.matches) requestAnimationFrame(tick);
});
};
document.querySelectorAll('.wave-band').forEach(setUp);
})();
</script>
Flavour picker
A coloured stage with a giant two-line word, a big lid sticker, two taped picture tiles, tags, a short text and a rack of small lids. Choosing a lid rolls the big one out and a new one in, changes the stage colour and resets the word. Each choice is a button with data attributes, so adding a flavour is one line.
Code
React For Figma<section class="picker" id="flavours">
<div class="picker__stage">
<p class="picker__chip">Meet the loud ones</p>
<div class="picker__about">
<ul class="picker__tags">
<li class="picker__tag">Burgers</li>
<li class="picker__tag">Cheese boards</li>
<li class="picker__tag">Straight from the jar</li>
</ul>
<p class="picker__text">Always ready for burgers, cheese boards and standing at the fridge at midnight. Crisp, garlicky, zero drama.</p>
</div>
<div class="picker__show">
<p class="picker__word" aria-live="polite">
<span class="picker__word-line">The</span>
<span class="picker__word-line picker__word-name">Classic</span>
</p>
<div class="picker__tile picker__tile--jar">
<span class="picker__tape"></span>
<svg viewBox="0 0 200 200" aria-hidden="true">
<path class="picker__fan" d="M0 200V150l25-18 25 18 25-18 25 18 25-18 25 18 25-18 25 18v50Z" />
<rect class="picker__jar-glass" x="58" y="62" width="84" height="104" rx="16" />
<rect class="picker__jar-pickle" x="70" y="78" width="16" height="78" rx="8" />
<rect class="picker__jar-pickle" x="92" y="86" width="16" height="70" rx="8" />
<rect class="picker__jar-pickle" x="114" y="74" width="16" height="82" rx="8" />
<rect class="picker__jar-cap" x="52" y="42" width="96" height="26" rx="8" />
</svg>
</div>
<div class="picker__lid" role="img" aria-label="Jar lid">
<svg class="picker__lid-print" viewBox="0 0 200 200" aria-hidden="true">
<path id="picker-lid-arc" d="M30,100 a70,70 0 1,1 140,0" fill="none" />
<path id="picker-lid-foot" d="M5,100 a95,95 0 0,0 190,0" fill="none" />
<text class="picker__lid-arc"><textPath href="#picker-lid-arc" startOffset="50%">Packed by hand · 400 g · keep it cold</textPath></text>
<text class="picker__lid-foot"><textPath class="picker__lid-note" href="#picker-lid-foot" startOffset="50%">Extra loud</textPath></text>
</svg>
<span class="picker__lid-brand">Loud Jar</span>
<strong class="picker__lid-name">Dill<br>Spears</strong>
<span class="picker__lid-code"></span>
</div>
<div class="picker__tile picker__tile--slices">
<span class="picker__tape"></span>
<span class="picker__slice"></span>
<span class="picker__slice"></span>
<span class="picker__slice"></span>
</div>
<a class="picker__taste" href="#hello">Taste it</a>
</div>
<div class="picker__rack">
<p class="picker__hint">pick one!</p>
<button class="picker__pick" type="button" aria-pressed="true" style="--lid: var(--sun)"
data-name="Dill|Spears" data-note="Extra loud" data-word="Classic" data-lid="sun" data-stage="tangerine" data-ink="sun" data-copy="paper"
data-tags="Burgers|Cheese boards|Straight from the jar"
data-text="Always ready for burgers, cheese boards and standing at the fridge at midnight. Crisp, garlicky, zero drama."><b>Dill<br>Spears</b></button>
<button class="picker__pick" type="button" aria-pressed="false" style="--lid: var(--coral)"
data-name="Kim|Chi" data-note="Properly funky" data-word="Hothead" data-lid="coral" data-stage="sky" data-ink="paper" data-copy="pine"
data-tags="Fried rice|Toasties|Hangovers"
data-text="Three weeks in the crock, a lifetime in your fridge door. Turns plain rice into dinner and a toastie into a personality."><b>Kim<br>chi</b></button>
<button class="picker__pick" type="button" aria-pressed="false" style="--lid: var(--sky)"
data-name="Bread &|Butter" data-note="Sweet talker" data-word="Sweetie" data-lid="sky" data-stage="iris" data-ink="sun" data-copy="paper"
data-tags="Sandwiches|Potato salad|Picky eaters"
data-text="Soft on the sour, big on the snap. The one that gets children to eat a sandwich and adults to finish the jar."><b>Bread<br>& Butter</b></button>
<button class="picker__pick" type="button" aria-pressed="false" style="--lid: var(--iris)"
data-name="Beet|Kraut" data-note="Stains everything" data-word="Showoff" data-lid="iris" data-stage="sun" data-ink="tangerine" data-copy="kraft-ink"
data-tags="Hot dogs|Grain bowls|White shirts"
data-text="Loud colour, louder crunch. Makes every plate look planned and every tablecloth look worried."><b>Beet<br>Kraut</b></button>
</div>
</div>
</section>
<style>
.picker {
--picker-next: var(--lime);
--picker-stage: var(--tangerine);
--picker-ink: var(--sun);
--picker-copy: var(--paper);
--picker-lid: var(--sun);
background: var(--crease) 0 0 / var(--crease-size), var(--picker-next);
background-blend-mode: soft-light;
overflow: clip;
}
.picker__stage {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr) minmax(0, 1fr);
grid-template-areas:
"chip chip chip"
"about show rack";
align-items: center;
gap: 1rem var(--gutter);
padding: 1.5rem var(--gutter) calc(var(--curve-depth) + 2rem);
border-radius: 0 0 50% 50% / 0 0 var(--curve-depth) var(--curve-depth);
background: var(--crease) 0 0 / var(--crease-size), var(--picker-stage);
background-blend-mode: soft-light;
transition: background-color var(--time-slow) var(--ease-out);
}
.picker__chip,
.picker__tag {
width: fit-content;
margin: 0;
padding: 0.42rem 0.7rem 0.34rem 1.25rem;
border-radius: var(--radius-chip);
background:
radial-gradient(circle, var(--kraft-ink) 1.1px, transparent 1.6px) 0.42rem 50% / 4px 5px repeat-y,
var(--sun);
color: var(--kraft-ink);
font: 800 var(--size-tag) / 1 var(--font-display);
text-transform: uppercase;
box-shadow: 0 0.14rem 0 var(--shade);
}
.picker__chip {
grid-area: chip;
justify-self: center;
transform: rotate(-2deg);
}
.picker__about {
grid-area: about;
align-self: end;
position: relative;
z-index: 3;
padding-bottom: 4vw;
}
.picker__tags {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin: 0 0 2.5rem;
padding: 0;
list-style: none;
}
.picker__tag:nth-child(odd) {
transform: rotate(-1.5deg);
}
.picker__tag:nth-child(even) {
transform: rotate(1.2deg);
}
.picker__text {
max-width: 17rem;
margin: 0;
font-weight: 600;
color: var(--picker-copy);
transition: color var(--time-slow) var(--ease-out);
}
.picker__swap {
animation: picker-swap var(--time-pop) var(--ease-out);
}
@keyframes picker-swap {
from {
opacity: 0;
transform: translateY(0.6rem);
}
}
/* the show: giant word, lid, two picture tiles */
.picker__show {
grid-area: show;
position: relative;
height: 43vw;
}
.picker__word {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
margin: 0;
font: 900 15.5vw / 0.76 var(--font-display);
text-transform: uppercase;
letter-spacing: -0.015em;
white-space: nowrap;
color: var(--picker-ink);
transition: color var(--time-slow) var(--ease-out);
}
.picker__word-line {
display: block;
}
.picker__word-line:first-child {
font-size: 0.82em;
transform: translateX(-2%);
}
.picker__word-name {
transform: rotate(-7deg) translateY(-8%);
}
.picker__char {
display: inline-block;
transform: rotate(var(--lean)) scaleY(var(--stretch));
animation: picker-rise calc(var(--time-pop) * 1.4) var(--ease-spring) backwards;
animation-delay: calc(var(--order) * var(--stagger) + 0.18s);
}
@keyframes picker-rise {
from {
opacity: 0;
transform: translateY(0.6em) rotate(calc(var(--lean) * 6)) scale(0.6);
}
30% {
opacity: 1;
}
}
.picker__lid {
--lid: var(--picker-lid);
--lid-face: color-mix(in srgb, var(--lid) 42%, var(--paper));
position: absolute;
left: 50%;
top: 50%;
z-index: 2;
display: grid;
place-content: center;
justify-items: center;
width: 1em;
height: 1em;
margin: -0.5em 0 0 -0.5em;
font-size: clamp(11rem, 22vw, 21rem);
border-radius: var(--radius-pill);
background: radial-gradient(circle closest-side, var(--lid-face) calc(0.5em - var(--lid-rim)), var(--lid) calc(0.5em - var(--lid-rim) + 1px));
box-shadow:
0 0.025em 0 color-mix(in srgb, var(--lid) 65%, var(--ink)),
0 0.09em 0.16em var(--shade),
0 0 0 0.06em color-mix(in srgb, var(--lid) 35%, transparent);
color: var(--ink);
}
.picker__lid-print {
position: absolute;
inset: 0;
font-family: var(--font-display);
font-weight: 800;
text-transform: uppercase;
text-anchor: middle;
}
.picker__lid-arc {
font-size: 8.4px;
letter-spacing: 0.04em;
fill: var(--ink);
}
.picker__lid-foot {
font-size: 11.5px;
font-weight: 900;
letter-spacing: 0.05em;
fill: var(--paper);
}
.picker__lid-brand {
padding: 0.35em 0.8em 0.25em;
border-radius: 55% 45% 50% 50% / 60% 60% 40% 40%;
background: var(--forest);
color: var(--paper);
font: 900 0.058em / 1 var(--font-display);
text-transform: uppercase;
transform: rotate(-6deg);
}
.picker__lid-name {
margin: 0.03em 0 0.04em;
font: 900 0.19em / var(--tight) var(--font-display);
text-transform: uppercase;
text-align: center;
letter-spacing: -0.02em;
}
.picker__lid-code {
width: 0.2em;
height: 0.075em;
border: 0.012em solid var(--paper);
background: repeating-linear-gradient(90deg, var(--ink) 0 1.5%, var(--paper) 1.5% 4%, var(--ink) 4% 8%, var(--paper) 8% 9.5%, var(--ink) 9.5% 10.5%, var(--paper) 10.5% 14%);
}
.picker__tile {
position: absolute;
z-index: 1;
width: 16.5vw;
aspect-ratio: 1;
border-radius: var(--radius-squircle);
box-shadow: 0.25rem 0.5rem 0 var(--shade);
transition: transform var(--time-pop) var(--ease-spring);
}
.picker__tile svg {
display: block;
width: 100%;
height: 100%;
border-radius: inherit;
}
.picker__tile--jar {
left: 0;
top: 15%;
background: var(--grape);
transform: rotate(-8deg);
}
.picker__tile--slices {
right: 0;
top: 24%;
background: var(--paper);
overflow: hidden;
transform: rotate(9deg);
}
.picker__tile--jar:hover,
.picker__show--rolling .picker__tile--slices {
transform: rotate(4deg) scale(1.05);
}
.picker__tile--slices:hover,
.picker__show--rolling .picker__tile--jar {
transform: rotate(-5deg) scale(1.05);
}
.picker__tape {
position: absolute;
left: 50%;
top: -0.9vw;
z-index: 1;
width: 7vw;
height: 2.6vw;
margin-left: -3.5vw;
background: var(--tape);
opacity: 0.92;
transform: rotate(-5deg);
clip-path: polygon(0 8%, 3% 0, 97% 4%, 100% 14%, 98% 50%, 100% 92%, 96% 100%, 4% 96%, 0 84%, 2% 50%);
}
.picker__tile--slices .picker__tape {
left: 30%;
transform: rotate(7deg);
}
.picker__fan {
fill: var(--tangerine);
}
.picker__jar-glass {
fill: color-mix(in srgb, var(--paper) 78%, var(--sky));
}
.picker__jar-pickle {
fill: var(--forest);
}
.picker__jar-cap {
fill: var(--picker-lid);
transition: fill var(--time-slow) var(--ease-out);
}
.picker__slice {
position: absolute;
width: 58%;
aspect-ratio: 1;
border-radius: var(--radius-pill);
background:
radial-gradient(circle closest-side, var(--paper) 9%, transparent 10%) 50% 22% / 22% 22% no-repeat,
radial-gradient(circle closest-side, var(--paper) 9%, transparent 10%) 26% 62% / 22% 22% no-repeat,
radial-gradient(circle closest-side, var(--paper) 9%, transparent 10%) 74% 62% / 22% 22% no-repeat,
radial-gradient(circle closest-side, var(--lime) 80%, var(--forest) 82%);
}
.picker__slice:nth-of-type(2) {
left: -8%;
top: 34%;
}
.picker__slice:nth-of-type(3) {
left: 46%;
top: -10%;
}
.picker__slice:nth-of-type(4) {
left: 42%;
top: 50%;
}
.picker__taste {
position: absolute;
left: 63%;
top: 12%;
z-index: 3;
display: grid;
place-items: center;
width: clamp(4.6rem, 7.6vw, 7rem);
aspect-ratio: 1;
border-radius: var(--radius-pill);
background: var(--paper);
outline: 2px dotted var(--pine);
outline-offset: -0.5rem;
color: var(--pine);
font: 900 clamp(1.05rem, 1.7vw, 1.6rem) / 1 var(--font-display);
text-transform: uppercase;
text-decoration: none;
box-shadow: 0 0.2rem 0 var(--shade);
transform: rotate(12deg);
transition: transform var(--time-pop) var(--ease-spring);
}
.picker__taste:hover,
.picker__taste:focus-visible {
transform: rotate(-8deg) scale(1.12);
}
/* the rack of small lids */
.picker__rack {
grid-area: rack;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 0.6rem;
}
.picker__hint {
margin: 0 0.6rem 0.2rem 0;
font: 400 var(--size-hand) / 1 var(--font-hand);
text-transform: lowercase;
color: var(--picker-copy);
transform: rotate(-8deg);
transition: color var(--time-slow) var(--ease-out);
}
.picker__pick {
display: grid;
place-items: center;
width: 1em;
height: 1em;
padding: 0;
border: 0;
font-size: clamp(4.2rem, 6.4vw, 6rem);
border-radius: var(--radius-pill);
background: radial-gradient(circle closest-side, color-mix(in srgb, var(--lid) 42%, var(--paper)) calc(0.5em - var(--lid-rim)), var(--lid) calc(0.5em - var(--lid-rim) + 1px));
box-shadow: 0 0.03em 0 color-mix(in srgb, var(--lid) 65%, var(--ink)), 0 0.08em 0.12em var(--shade);
color: var(--ink);
cursor: pointer;
transition: transform var(--time-pop) var(--ease-spring);
}
.picker__pick b {
font: 900 0.19em / var(--tight) var(--font-display);
text-transform: uppercase;
}
.picker__pick:nth-of-type(odd) {
transform: rotate(-8deg);
}
.picker__pick:nth-of-type(even) {
transform: translateX(-35%) rotate(10deg);
}
.picker__pick:hover,
.picker__pick:focus-visible {
transform: translateX(-18%) rotate(-14deg) scale(1.12);
}
.picker__pick[aria-pressed="true"] {
transform: translateX(-55%) rotate(0deg) scale(1.18);
outline: 2px dotted var(--picker-copy);
outline-offset: 0.25rem;
}
@media (max-width: 59.99rem) {
.picker__stage {
grid-template-columns: minmax(0, 1fr);
grid-template-areas: "chip" "show" "rack" "about";
gap: 1.5rem;
padding-top: 2rem;
}
.picker__show {
height: 108vw;
}
.picker__word {
justify-content: flex-start;
gap: 33vw;
padding-top: 1vw;
font-size: 27vw;
}
.picker__lid {
top: 36vw;
margin-top: -0.5em;
font-size: clamp(10rem, 44vw, 21rem);
}
.picker__tile {
top: auto;
bottom: 0;
width: 39vw;
}
.picker__tile--jar {
left: 6%;
}
.picker__tile--slices {
right: 6%;
}
.picker__tape {
top: -2.5vw;
width: 16vw;
height: 6vw;
margin-left: -8vw;
}
.picker__taste {
left: 68%;
top: 15vw;
}
.picker__rack {
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 0.9rem;
}
.picker__hint {
flex-basis: 100%;
margin: 0;
text-align: center;
}
.picker__pick,
.picker__pick:nth-of-type(even),
.picker__pick:hover,
.picker__pick:focus-visible {
transform: rotate(-6deg);
}
.picker__pick[aria-pressed="true"] {
transform: rotate(0deg) scale(1.14);
}
.picker__about {
padding-bottom: 0;
text-align: center;
}
.picker__tags {
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
margin-bottom: 1.25rem;
}
.picker__text {
max-width: 26rem;
margin: 0 auto;
}
}
@media (prefers-reduced-motion: reduce) {
.picker__char,
.picker__swap {
animation: none;
}
.picker__stage,
.picker__tile,
.picker__pick,
.picker__taste {
transition: none;
}
}
</style>
<script>
(() => {
const LEANS = [-3, 2.2, -1.4, 3.1, -2.4, 1.2, -3.4, 2.6];
const STRETCHES = [1, 1.05, 0.97, 1.04, 0.98, 1.06, 1, 0.96];
const ROLL_OUT = [{ transform: 'none' }, { transform: 'translateX(-65vw) rotate(-300deg)' }];
const ROLL_IN = [{ transform: 'translateX(65vw) rotate(300deg)' }, { transform: 'none' }];
const calm = matchMedia('(prefers-reduced-motion: reduce)');
const token = (name) => `var(--${name})`;
const cutIntoLetters = (line, word) => {
line.textContent = '';
line.setAttribute('aria-label', word);
[...word].forEach((letter, order) => {
const char = document.createElement('span');
char.className = 'picker__char';
char.setAttribute('aria-hidden', 'true');
char.textContent = letter;
char.style.setProperty('--order', order);
char.style.setProperty('--lean', `${LEANS[order % LEANS.length]}deg`);
char.style.setProperty('--stretch', STRETCHES[order % STRETCHES.length]);
line.append(char);
});
};
const replay = (element) => {
element.classList.remove('picker__swap');
void element.offsetWidth;
element.classList.add('picker__swap');
};
const setUp = (picker) => {
const show = picker.querySelector('.picker__show');
const lid = picker.querySelector('.picker__lid');
const picks = [...picker.querySelectorAll('.picker__pick')];
const wordLines = [...picker.querySelectorAll('.picker__word-line')];
const about = picker.querySelector('.picker__about');
const spring = getComputedStyle(picker).getPropertyValue('--ease-spring').trim();
const print = (flavour) => {
picker.style.setProperty('--picker-stage', token(flavour.stage));
picker.style.setProperty('--picker-ink', token(flavour.ink));
picker.style.setProperty('--picker-copy', token(flavour.copy));
picker.style.setProperty('--picker-lid', token(flavour.lid));
picker.querySelector('.picker__lid-name').innerHTML = flavour.name.split('|').map((part) => part.replace('&', '&')).join('<br>');
picker.querySelector('.picker__lid-note').textContent = flavour.note;
picker.querySelector('.picker__tags').replaceChildren(
...flavour.tags.split('|').map((tag) => Object.assign(document.createElement('li'), { className: 'picker__tag', textContent: tag }))
);
picker.querySelector('.picker__text').textContent = flavour.text;
wordLines.forEach((line, index) => cutIntoLetters(line, index ? flavour.word : 'The'));
replay(about);
};
const choose = async (pick) => {
if (pick.getAttribute('aria-pressed') === 'true' || show.classList.contains('picker__show--rolling')) return;
picks.forEach((other) => other.setAttribute('aria-pressed', other === pick));
if (calm.matches) return print(pick.dataset);
show.classList.add('picker__show--rolling');
await lid.animate(ROLL_OUT, { duration: 320, easing: 'ease-in' }).finished;
print(pick.dataset);
await lid.animate(ROLL_IN, { duration: 650, easing: spring }).finished;
show.classList.remove('picker__show--rolling');
};
wordLines.forEach((line) => cutIntoLetters(line, line.textContent.trim()));
picks.forEach((pick) => pick.addEventListener('click', () => choose(pick)));
};
document.querySelectorAll('.picker').forEach(setUp);
})();
</script>
Giant words slide
A headline, then a pinned band where three words taller than half the screen slide sideways as you scroll down, carrying stickers, picture tiles, numbered pen marks and arrows that draw themselves. The band measures its own length.
Code
React For Figma<section class="giant-words" id="story">
<header class="giant-words__intro">
<p class="giant-words__chip">Why we bother</p>
<h2 class="giant-words__title">We’re here for the snack emergencies.</h2>
</header>
<div class="giant-words__runway">
<div class="giant-words__pin">
<div class="giant-words__track">
<div class="giant-words__word">
<span class="giant-words__count">1</span>
<span class="giant-words__text">To crunch</span>
<span class="giant-words__tile" style="--x: 20%; --y: -4%; --tilt: -7deg; --drift: 0.1; --tile: var(--grape)">
<span class="giant-words__tape"></span>
<span class="giant-words__lid" style="--lid: var(--sun)"><b>Dill<br>Spears</b></span>
</span>
<span class="giant-words__lid" style="--x: 58%; --y: 46%; --tilt: -12deg; --drift: -0.35; --lid: var(--sun)"><b>Dill<br>Spears</b><i>Extra loud</i></span>
<span class="giant-words__lid" style="--x: 77%; --y: -6%; --tilt: 14deg; --drift: -0.6; --lid: var(--sky)"><b>Bread<br>& Butter</b><i>Sweet talker</i></span>
<p class="giant-words__hand" style="--x: 4%; --y: 96%">every good sandwich<br>starts with a jar.</p>
</div>
<svg class="giant-words__arrow" viewBox="0 0 200 120" aria-hidden="true" style="--from: 0.22">
<path pathLength="1" d="M6 10C80 14 150 50 186 108M186 108l-22-8M186 108l2-24" />
</svg>
<div class="giant-words__word">
<span class="giant-words__count">2</span>
<span class="giant-words__text">To share</span>
<span class="giant-words__lid" style="--x: -9%; --y: 52%; --tilt: -16deg; --drift: -0.3; --lid: var(--iris)"><b>Beet<br>Kraut</b><i>Stains everything</i></span>
<span class="giant-words__tile" style="--x: 30%; --y: 8%; --tilt: 9deg; --drift: 0.25; --tile: var(--tangerine)">
<span class="giant-words__tape"></span>
<span class="giant-words__lid" style="--lid: var(--iris)"><b>Beet<br>Kraut</b></span>
</span>
<span class="giant-words__tile" style="--x: 49%; --y: -22%; --tilt: -12deg; --drift: -0.2; --tile: var(--sky)">
<span class="giant-words__tape"></span>
<span class="giant-words__lid" style="--lid: var(--coral)"><b>Kim<br>chi</b></span>
</span>
<p class="giant-words__hand" style="--x: 24%; --y: -32%">the quick fix that<br>outlasts the party.</p>
</div>
<svg class="giant-words__arrow" viewBox="0 0 200 120" aria-hidden="true" style="--from: 0.52">
<path pathLength="1" d="M6 10C80 14 150 50 186 108M186 108l-22-8M186 108l2-24" />
</svg>
<div class="giant-words__word">
<span class="giant-words__count">3</span>
<span class="giant-words__text">To save lunch</span>
<span class="giant-words__tile" style="--x: -6%; --y: -2%; --tilt: -8deg; --drift: 0.2; --tile: var(--coral)">
<span class="giant-words__tape"></span>
<span class="giant-words__lid" style="--lid: var(--sky)"><b>Bread<br>& Butter</b></span>
</span>
<span class="giant-words__lid" style="--x: 30%; --y: -14%; --tilt: 10deg; --drift: -0.5; --lid: var(--coral)"><b>Kim<br>chi</b><i>Properly funky</i></span>
<span class="giant-words__lid" style="--x: 55%; --y: 50%; --tilt: -9deg; --drift: -0.25; --lid: var(--lime)"><b>Dill<br>Spears</b><i>Extra loud</i></span>
<span class="giant-words__tile" style="--x: 88%; --y: 6%; --tilt: 11deg; --drift: -0.4; --tile: var(--iris)">
<span class="giant-words__tape"></span>
<span class="giant-words__lid" style="--lid: var(--sun)"><b>Dill<br>Spears</b></span>
</span>
<p class="giant-words__hand" style="--x: 8%; --y: 98%">from our crock<br>to your worst tuesday.</p>
</div>
</div>
</div>
</div>
</section>
<style>
.giant-words {
--giant-progress: 0;
--giant-distance: 0;
padding-bottom: 4rem;
background: var(--crease) 0 0 / var(--crease-size), var(--lime);
background-blend-mode: soft-light;
}
.giant-words__intro {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.8rem;
padding: clamp(3rem, 8vw, 7rem) var(--gutter) 0;
text-align: center;
}
.giant-words__chip {
margin: 0;
padding: 0.42rem 0.7rem 0.34rem 1.25rem;
border-radius: var(--radius-chip);
background:
radial-gradient(circle, var(--lime) 1.1px, transparent 1.6px) 0.42rem 50% / 4px 5px repeat-y,
var(--forest);
color: var(--lime);
font: 800 var(--size-tag) / 1 var(--font-display);
text-transform: uppercase;
transform: rotate(-2deg);
}
.giant-words__title {
max-width: 9.5em;
margin: 0;
font: 900 var(--size-h2) / 0.86 var(--font-display);
text-transform: uppercase;
letter-spacing: -0.015em;
}
.giant-words__bit {
display: inline-block;
transform: translateY(0.8em) rotate(var(--lean));
opacity: 0;
transition:
transform calc(var(--time-pop) * 1.4) var(--ease-spring),
opacity var(--time-quick) ease;
transition-delay: calc(var(--order) * 60ms);
}
.giant-words__title--shown .giant-words__bit {
transform: none;
opacity: 1;
}
.giant-words__runway {
height: calc(var(--giant-pin-height) + var(--giant-distance) * 1px);
--giant-pin-height: min(100vh, max(58vw, 44rem));
}
.giant-words__pin {
position: sticky;
top: 0;
display: flex;
align-items: center;
height: var(--giant-pin-height);
overflow: clip;
}
.giant-words__track {
display: flex;
align-items: center;
gap: 0.32em;
padding: 0 0.45em 0 0.2em;
font: 900 var(--size-giant) / 0.8 var(--font-display);
text-transform: uppercase;
letter-spacing: -0.02em;
white-space: nowrap;
transform: translateX(calc(var(--giant-progress) * var(--giant-distance) * -1px));
will-change: transform;
}
.giant-words__word {
position: relative;
flex: none;
}
.giant-words__text {
display: block;
}
.giant-words__count {
position: absolute;
left: -0.11em;
top: -0.06em;
display: grid;
place-items: center;
width: 1.9em;
height: 1.9em;
border: 1.5px solid var(--pine);
border-radius: 48% 52% 50% 50% / 52% 46% 54% 48%;
font: 400 calc(var(--size-hand) * 1.5) / 1 var(--font-hand);
letter-spacing: 0;
transform: rotate(-10deg);
}
.giant-words__tile,
.giant-words__word > .giant-words__lid,
.giant-words__hand {
position: absolute;
left: var(--x);
top: var(--y);
transform: translateX(calc((var(--giant-progress) - 0.5) * var(--drift, 0) * 1.6em)) rotate(var(--tilt, 0deg));
}
.giant-words__tile {
display: grid;
place-items: center;
width: 0.52em;
height: 0.52em;
border-radius: var(--radius-squircle);
background:
conic-gradient(from 135deg at 50% 0, var(--tile) 90deg, transparent 0) 0 100% / 12.5% 22% repeat-x,
linear-gradient(color-mix(in srgb, var(--tile) 62%, var(--paper)) 0 0) 0 100% / 100% 22% no-repeat,
var(--tile);
box-shadow: 0.012em 0.024em 0 var(--shade);
}
.giant-words__tape {
position: absolute;
left: 50%;
top: -0.045em;
width: 0.24em;
height: 0.09em;
margin-left: -0.12em;
background: var(--tape);
opacity: 0.92;
transform: rotate(-5deg);
clip-path: polygon(0 8%, 3% 0, 97% 4%, 100% 14%, 98% 50%, 100% 92%, 96% 100%, 4% 96%, 0 84%, 2% 50%);
}
.giant-words__lid {
display: grid;
place-content: center;
justify-items: center;
width: 1em;
height: 1em;
font-size: 0.44em;
line-height: 1;
letter-spacing: 0;
border-radius: var(--radius-pill);
background: radial-gradient(circle closest-side, color-mix(in srgb, var(--lid) 42%, var(--paper)) calc(0.5em - var(--lid-rim)), var(--lid) calc(0.5em - var(--lid-rim) + 1px));
box-shadow: 0.012em 0.03em 0 color-mix(in srgb, var(--lid) 65%, var(--ink)), 0.05em 0.09em 0.12em var(--shade);
color: var(--ink);
}
.giant-words__tile .giant-words__lid {
font-size: 0.3em;
transform: rotate(12deg);
}
.giant-words__lid b {
font: 900 0.21em / var(--tight) var(--font-display);
text-align: center;
}
.giant-words__lid i {
margin-top: 0.5em;
padding: 0.25em 0.7em 0.15em;
border-radius: var(--radius-pill);
background: var(--forest);
color: var(--paper);
font: 900 0.055em / 1 var(--font-display);
letter-spacing: 0.04em;
}
.giant-words__hand {
margin: 0;
padding: 0.5em 0 0 0.9em;
border-top: 1px solid var(--pine);
border-left: 1px solid var(--pine);
font: 400 var(--size-hand) / 1.25 var(--font-hand);
letter-spacing: 0;
text-transform: lowercase;
--tilt: -6deg;
}
.giant-words__arrow {
flex: none;
align-self: flex-start;
width: 0.42em;
margin: 0.1em -0.05em 0;
fill: none;
stroke: var(--pine);
stroke-width: 1.2;
stroke-linecap: round;
stroke-dasharray: 1;
stroke-dashoffset: calc(1 - clamp(0, (var(--giant-progress) - var(--from)) * 7, 1));
}
@media (prefers-reduced-motion: reduce) {
.giant-words__runway {
height: auto;
}
.giant-words__pin {
position: static;
overflow-x: auto;
}
.giant-words__track {
transform: none;
}
.giant-words__bit {
transition: none;
transform: none;
opacity: 1;
}
.giant-words__arrow {
stroke-dashoffset: 0;
}
}
</style>
<script>
(() => {
const LEANS = [-6, 5, -4, 7, -5, 4];
const calm = matchMedia('(prefers-reduced-motion: reduce)');
const cutIntoWords = (title) => {
const words = title.textContent.trim().split(/\s+/);
title.setAttribute('aria-label', words.join(' '));
title.textContent = '';
words.forEach((word, order) => {
const bit = document.createElement('span');
bit.className = 'giant-words__bit';
bit.setAttribute('aria-hidden', 'true');
bit.textContent = word;
bit.style.setProperty('--order', order);
bit.style.setProperty('--lean', `${LEANS[order % LEANS.length]}deg`);
title.append(bit, ' ');
});
};
const revealWhenSeen = (title) => {
const watcher = new IntersectionObserver(
([entry]) => {
if (!entry.isIntersecting) return;
title.classList.add('giant-words__title--shown');
watcher.disconnect();
},
{ threshold: 0.4 }
);
watcher.observe(title);
};
const pinAndSlide = (section) => {
const runway = section.querySelector('.giant-words__runway');
const pin = section.querySelector('.giant-words__pin');
const track = section.querySelector('.giant-words__track');
let distance = 0;
const slide = () => {
if (calm.matches || distance <= 0) return;
const progress = Math.min(1, Math.max(0, -runway.getBoundingClientRect().top / distance));
section.style.setProperty('--giant-progress', progress.toFixed(4));
};
const measure = () => {
distance = Math.max(0, track.scrollWidth - pin.clientWidth);
section.style.setProperty('--giant-distance', distance);
slide();
};
addEventListener('scroll', slide, { passive: true });
addEventListener('resize', measure);
document.fonts.ready.then(measure);
measure();
};
document.querySelectorAll('.giant-words').forEach((section) => {
const title = section.querySelector('.giant-words__title');
cutIntoWords(title);
revealWhenSeen(title);
pinAndSlide(section);
});
})();
</script>
Sign-off and sticker pile
A call to action made of two squircles taped together, a curve into the dark footer, rolling links, the slogan once more and a pile of lid stickers and round social buttons that fall, bounce and can be thrown.
Code
React For Figma<footer class="sign-off" id="hello">
<div class="sign-off__sheet">
<div class="sign-off__pair">
<div class="sign-off__tile" aria-hidden="true">
<span class="sign-off__lid" style="--lid: var(--coral); --x: 6%; --y: 30%; --tilt: -24deg"><b>Kim<br>chi</b></span>
<span class="sign-off__lid" style="--lid: var(--sky); --x: 46%; --y: 10%; --tilt: 16deg"><b>Bread<br>& Butter</b></span>
<span class="sign-off__lid" style="--lid: var(--sun); --x: 26%; --y: 50%; --tilt: -6deg"><b>Dill<br>Spears</b></span>
<span class="sign-off__lid" style="--lid: var(--lime); --x: 58%; --y: 52%; --tilt: 22deg"><b>Beet<br>Kraut</b></span>
</div>
<span class="sign-off__tape"></span>
<div class="sign-off__call">
<h2 class="sign-off__title">Let’s<br>get<br>loud!</h2>
<p class="sign-off__line">For every plate that needs it.</p>
<a class="sign-off__button" href="#stockists">Find a jar</a>
</div>
</div>
</div>
<div class="sign-off__floor">
<nav class="sign-off__links" aria-label="Footer">
<a class="sign-off__link" href="#flavours"><span class="sign-off__clip"><span class="sign-off__roll">Flavours</span></span></a>
<a class="sign-off__link" href="#story"><span class="sign-off__clip"><span class="sign-off__roll">Our story</span></span></a>
<a class="sign-off__link" href="#stockists"><span class="sign-off__clip"><span class="sign-off__roll">Stockists</span></span></a>
<a class="sign-off__link" href="#hello"><span class="sign-off__clip"><span class="sign-off__roll">Say hello</span></span></a>
</nav>
<div class="sign-off__arena">
<p class="sign-off__shout" aria-hidden="true">
<span class="sign-off__badge"><span class="sign-off__badge-name">Loud<br>Jar</span></span>
<span class="sign-off__shout-line">Crunch</span>
<span class="sign-off__shout-line">Out loud</span>
</p>
<span class="sign-off__body sign-off__puck" style="--lid: var(--iris)"><b>Beet<br>Kraut</b></span>
<span class="sign-off__body sign-off__puck" style="--lid: var(--coral)"><b>Kim<br>chi</b></span>
<span class="sign-off__body sign-off__puck" style="--lid: var(--sun)"><b>Dill<br>Spears</b></span>
<span class="sign-off__body sign-off__puck" style="--lid: var(--sky)"><b>Bread<br>& Butter</b></span>
<a class="sign-off__body sign-off__social" href="#hello" aria-label="Instagram">
<svg viewBox="0 0 24 24" aria-hidden="true"><rect x="4" y="4" width="16" height="16" rx="5" /><circle cx="12" cy="12" r="3.6" /></svg>
</a>
<a class="sign-off__body sign-off__social" href="#hello" aria-label="TikTok">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M13 4v10.5a3.5 3.5 0 1 1-3.5-3.5M13 4c.4 2.6 2 4.2 4.5 4.5" /></svg>
</a>
<a class="sign-off__body sign-off__social" href="#hello" aria-label="Newsletter">
<svg viewBox="0 0 24 24" aria-hidden="true"><rect x="3.5" y="6" width="17" height="12" rx="2" /><path d="m4 7 8 6 8-6" /></svg>
</a>
</div>
<p class="sign-off__small">© 2026 Loud Jar Pickle Co. A made-up brand for a made-up fridge.</p>
</div>
</footer>
<style>
.sign-off {
background: var(--crease) 0 0 / var(--crease-size), var(--forest);
background-blend-mode: soft-light;
color: var(--lime);
overflow: clip;
}
.sign-off__sheet {
padding: clamp(3rem, 7vw, 7rem) var(--gutter) calc(var(--curve-depth) + 2rem);
border-radius: 0 0 50% 50% / 0 0 var(--curve-depth) var(--curve-depth);
background: var(--crease) 0 0 / var(--crease-size), var(--lime);
background-blend-mode: soft-light;
}
/* the call to action: a picture tile taped to a green block */
.sign-off__pair {
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.sign-off__tile,
.sign-off__call {
flex: none;
width: min(31vw, 30rem);
aspect-ratio: 1;
border-radius: var(--radius-squircle);
transition: transform var(--time-pop) var(--ease-spring);
}
.sign-off__tile {
position: relative;
margin-right: -1.5vw;
background: var(--iris);
box-shadow: 0.3rem 0.6rem 0 var(--shade);
transform: rotate(-5deg);
}
.sign-off__pair:hover .sign-off__tile {
transform: rotate(-9deg) translateX(-2%);
}
.sign-off__pair:hover .sign-off__call {
transform: rotate(4deg) translateX(2%);
}
.sign-off__tape {
position: absolute;
left: 50%;
top: 34%;
z-index: 2;
width: 4.5vw;
height: 11vw;
margin-left: -3vw;
background: var(--kraft-light);
box-shadow: 0 0.2rem 0.4rem var(--shade);
transform: rotate(4deg);
clip-path: polygon(6% 0, 96% 2%, 100% 97%, 80% 100%, 62% 98%, 40% 100%, 20% 98%, 0 100%);
}
.sign-off__call {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.6rem;
padding: 6%;
background: var(--crease) 0 0 / var(--crease-size), var(--forest);
background-blend-mode: soft-light;
text-align: center;
transform: rotate(2deg);
}
.sign-off__title {
margin: 0;
font: 900 clamp(3.4rem, 8.4vw, 8rem) / 0.8 var(--font-display);
text-transform: uppercase;
letter-spacing: -0.015em;
transform: rotate(-3deg);
}
.sign-off__line {
margin: 0;
font-weight: 600;
}
.sign-off__button {
display: grid;
place-items: center;
min-height: 2.75rem;
padding: 0.2rem 1.4rem 0;
border-radius: var(--radius-pill);
background: var(--lime);
color: var(--pine);
font: 900 1.25rem / 1 var(--font-display);
text-transform: uppercase;
text-decoration: none;
transition: transform var(--time-pop) var(--ease-spring);
}
.sign-off__button:hover,
.sign-off__button:focus-visible {
transform: rotate(-4deg) scale(1.1);
}
/* lid stickers, shared by the tile and the pile */
.sign-off__lid,
.sign-off__puck {
display: grid;
place-items: center;
width: 1em;
height: 1em;
border-radius: var(--radius-pill);
background: radial-gradient(circle closest-side, color-mix(in srgb, var(--lid) 42%, var(--paper)) calc(0.5em - var(--lid-rim)), var(--lid) calc(0.5em - var(--lid-rim) + 1px));
box-shadow: 0 0.03em 0 color-mix(in srgb, var(--lid) 65%, var(--ink)), 0 0.07em 0.12em var(--shade);
color: var(--ink);
}
.sign-off__lid b,
.sign-off__puck b {
font: 900 0.2em / var(--tight) var(--font-display);
text-transform: uppercase;
text-align: center;
}
.sign-off__lid {
position: absolute;
left: var(--x);
top: var(--y);
font-size: min(12vw, 11.5rem);
transform: rotate(var(--tilt));
}
/* the floor: links, the shout and a pile of lids you can throw around */
.sign-off__floor {
padding: clamp(2rem, 4vw, 4rem) var(--gutter) 1.25rem;
}
.sign-off__links {
display: flex;
justify-content: space-between;
gap: 1rem;
}
.sign-off__link {
position: relative;
display: block;
padding: 0.2rem 0 0.9rem;
color: var(--lime);
font: 900 var(--size-h3) / 1.85rem var(--font-display);
text-transform: uppercase;
letter-spacing: -0.01em;
text-decoration: none;
}
.sign-off__link::after {
content: "";
position: absolute;
left: 50%;
bottom: 0.15rem;
width: 0.4rem;
height: 0.4rem;
margin-left: -0.2rem;
border-radius: var(--radius-pill);
background: var(--lime);
transition: transform var(--time-pop) var(--ease-spring);
}
.sign-off__clip {
display: block;
height: 1.85rem;
overflow: hidden;
}
.sign-off__roll {
display: block;
text-shadow: 0 1.85rem 0 var(--sun);
transition: transform var(--time-pop) var(--ease-spring);
}
.sign-off__link:hover .sign-off__roll,
.sign-off__link:focus-visible .sign-off__roll {
transform: translateY(-1.85rem);
}
.sign-off__link:hover::after,
.sign-off__link:focus-visible::after {
transform: scale(1.8);
}
.sign-off__arena {
--puck: clamp(6.5rem, 12.5vw, 12rem);
--disc: clamp(4rem, 7vw, 6.5rem);
position: relative;
height: clamp(26rem, 40vw, 38rem);
margin-top: 1.5rem;
}
.sign-off__shout {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 0;
font: 900 clamp(5rem, 17vw, 16.5rem) / 0.76 var(--font-display);
text-transform: uppercase;
letter-spacing: -0.015em;
white-space: nowrap;
pointer-events: none;
}
.sign-off__shout-line:nth-of-type(2) {
transform: rotate(-4deg);
}
.sign-off__shout-line:nth-of-type(3) {
transform: rotate(3.5deg);
}
.sign-off__badge {
position: relative;
z-index: 1;
display: grid;
place-items: center;
width: 1.75em;
height: 1em;
margin-bottom: -0.25em;
border: 0.03em solid var(--lime);
border-radius: 52% 48% 46% 54% / 62% 54% 46% 38%;
background: var(--forest);
color: var(--paper);
font-size: 0.36em;
line-height: var(--tight);
text-align: center;
transform: rotate(-9deg);
}
.sign-off__badge-name {
font-size: 0.4em;
}
.sign-off__body {
--lift: 0;
--tilt: 0deg;
position: absolute;
left: var(--x);
bottom: calc(var(--lift) * var(--puck));
transform: rotate(var(--tilt));
touch-action: pan-y;
user-select: none;
cursor: grab;
}
.sign-off__puck:nth-of-type(1) {
--x: 20%;
--tilt: -12deg;
}
.sign-off__puck:nth-of-type(2) {
--x: 36%;
--tilt: 18deg;
}
.sign-off__puck:nth-of-type(3) {
--x: 52%;
--tilt: 92deg;
}
.sign-off__puck:nth-of-type(4) {
--x: 44%;
--lift: 0.86;
--tilt: -30deg;
}
.sign-off__social:nth-of-type(1) {
--x: 8%;
}
.sign-off__social:nth-of-type(2) {
--x: 70%;
}
.sign-off__social:nth-of-type(3) {
--x: 82%;
}
.sign-off__arena--live .sign-off__body {
left: 0;
top: 0;
bottom: auto;
will-change: transform;
}
.sign-off__body:active {
cursor: grabbing;
}
.sign-off__puck {
font-size: var(--puck);
}
.sign-off__social {
display: grid;
place-items: center;
width: var(--disc);
height: var(--disc);
border-radius: var(--radius-pill);
background: var(--lime);
}
.sign-off__social svg {
width: 38%;
fill: none;
stroke: var(--pine);
stroke-width: 1.8;
stroke-linecap: round;
stroke-linejoin: round;
}
.sign-off__small {
margin: 1rem 0 0;
font-size: 0.8rem;
text-align: center;
}
@media (max-width: 47.99rem) {
.sign-off__pair {
flex-direction: column;
}
.sign-off__tile,
.sign-off__call {
width: min(78vw, 24rem);
}
.sign-off__tile {
margin: 0 0 -6vw;
}
.sign-off__tape {
left: 62%;
top: 44%;
width: 12vw;
height: 26vw;
}
.sign-off__lid {
font-size: min(30vw, 9.2rem);
}
.sign-off__title {
font-size: min(21vw, 6.4rem);
}
.sign-off__links {
display: grid;
grid-template-columns: 1fr 1fr;
justify-items: center;
}
.sign-off__arena {
height: 30rem;
}
/* the pile before it falls, and for people who asked for no motion */
.sign-off__puck:nth-of-type(1) {
--x: 2%;
}
.sign-off__puck:nth-of-type(2) {
--x: 34%;
}
.sign-off__puck:nth-of-type(3) {
--x: 66%;
}
.sign-off__puck:nth-of-type(4) {
--x: 19%;
}
.sign-off__social {
--lift: 1.75;
}
.sign-off__social:nth-of-type(1) {
--x: 60%;
}
.sign-off__social:nth-of-type(2) {
--x: 78%;
--lift: 1.1;
}
.sign-off__social:nth-of-type(3) {
--x: 52%;
--lift: 0.92;
}
.sign-off__shout {
justify-content: flex-start;
padding-top: 1rem;
font-size: 26vw;
}
}
@media (prefers-reduced-motion: reduce) {
.sign-off__tile,
.sign-off__call,
.sign-off__button,
.sign-off__roll,
.sign-off__link::after {
transition: none;
}
}
</style>
<script>
(() => {
const GRAVITY = 2600;
const BOUNCE = 0.42;
const GRIP = 0.985;
const RUB = 0.93;
const STILL_PIXELS = 0.25;
const STILL_FRAMES = 40;
const DRAG_SLOP = 6;
const calm = matchMedia('(prefers-reduced-motion: reduce)');
const setUp = (arena) => {
const bodies = [...arena.querySelectorAll('.sign-off__body')].map((element) => ({ element, x: 0, y: 0, vx: 0, vy: 0, turn: 0, radius: 0 }));
let width = 0;
let height = 0;
let lastTime = 0;
let running = false;
let held = null;
let stillFrames = 0;
const measure = () => {
width = arena.clientWidth;
height = arena.clientHeight;
bodies.forEach((body) => (body.radius = body.element.offsetWidth / 2));
};
const dropFromAbove = () => {
bodies.forEach((body, index) => {
body.x = width * (0.14 + 0.72 * ((index * 0.37) % 1));
body.y = -body.radius - index * body.radius * 1.5;
body.vx = (index % 2 ? -1 : 1) * (60 + index * 35);
body.vy = 0;
});
};
const keepInside = (body) => {
if (body.x < body.radius) {
body.x = body.radius;
body.vx = Math.abs(body.vx) * BOUNCE;
}
if (body.x > width - body.radius) {
body.x = width - body.radius;
body.vx = -Math.abs(body.vx) * BOUNCE;
}
if (body.y > height - body.radius) {
body.y = height - body.radius;
body.vy = -Math.abs(body.vy) * BOUNCE;
body.vx *= GRIP;
}
};
const pushApart = (first, second) => {
const dx = second.x - first.x;
const dy = second.y - first.y;
const gap = Math.hypot(dx, dy) || 1;
const overlap = first.radius + second.radius - gap;
if (overlap <= 0) return;
const nx = dx / gap;
const ny = dy / gap;
const firstShare = first === held ? 0 : second === held ? 1 : 0.5;
first.x -= nx * overlap * firstShare;
first.y -= ny * overlap * firstShare;
second.x += nx * overlap * (1 - firstShare);
second.y += ny * overlap * (1 - firstShare);
first.vx *= RUB;
second.vx *= RUB;
const closing = (second.vx - first.vx) * nx + (second.vy - first.vy) * ny;
if (closing >= 0) return;
const kick = (-(1 + BOUNCE) * closing) / 2;
first.vx -= kick * nx;
first.vy -= kick * ny;
second.vx += kick * nx;
second.vy += kick * ny;
};
const step = (seconds) => {
bodies.forEach((body) => {
if (body === held) return;
body.vy += GRAVITY * seconds;
body.x += body.vx * seconds;
body.y += body.vy * seconds;
body.turn += (body.vx / body.radius) * seconds;
});
for (let pass = 0; pass < 4; pass += 1) {
bodies.forEach((first, index) => bodies.slice(index + 1).forEach((second) => pushApart(first, second)));
bodies.forEach(keepInside);
}
};
const paint = () => {
bodies.forEach((body) => {
body.element.style.transform = `translate(${body.x - body.radius}px, ${body.y - body.radius}px) rotate(${body.turn}rad)`;
});
};
const frame = (time) => {
const seconds = Math.min(0.032, (time - lastTime) / 1000 || 0.016);
const before = bodies.map((body) => [body.x, body.y]);
lastTime = time;
step(seconds / 2);
step(seconds / 2);
paint();
const moved = Math.max(...bodies.map((body, index) => Math.hypot(body.x - before[index][0], body.y - before[index][1])));
stillFrames = held || moved > STILL_PIXELS ? 0 : stillFrames + 1;
running = stillFrames < STILL_FRAMES;
if (running) requestAnimationFrame(frame);
};
const wake = () => {
stillFrames = 0;
if (running) return;
running = true;
lastTime = performance.now();
requestAnimationFrame(frame);
};
const letPeopleThrow = (body) => {
let moved = 0;
let lastMove = 0;
const pointerIn = (event) => {
const box = arena.getBoundingClientRect();
return { x: event.clientX - box.left, y: event.clientY - box.top };
};
body.element.addEventListener('pointerdown', (event) => {
held = body;
moved = 0;
lastMove = event.timeStamp;
body.element.setPointerCapture(event.pointerId);
body.vx = body.vy = 0;
wake();
});
body.element.addEventListener('pointermove', (event) => {
if (held !== body) return;
const point = pointerIn(event);
const seconds = Math.max(0.008, (event.timeStamp - lastMove) / 1000);
body.vx = (point.x - body.x) / seconds;
body.vy = (point.y - body.y) / seconds;
moved += Math.hypot(point.x - body.x, point.y - body.y);
body.x = point.x;
body.y = point.y;
lastMove = event.timeStamp;
});
const release = () => {
if (held === body) held = null;
};
body.element.addEventListener('pointerup', release);
body.element.addEventListener('pointercancel', release);
body.element.addEventListener('click', (event) => moved > DRAG_SLOP && event.preventDefault());
body.element.addEventListener('dragstart', (event) => event.preventDefault());
};
const start = () => {
measure();
arena.classList.add('sign-off__arena--live');
dropFromAbove();
paint();
bodies.forEach(letPeopleThrow);
addEventListener('resize', () => {
measure();
wake();
});
wake();
};
if (calm.matches) return;
const watcher = new IntersectionObserver(
([entry]) => {
if (!entry.isIntersecting) return;
watcher.disconnect();
start();
},
{ threshold: 0.35 }
);
watcher.observe(arena);
};
document.querySelectorAll('.sign-off__arena').forEach(setUp);
})();
</script>
Style
- --lime #b6fe00
- --forest #034102
- --tangerine #ff7e00
- --paper #f4f2ec
- --kraft #c69a6b
- --kraft-light #dcb88d
- --note #ffe14d
- --tape #dccf9f
- --pine #013900
- --ink #16110a
- --kraft-ink #754402
- --shade rgba(22, 17, 10, 0.3)
- --sun #fcd805
- --coral #ff7b5f
- --sky #50cbff
- --iris #7673ec
- --grape #4b2d9b
- --candy #ff4fa3
Type
- Sofia Sans Condensed (800, 900) for headlines, tags, sticker lettering, stands in for a licensed geometric condensed extra bold in the Futura family
- Inter Tight for running text and small print, stands in for the same free face, used as is
- Nothing You Could Do for pen notes in the margins, stands in for the same free handwriting face, used as is
Motion
- Headline letters rise one after another on load, each from a tilt, 0.68 s with an overshoot spring (cubic-bezier 0.34, 1.56, 0.64, 1) and 28 ms between letters; a hovered letter hops.
- The hero sticker drops in with a spin, then rolls and sinks as the hero scrolls away.
- The menu is a paper tab: a click pulls the sheet down in 0.45 s with the same spring, rows follow 70 ms apart, and a hovered row grows a small sticker on its left in 0.22 s.
- Collage pieces drift at different speeds while the board scrolls past; the kraft card prints its sentence word by word when it comes into view.
- The ribbon text runs along a wave without stopping, and scrolling pushes it faster or backwards; small stickers roll along the same path.
- Picking a flavour rolls the big sticker out to the left in 0.32 s and a new one in from the right in 0.65 s, while the stage colour changes over 0.75 s and the giant word is set again letter by letter.
- One section pins to the screen and turns vertical scroll into a sideways slide of three giant words; stickers on them drift at their own speeds and arrows draw themselves.
- Footer stickers fall into a pile with gravity and bounce off each other; they can be grabbed and thrown. Footer links roll to a second colour on hover.
- With reduced motion everything is laid out in its final place: no pinning (the giant words scroll sideways by hand), no falling, no running ribbon.
Rules
- Two papers carry the page: acid lime and deep forest green, both with a crumpled texture; tangerine, yellow, sky, coral and iris appear only as stages and stickers.
- Sections never meet on a straight line: each sheet ends in a wide downward curve that bulges into the next colour.
- Display type is fat condensed caps set very tight (line height around 0.78), lines tilted a few degrees against each other and letters slightly uneven, as if cut out by hand.
- Type is allowed to be bigger than the screen; pictures and stickers sit on top of the letters, never beside them.
- The round lid sticker is the recurring unit: coloured rim, pale face, two-line name, small print on an arc. It works as logo, bullet, button and toy.
- Pictures are squircle tiles with a hard offset shadow and a strip of masking tape; nothing has a soft blurred card shadow.
- Small labels are yellow or green chips with a dotted grip on the left, set at a slight angle.
- Handwritten notes with a thin corner mark comment on the big type, lowercase, always tilted.
- Nothing is perfectly straight: every sticker, tile, chip and note is rotated between 2 and 15 degrees.
base.css
@import url("https://fonts.googleapis.com/css2?family=Sofia+Sans+Condensed:wght@700;800;900&family=Inter+Tight:wght@400;500;600;700&family=Nothing+You+Could+Do&display=swap");
:root {
/* surfaces */
--lime: #b6fe00; /* loud paper, the main surface */
--forest: #034102; /* deep paper, hero floor and footer */
--tangerine: #ff7e00; /* showcase stage */
--paper: #f4f2ec; /* menu sheet, pattern cards, lid faces */
--kraft: #c69a6b; /* kraft card */
--kraft-light: #dcb88d; /* kraft strip, parcel tape */
--note: #ffe14d; /* sticky note */
--tape: #dccf9f; /* masking tape strips */
/* ink */
--pine: #013900; /* display type on lime and paper */
--ink: #16110a; /* lid lettering, small print */
--kraft-ink: #754402; /* type printed on kraft */
--shade: rgba(22, 17, 10, 0.3); /* every drop shadow */
/* sticker colours */
--sun: #fcd805; /* tags, giant type on tangerine */
--coral: #ff7b5f; /* sticker and stage colour */
--sky: #50cbff; /* sticker and stage colour */
--iris: #7673ec; /* sticker and picture tile colour */
--grape: #4b2d9b; /* picture tile colour */
--candy: #ff4fa3; /* gingham card */
/* type */
--font-display: "Sofia Sans Condensed", "Arial Narrow", sans-serif; /* fat condensed caps */
--font-body: "Inter Tight", system-ui, sans-serif; /* small running text */
--font-hand: "Nothing You Could Do", cursive; /* pen notes in the margins */
--size-giant: clamp(21rem, 45vw, 43rem); /* one word wider than the screen */
--size-hero: clamp(5.4rem, 23.5vw, 21rem); /* hero headline */
--size-h2: clamp(2.6rem, 6.2vw, 5.6rem); /* section headline */
--size-h3: clamp(1.5rem, 2.8vw, 2.6rem); /* kickers, footer links */
--size-tag: 0.95rem; /* chips and tab labels */
--size-body: 1rem; /* running text */
--size-hand: clamp(0.95rem, 1.25vw, 1.15rem); /* pen notes */
--tight: 0.82; /* line height of stacked display lines */
/* shape */
--gutter: clamp(1rem, 2.2vw, 2rem); /* page side padding */
--curve-depth: 10.5vw; /* how deep one sheet bulges into the next */
--radius-squircle: 23%; /* picture tiles and call to action blocks */
--radius-chip: 0.4rem; /* tags */
--radius-pill: 999px; /* round buttons, lids */
--lid-rim: 0.085em; /* width of the coloured rim on a lid sticker */
/* motion */
--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* overshoot: stickers, tabs, letters */
--ease-out: cubic-bezier(0.22, 1, 0.36, 1); /* long settles: stage colour, sheets */
--ease-snap: cubic-bezier(0.16, 0.84, 0.3, 1); /* small quick reveals */
--time-pop: 0.45s; /* spring moves */
--time-quick: 0.22s; /* hover reveals */
--time-slow: 0.75s; /* stage changes */
--stagger: 28ms; /* delay between letters */
/* crumpled paper, laid over every flat colour with soft-light */
--crease-size: 900px; /* tile size of the paper texture */
--crease: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.003 0.004' numOctaves='5' seed='4' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='white' surfaceScale='30' diffuseConstant='0.555'%3E%3CfeDistantLight azimuth='225' elevation='60'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E"); /* paper texture image */
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
background: var(--lime);
color: var(--pine);
font-family: var(--font-body);
font-size: var(--size-body);
line-height: 1.45;
overflow-x: clip;
}
For your agent
Use the kitbash MCP server at https://kitbash.me/mcp. Call get_pack("sticker-shock"), then get_component for the parts you need, and build my site in that style: keep its tokens and rules, replace the placeholder copy with mine.
How to connect