
Fior di latte
milk, cream, a pinch of salt 1/8
내 컬렉션
컬렉션에 넣은 Taste는 저장도 돼요.
프롬프트와 스킬이 담긴 폴더를 다운로드해요. 그 폴더에서 터미널을 열고 명령어를 실행한 뒤 start를 입력하세요.
프롬프트와 스킬이 담긴 폴더를 다운로드해요. 그 폴더에서 터미널을 열고 명령어를 실행한 뒤 start를 입력하세요.프롬프트를 복사하고 도구를 열어요. 첫 메시지에 붙여 넣으세요.다운로드됨 — 열고 start를 입력하세요복사됨 — 붙여 넣으세요<reference-prompt> # Summary Card stack, as an Effect: a pile of cards (a menu, a line-up, a day's programme, tour dates, customer slips) where only the top card is read and the next three show beneath it as a fanned edge. The hand grabs the top card and throws it sideways — it tilts as it follows the finger, and once thrown it slides back under the pile while the next card settles on top; let go short of the throw and it springs back with a little overshoot. Next lifts the top card away and fades it; Back brings the last card down onto the pile. While on screen and untouched it deals itself every four seconds, with a pause button. Our landings wear it six ways: Ore Piccole's gelato line-up (deep blue ground, condensed capitals on flavour colours), Shellwright's cannoli fillings, Leafwright's mille-feuille slices, Delfina & Oskar's wedding day as lift tickets, Model Box's tour passes, P
Lovable이나 Bolt를 쓰나요? 원본 프롬프트를 복사하세요
내 것으로 만들기
Claude Code
Codex
Cursor
Lovable
v0
Bolt
타이포그래피
이미 랜딩 페이지 6개에 쓰였어요

milk, cream, a pinch of salt 1/8
toasted and ground here 2/8
churned tonight 3/8
a sorbet, no milk 4/8
churned tonight 5/8
churned tonight 6/8

chocolate poured into the churn 7/8
a sorbet, no milk 8/8
손으로 직접 해 보세요 · 바꾼 내용이 여기에 바로 보여요
이펙트 · All You Need Is Taste · 그저께
The hand grabs the top card and throws it sideways — it tilts as it follows the finger, and once thrown it slides back under the pile while the next card settles on top; let go short of the throw and it springs back with a little overshoot. Next lifts the top card away and fades it; Back brings the last card down onto the pile. While on screen and untouched it deals itself every four seconds, with a pause button. Our landings wear it six ways: Ore Piccole's gelato line-up (deep blue ground, condensed capitals on flavour colours), Shellwright's cannoli fillings, Leafwright's mille-feuille slices, Delfina & Oskar's wedding day as lift tickets, Model Box's tour passes, Pask & Daughter's want slips. It is not a board of notes (Proof Cards): one card at a time, thrown, not hovered.
Ag
Special Gothic Expanded One + Schibsted Grotesk + League Gothic + Bodoni Moda
The deck takes its look from the cards: flat colour per card, one display face for the name, a small text face for the line and count. On its page it wears Ore Piccole's night blue.
mount(root, options) returns destroy; destroy.update({ … }) re-tunes a live mount — interval, throw distance, tilt, depth, scale step, visible count, timings, autoplay and every colour, size and face; new cards, colours or labels rebuild the deck. destroy.next() / destroy.prev() move it from code; the root dispatches card-stack:change with { index }. Reduced motion: no autoplay and no transitions — moves swap the top card at once.
The root is the ground (--card-stack-ground #2433c8) with the deck centred, 360px wide (--card-stack-width, never wider than the root, 300px on a phone), cards 5 / 7, radius 6px, padding 28px, no outline, shadow 0 18px 40px −12px rgb(0 0 0 / .5). Each card has its own colour (data-color: #14183f, #9db36b, #c9822e, #e8dc5a, #6b1030, #f4efe3, #2b2522, #e5562e) and text colour (#fff7ea on dark, #120e1f on light). The name is League Gothic in capitals at 30% of the card's width (a container unit) — 62% of that on a card with a picture, which bleeds to the edges over the top 54%; the line and its "3/8" count in Schibsted Grotesk 15px at the foot. Three round 48px buttons under the deck (Back, Next, pause) with a 1px outline at 60% of the button colour, filled on hover. Other finishes: Shellwright #e4eaec ground, alternating white and #e9eef0 cards, Gabriela names, navy #1d2a5b; Leafwright linen #f2e4b5, pastel cards with a 1px ink hairline, Bodoni Moda 900; Delfina & Oskar #dde4e3, 5 / 6 cards, radius 14px, 2px ink outline, Special Gothic Expanded One on larch, geranium, pink, teal, gentian and lilac; Model Box on the bench brown #6b4230 with gel-coloured passes in Tilt Warp and light buttons; Pask & Daughter #c3d9d0, 10 / 11 slips in Hepta Slab.
네. 라이브 미리보기, 디자인 명세, 이 페이지에서 가져갈 수 있는 모든 것이 무료예요.
전체 화면으로 열 수 있는 라이브 미리보기, 디자인 명세 — 팔레트, 타이포, 레이아웃, 모든 컴포넌트를 에이전트를 위해 정리 및 옵션까지 갖춘, 붙여 넣기만 하면 되는 독립형 코드 패키지.
“에이전트용으로 복사”를 누르고 그 문장을 Claude Code, Cursor, Codex, Lovable에 붙여 넣으세요. 에이전트가 디자인 명세를 읽고 내 프로젝트에 만들어요. 작동 방식은 그대로 두고 브랜드 — 이름, 문구, 색, 타이포, 사진 — 만 내 것으로 바꿔요.
Special Gothic Expanded One Schibsted Grotesk League Gothic Bodoni Moda. 각 패밀리의 라이선스와 구할 수 있는 곳은 이 페이지에 있어요.
파일 네 개, 의존성 없음. 루트 클래스 하나로 범위가 한정되고, 토큰으로 테마를 바꿀 수 있어요.
<section class="ayt-card-stack" data-element="card-stack" aria-roledescription="deck of cards" aria-label="The line-up, one card at a time">
<div class="ayt-card-stack__deck" data-part="deck" data-slot="cards" tabindex="0">
<article class="ayt-card-stack__card ayt-card-stack__card--pic" data-part="card" data-color="#14183F" data-text="#FFF7EA" aria-label="Fior di latte, 1 of 8">
<div class="ayt-card-stack__pic"><img src="/previews/vendor/ore-piccole-late-gelato-bar-landing-img-ridges-macro.webp" alt="" draggable="false" loading="lazy" decoding="async"></div>
<h3 class="ayt-card-stack__name">Fior di latte</h3>
<p class="ayt-card-stack__line"><span class="ayt-card-stack__line-text">milk, cream, a pinch of salt</span> <span class="ayt-card-stack__n">1/8</span></p>
</article>
<article class="ayt-card-stack__card" data-part="card" data-color="#9DB36B" data-text="#120E1F" aria-label="Pistachio, 2 of 8">
<h3 class="ayt-card-stack__name">Pistachio</h3>
<p class="ayt-card-stack__line"><span class="ayt-card-stack__line-text">toasted and ground here</span> <span class="ayt-card-stack__n">2/8</span></p>
</article>
<article class="ayt-card-stack__card" data-part="card" data-color="#C9822E" data-text="#120E1F" aria-label="Burnt honey, 3 of 8">
<h3 class="ayt-card-stack__name">Burnt honey</h3>
<p class="ayt-card-stack__line"><span class="ayt-card-stack__line-text">churned tonight</span> <span class="ayt-card-stack__n">3/8</span></p>
</article>
<article class="ayt-card-stack__card" data-part="card" data-color="#E8DC5A" data-text="#120E1F" aria-label="Lemon & basil, 4 of 8">
<h3 class="ayt-card-stack__name">Lemon & basil</h3>
<p class="ayt-card-stack__line"><span class="ayt-card-stack__line-text">a sorbet, no milk</span> <span class="ayt-card-stack__n">4/8</span></p>
</article>
<article class="ayt-card-stack__card" data-part="card" data-color="#6B1030" data-text="#FFF7EA" aria-label="Black cherry, 5 of 8">
<h3 class="ayt-card-stack__name">Black cherry</h3>
<p class="ayt-card-stack__line"><span class="ayt-card-stack__line-text">churned tonight</span> <span class="ayt-card-stack__n">5/8</span></p>
</article>
<article class="ayt-card-stack__card" data-part="card" data-color="#F4EFE3" data-text="#120E1F" aria-label="Coconut milk, 6 of 8">
<h3 class="ayt-card-stack__name">Coconut milk</h3>
<p class="ayt-card-stack__line"><span class="ayt-card-stack__line-text">churned tonight</span> <span class="ayt-card-stack__n">6/8</span></p>
</article>
<article class="ayt-card-stack__card ayt-card-stack__card--pic" data-part="card" data-color="#2B2522" data-text="#FFF7EA" aria-label="Stracciatella, 7 of 8">
<div class="ayt-card-stack__pic"><img src="/previews/vendor/ore-piccole-late-gelato-bar-landing-clip-stracciatella-topdown-poster.webp" alt="" draggable="false" loading="lazy" decoding="async"></div>
<h3 class="ayt-card-stack__name">Stracciatella</h3>
<p class="ayt-card-stack__line"><span class="ayt-card-stack__line-text">chocolate poured into the churn</span> <span class="ayt-card-stack__n">7/8</span></p>
</article>
<article class="ayt-card-stack__card" data-part="card" data-color="#E5562E" data-text="#120E1F" aria-label="Blood orange, 8 of 8">
<h3 class="ayt-card-stack__name">Blood orange</h3>
<p class="ayt-card-stack__line"><span class="ayt-card-stack__line-text">a sorbet, no milk</span> <span class="ayt-card-stack__n">8/8</span></p>
</article>
</div>
<div class="ayt-card-stack__controls" data-part="controls"></div>
</section>/* Card stack — a deck of cards you throw aside, as one self-owned root.
Every colour, face and size is a token on the root; element.js writes them
from its options, and each card's own colours from its data-color/data-text. */
.ayt-card-stack {
--card-stack-ground: #2433c8;
--card-stack-width: 360px;
--card-stack-aspect: 5 / 7;
--card-stack-radius: 6px;
--card-stack-pad: 28px;
--card-stack-ink: #fff7ea;
--card-stack-buttons: var(--card-stack-ink);
--card-stack-text: #fff7ea;
--card-stack-line: 0px;
--card-stack-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.5);
--card-stack-face: "League Gothic", "Arial Narrow", sans-serif;
--card-stack-font: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
--card-stack-name-size: 30;
--card-stack-name-case: uppercase;
--card-stack-name-weight: 400;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
padding: clamp(28px, 6vw, 72px) 16px;
background: var(--card-stack-ground);
color: var(--card-stack-buttons);
font-family: var(--card-stack-font);
}
.ayt-card-stack,
.ayt-card-stack *,
.ayt-card-stack *::before,
.ayt-card-stack *::after { box-sizing: border-box; }
.ayt-card-stack__deck {
position: relative;
width: min(var(--card-stack-width), 100%);
aspect-ratio: var(--card-stack-aspect);
margin-top: 24px; /* the room a card lifts into when it is dealt */
touch-action: pan-y;
user-select: none;
-webkit-user-select: none;
outline: none;
}
.ayt-card-stack__deck:focus-visible { outline: 2px solid var(--card-stack-ink); outline-offset: 10px; border-radius: var(--card-stack-radius); }
.ayt-card-stack__card {
position: absolute;
inset: 0;
container-type: inline-size;
overflow: hidden;
display: flex;
flex-direction: column;
gap: 10px;
padding: var(--card-stack-pad);
border-radius: var(--card-stack-radius);
border: var(--card-stack-line) solid var(--card-stack-ink);
background: var(--card-stack-card, #8f8f8c);
color: var(--card-stack-card-text, var(--card-stack-text));
box-shadow: var(--card-stack-shadow);
backface-visibility: hidden;
will-change: transform;
transform-origin: center bottom;
}
.ayt-card-stack__card[data-top] { cursor: grab; }
.ayt-card-stack__deck[data-dragging] .ayt-card-stack__card { cursor: grabbing; }
.ayt-card-stack__kicker {
margin: 0;
font-size: 13px;
font-weight: 600;
letter-spacing: .08em;
text-transform: uppercase;
opacity: .85;
}
.ayt-card-stack__pic {
flex: 0 0 54%;
margin: calc(-1 * var(--card-stack-pad)) calc(-1 * var(--card-stack-pad)) 6px;
overflow: hidden;
}
.ayt-card-stack__kicker + .ayt-card-stack__pic { margin-top: 0; margin-inline: 0; border-radius: 3px; }
.ayt-card-stack__pic img,
.ayt-card-stack__pic video {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
pointer-events: none;
-webkit-user-drag: none;
}
.ayt-card-stack__name {
margin: auto 0;
font-family: var(--card-stack-face);
font-size: calc(var(--card-stack-name-size) * 1cqi);
font-weight: var(--card-stack-name-weight);
line-height: .95;
text-transform: var(--card-stack-name-case);
text-wrap: balance;
overflow-wrap: anywhere;
}
.ayt-card-stack__card--pic .ayt-card-stack__name { margin: 0; font-size: calc(var(--card-stack-name-size) * .62cqi); }
.ayt-card-stack__line {
display: flex;
justify-content: space-between;
gap: 12px;
margin: auto 0 0;
font-size: 15px;
line-height: 1.35;
}
.ayt-card-stack__card--pic .ayt-card-stack__line { margin-top: auto; }
.ayt-card-stack__n { flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ayt-card-stack--no-count .ayt-card-stack__n { display: none; }
/* Previous, next and pause, built by element.js. */
.ayt-card-stack__controls {
display: flex;
align-items: center;
gap: 8px;
margin-top: 28px;
}
.ayt-card-stack__button {
display: inline-grid;
place-items: center;
width: 48px;
height: 48px;
padding: 0;
border: 1px solid color-mix(in srgb, var(--card-stack-buttons) 60%, transparent);
border-radius: 50%;
background: none;
color: var(--card-stack-buttons);
cursor: pointer;
touch-action: manipulation;
transition: background-color 180ms ease, color 180ms ease;
}
.ayt-card-stack__button svg {
width: 15px;
height: 15px;
fill: none;
stroke: currentColor;
stroke-width: 2.5;
stroke-linecap: round;
stroke-linejoin: round;
}
.ayt-card-stack__button svg .is-solid { fill: currentColor; stroke: none; }
@media (hover: hover) {
.ayt-card-stack__button:hover { background: var(--card-stack-buttons); color: var(--card-stack-ground); }
}
.ayt-card-stack__button:active { opacity: .6; }
.ayt-card-stack__button:focus-visible { outline: 2px solid var(--card-stack-buttons); outline-offset: 3px; }
@media (max-width: 480px) {
.ayt-card-stack { --card-stack-pad: 22px; }
.ayt-card-stack__deck { width: min(var(--card-stack-width), 300px, 100%); }
}
@media (prefers-reduced-motion: reduce) {
.ayt-card-stack__button { transition: none; }
}/*
* Card stack — a deck of cards you throw aside (an Effect, ADR-0026).
*
* The cards sit in one pile, the top four showing: each one under the top is
* 5px lower and 2% smaller, scaled from its bottom edge, so the pile reads as
* a fanned stack. Grab the top card and drag it sideways: it follows the hand,
* tilting up to 12° as it goes, while the cards under it rise toward the top
* slot. Let go past 140px and it is thrown — it slides back under the pile and
* the next card settles on top (700ms); short of that it springs back with an
* overshoot (450ms). A vertical drag is left to the page's scroll.
*
* Next lifts the top card 40px and fades it out while the pile moves up; Back
* brings the last card down onto the top. Every 4 s, while the deck is on
* screen and nobody holds it, it deals itself; the pause button stops that.
* Arrow keys on the focused deck do Back and Next.
*
* mount(root, options) → destroy; destroy.update(options) re-tunes it live.
*/
const B = 'ayt-card-stack';
const GREYS = ['#8f8f8c', '#b9b9b6', '#6b6b69', '#a4a4a1', '#7d7d7b', '#c9c9c6'];
const SETTLE_EASE = 'cubic-bezier(0.4, 0, 0.2, 1)';
const SPRING_EASE = 'cubic-bezier(0.175, 0.885, 0.32, 1.275)';
const INTENT = 5; // px a drag must travel before it picks an axis
const ICONS = {
prev: '<svg viewBox="0 0 16 16" aria-hidden="true"><polyline points="10 3.5 5.5 8 10 12.5"/></svg>',
next: '<svg viewBox="0 0 16 16" aria-hidden="true"><polyline points="6 3.5 10.5 8 6 12.5"/></svg>',
pause: '<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M5 3.5v9M11 3.5v9"/></svg>',
play: '<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 3.5 12.5 8l-8 4.5z" class="is-solid"/></svg>',
};
const DEFAULTS = {
autoplay: true, // deal itself every `interval` ms while on screen
interval: 4000, // ms between deals
drag: true, // the top card can be grabbed and thrown
throwPx: 140, // px of sideways drag past which a release throws the card
maxTilt: 12, // degrees the card turns at a drag of one card-width
depth: 5, // px each card under the top sits lower
scaleStep: 0.02, // and how much smaller
visible: 4, // cards of the pile that show
settle: 700, // ms for the pile to settle after a deal or a throw
lift: 40, // px the dealt card rises as it fades
spring: 450, // ms for a card let go short of a throw to spring back
count: true, // show the "3/8" on each card
cards: null, // [{ name, line, kicker, image, color, text }]: replaces the markup's cards
colors: null, // a colour per card, over the markup's data-color
labels: null, // { prev, next, pause, play } for the buttons
onChange: null, // ({ index }) after every change of top card
ground: null, width: null, aspect: null, radius: null, pad: null, ink: null, buttons: null, text: null,
line: null, shadow: null, face: null, font: null, nameSize: null, uppercase: null, nameWeight: null,
};
const TOKENS = {
ground: '--card-stack-ground', width: '--card-stack-width', aspect: '--card-stack-aspect',
radius: '--card-stack-radius', pad: '--card-stack-pad', ink: '--card-stack-ink', buttons: '--card-stack-buttons', text: '--card-stack-text',
line: '--card-stack-line', shadow: '--card-stack-shadow', face: '--card-stack-face', font: '--card-stack-font',
nameSize: '--card-stack-name-size', nameWeight: '--card-stack-name-weight',
};
const PX = new Set(['width', 'radius', 'pad', 'line']);
const esc = (s) => String(s ?? '').replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
function cardMarkup(c, i, n) {
return `<article class="${B}__card${c.image ? ` ${B}__card--pic` : ''}" data-part="card"${c.color ? ` data-color="${esc(c.color)}"` : ''}${c.text ? ` data-text="${esc(c.text)}"` : ''} aria-label="${esc(c.name)}, ${i + 1} of ${n}">`
+ (c.kicker ? `<p class="${B}__kicker">${esc(c.kicker)}</p>` : '')
+ (c.image ? `<div class="${B}__pic"><img src="${esc(c.image)}" alt="" draggable="false" loading="lazy" decoding="async"></div>` : '')
+ `<h3 class="${B}__name">${esc(c.name)}</h3>`
+ `<p class="${B}__line"><span class="${B}__line-text">${esc(c.line)}</span> <span class="${B}__n">${i + 1}/${n}</span></p></article>`;
}
export function mount(root, options = {}) {
let o = { ...DEFAULTS, ...options };
const deck = root.querySelector('[data-part="deck"]');
if (!deck) throw new Error('card-stack: no deck part');
const controls = root.querySelector('[data-part="controls"]');
const markup = deck.innerHTML;
const reducedQuery = matchMedia('(prefers-reduced-motion: reduce)');
const reduced = () => reducedQuery.matches;
function applyLook() {
for (const [key, token] of Object.entries(TOKENS)) {
let value = o[key];
if (PX.has(key) && typeof value === 'number') value = `${value}px`;
if (value === null || value === undefined || value === '') root.style.removeProperty(token);
else root.style.setProperty(token, String(value));
}
if (typeof o.uppercase === 'boolean') root.style.setProperty('--card-stack-name-case', o.uppercase ? 'uppercase' : 'none');
else root.style.removeProperty('--card-stack-name-case');
root.classList.toggle(`${B}--no-count`, o.count === false);
}
// Everything below is rebuilt when the cards change; `off` undoes it.
let off = [], api = null;
const on = (el, type, fn, opt) => { el.addEventListener(type, fn, opt); off.push(() => el.removeEventListener(type, fn, opt)); };
function setup() {
if (Array.isArray(o.cards) && o.cards.length > 1) deck.innerHTML = o.cards.map((c, i, all) => cardMarkup(c, i, all.length)).join('');
const cards = [...deck.querySelectorAll('[data-part="card"]')];
if (cards.length < 2) throw new Error('card-stack: a deck needs two cards or more');
const n = cards.length;
const labels = { prev: 'Previous', next: 'Next', pause: 'Pause', play: 'Play', ...(o.labels || {}) };
cards.forEach((c, i) => {
c.style.setProperty('--card-stack-card', o.colors?.[i] || c.dataset.color || GREYS[i % GREYS.length]);
if (c.dataset.text) c.style.setProperty('--card-stack-card-text', c.dataset.text);
});
// ── the buttons ─────────────────────────────────────────────────────────
const made = [];
if (controls) for (const kind of ['prev', 'next', 'toggle']) {
const b = document.createElement('button');
b.type = 'button';
b.className = `${B}__button`;
b.dataset.part = kind;
if (kind !== 'toggle') { b.innerHTML = ICONS[kind]; b.setAttribute('aria-label', labels[kind]); }
controls.append(b);
made.push(b);
}
const [btnPrev, btnNext, btnToggle] = made;
// ── the pile ────────────────────────────────────────────────────────────
let order = cards.map((_, i) => i);
let locked = false, userPaused = o.autoplay === false || reduced(), inView = false, timer = 0, unlock = 0, drag = null;
const slot = (p) => `translateY(${p * o.depth}px) scale(${1 - p * o.scaleStep})`;
const lifted = () => `translateY(${-o.lift}px) scale(0.95)`;
const settleT = () => `transform ${o.settle}ms ${SETTLE_EASE}`;
const leaveT = () => `transform ${o.settle * 5 / 7}ms ease-out, opacity ${o.settle * 4 / 7}ms ease-out`;
const put = (card, p, transition = 'none') => { card.style.transition = transition; card.style.transform = slot(p); };
const changed = () => {
root.dispatchEvent(new CustomEvent('card-stack:change', { detail: { index: order[0] } }));
o.onChange?.({ index: order[0] });
};
function layout() {
order.forEach((ci, p) => {
const c = cards[ci];
put(c, p);
c.style.opacity = '';
c.style.zIndex = String(n - p);
c.style.visibility = p < o.visible ? '' : 'hidden';
c.toggleAttribute('data-top', p === 0);
c.setAttribute('aria-hidden', String(p !== 0));
});
}
// Hold the pile while a move plays out, then lay it flat and announce it.
function after(fn) {
locked = true;
clearTimeout(unlock);
unlock = setTimeout(() => { fn?.(); locked = false; changed(); }, o.settle + 20);
}
function deal() {
if (locked) return;
if (reduced()) { order.push(order.shift()); layout(); return changed(); }
const top = cards[order[0]];
top.style.transition = leaveT();
top.style.transform = lifted();
top.style.opacity = '0';
for (let p = 1; p < n; p++) {
const c = cards[order[p]], to = p - 1;
c.style.zIndex = String(n - to);
if (p === o.visible) { // the card that comes into view fades in as it rises
c.style.transition = 'none';
c.style.opacity = '0';
c.style.visibility = '';
void c.offsetWidth;
c.style.transition = `${settleT()}, opacity ${o.settle * 5 / 7}ms ease-out`;
c.style.opacity = '1';
c.style.transform = slot(to);
} else {
put(c, to, settleT());
c.style.visibility = to < o.visible ? '' : 'hidden';
}
}
after(() => { order.push(order.shift()); layout(); });
}
function back() {
if (locked) return;
order.unshift(order.pop());
if (reduced()) { layout(); return changed(); }
const incoming = cards[order[0]];
incoming.style.transition = 'none';
incoming.style.visibility = '';
incoming.style.opacity = '0';
incoming.style.transform = lifted();
incoming.style.zIndex = String(n + 1);
void incoming.offsetWidth;
incoming.style.transition = leaveT();
incoming.style.opacity = '1';
incoming.style.transform = slot(0);
for (let p = 1; p < n; p++) {
const c = cards[order[p]];
put(c, p, settleT());
c.style.zIndex = String(n - p);
c.style.visibility = p < o.visible ? '' : 'hidden';
}
after(layout);
}
// A thrown card slides from where the hand left it to the back of the pile.
function throwTop() {
const top = cards[order[0]];
const rest = Math.min(n - 1, o.visible - 1);
const t = reduced() ? 'none' : settleT();
top.style.zIndex = '0';
put(top, rest, t);
for (let p = 1; p < n; p++) {
const c = cards[order[p]];
put(c, p - 1, t);
c.style.zIndex = String(n - p + 1);
c.style.visibility = p - 1 < o.visible ? '' : 'hidden';
}
if (reduced()) { order.push(order.shift()); layout(); return changed(); }
after(() => { order.push(order.shift()); layout(); });
}
function springBack() {
const t = reduced() ? 'none' : `transform ${o.spring}ms ${SPRING_EASE}`;
order.forEach((ci, p) => put(cards[ci], p, t));
}
function arm() {
clearTimeout(timer);
timer = 0;
if (userPaused || !inView || drag || document.hidden) return;
timer = setTimeout(function tick() { deal(); timer = setTimeout(tick, o.interval); }, o.interval);
}
function syncToggle() {
if (!btnToggle) return;
btnToggle.innerHTML = userPaused ? ICONS.play : ICONS.pause;
btnToggle.setAttribute('aria-label', userPaused ? labels.play : labels.pause);
btnToggle.setAttribute('aria-pressed', String(userPaused));
}
// ── the hand ────────────────────────────────────────────────────────────
const onDown = (e) => {
if (o.drag === false || locked || e.button > 0) return;
if (!cards[order[0]].contains(e.target)) return;
drag = { id: e.pointerId, x0: e.clientX, y0: e.clientY, dx: 0, dy: 0, axis: null };
cards[order[0]].style.transition = 'none';
clearTimeout(timer);
timer = 0;
};
const onMove = (e) => {
if (!drag || e.pointerId !== drag.id) return;
drag.dx = e.clientX - drag.x0;
drag.dy = e.clientY - drag.y0;
if (!drag.axis) {
if (Math.max(Math.abs(drag.dx), Math.abs(drag.dy)) <= INTENT) return;
drag.axis = Math.abs(drag.dx) > Math.abs(drag.dy) ? 'x' : 'y';
if (drag.axis === 'y') return release(false);
deck.setPointerCapture?.(e.pointerId);
deck.toggleAttribute('data-dragging', true);
}
if (e.cancelable) e.preventDefault();
const tilt = (drag.dx / deck.offsetWidth) * o.maxTilt;
cards[order[0]].style.transform = `translate(${drag.dx}px, ${drag.dy}px) rotate(${tilt}deg)`;
const k = Math.min(Math.abs(drag.dx) / o.throwPx, 1); // the pile rises as the throw nears
for (let p = 1; p < n; p++) put(cards[order[p]], Math.max(0, p - k));
};
function release(judge = true) {
if (!drag) return;
const thrown = judge && drag.axis === 'x' && Math.abs(drag.dx) > o.throwPx;
drag = null;
deck.removeAttribute('data-dragging');
if (thrown) throwTop(); else springBack();
arm();
}
const onUp = (e) => { if (drag && e.pointerId === drag.id) release(true); };
const onCancel = (e) => { if (drag && e.pointerId === drag.id) release(false); };
const onKey = (e) => {
if (e.key === 'ArrowRight') { e.preventDefault(); deal(); arm(); }
else if (e.key === 'ArrowLeft') { e.preventDefault(); back(); arm(); }
};
on(deck, 'pointerdown', onDown);
on(deck, 'dragstart', (e) => e.preventDefault());
on(deck, 'keydown', onKey);
// Caught anywhere: a throw ends wherever the hand is.
on(window, 'pointermove', onMove, { passive: false });
on(window, 'pointerup', onUp);
on(window, 'pointercancel', onCancel);
if (btnPrev) on(btnPrev, 'click', () => { back(); arm(); });
if (btnNext) on(btnNext, 'click', () => { deal(); arm(); });
if (btnToggle) on(btnToggle, 'click', () => { userPaused = !userPaused; syncToggle(); arm(); });
on(document, 'visibilitychange', arm);
on(reducedQuery, 'change', () => { if (reduced()) { userPaused = true; syncToggle(); arm(); } });
const io = new IntersectionObserver(([e]) => { inView = !!e?.isIntersecting; arm(); }, { rootMargin: '200px' });
io.observe(root);
layout();
syncToggle();
api = {
arm, layout, next: () => { deal(); arm(); }, prev: () => { back(); arm(); },
setAutoplay(v) { userPaused = v === false || reduced(); syncToggle(); arm(); },
};
off.push(() => {
clearTimeout(timer);
clearTimeout(unlock);
io.disconnect();
made.forEach((b) => b.remove());
deck.removeAttribute('data-dragging');
});
}
function teardown() {
off.forEach((fn) => fn());
off = [];
api = null;
}
applyLook();
setup();
function destroy() {
teardown();
deck.innerHTML = markup;
for (const token of [...Object.values(TOKENS), '--card-stack-name-case']) root.style.removeProperty(token);
root.classList.remove(`${B}--no-count`);
}
destroy.update = (next = {}) => {
const rebuild = ['cards', 'colors', 'labels'].some((k) => k in next && next[k] !== o[k]);
const autoplay = 'autoplay' in next && next.autoplay !== o.autoplay;
o = { ...o, ...next };
applyLook();
if (rebuild) { teardown(); deck.innerHTML = markup; setup(); return; }
api?.layout(); // a new depth, scale or visible count shows at once
if (autoplay) api?.setAutoplay(o.autoplay); else api?.arm();
};
destroy.next = () => api?.next();
destroy.prev = () => api?.prev();
return destroy;
}{
"slug": "card-stack",
"name": "Card Stack",
"role": "interactive",
"summary": "A fanned pile of cards, the top four showing: grab the top card and throw it left or right and it slides back under the pile while the next one settles on top; let go too early and it springs back. Next and Back buttons, arrow keys, and a deal every four seconds while nobody holds it.",
"mechanic": "dom",
"interaction": [
"drag",
"click",
"keyboard",
"idle-autopilot"
],
"tokens": {
"--card-stack-ground": {
"default": "#2433c8",
"description": "The ground around the deck (`ground`)."
},
"--card-stack-width": {
"default": "360px",
"description": "Width of the deck, never wider than the root (`width`)."
},
"--card-stack-aspect": {
"default": "5 / 7",
"description": "Aspect ratio of a card (`aspect`)."
},
"--card-stack-radius": {
"default": "6px",
"description": "Corner radius of a card (`radius`)."
},
"--card-stack-pad": {
"default": "28px",
"description": "Padding inside a card; a picture bleeds through it (`pad`)."
},
"--card-stack-ink": {
"default": "#fff7ea",
"description": "A card's outline, when `line` is more than 0 (`ink`)."
},
"--card-stack-buttons": {
"default": "var(--card-stack-ink)",
"description": "The Back, Next and pause buttons (`buttons`)."
},
"--card-stack-text": {
"default": "#fff7ea",
"description": "Words on a card that has no data-text of its own (`text`)."
},
"--card-stack-line": {
"default": "0px",
"description": "Width of a card's outline (`line`)."
},
"--card-stack-shadow": {
"default": "0 18px 40px -12px rgb(0 0 0 / 0.5)",
"description": "Each card's shadow (`shadow`)."
},
"--card-stack-face": {
"default": "\"League Gothic\", \"Arial Narrow\", sans-serif",
"description": "Face of a card's name (`face`)."
},
"--card-stack-font": {
"default": "\"Schibsted Grotesk\", ui-sans-serif, system-ui, sans-serif",
"description": "Face of everything else (`font`)."
},
"--card-stack-name-size": {
"default": "30",
"description": "A card's name, in % of the card's width (a container unit); 62% of it on a card with a picture (`nameSize`)."
},
"--card-stack-name-case": {
"default": "uppercase",
"description": "text-transform of a card's name (`uppercase`)."
},
"--card-stack-name-weight": {
"default": "400",
"description": "Weight of a card's name (`nameWeight`)."
}
},
"slots": {
"cards": {
"selector": "[data-slot=cards]",
"description": "The deck. Each <article data-part=card> may hold a kicker, a picture, a name, and a line with its count; data-color and data-text set its colours. Or pass `cards` and the deck is written from it."
}
},
"options": {
"autoplay": {
"type": "boolean",
"default": true,
"description": "Deal a card every `interval` ms while the deck is on screen and nobody holds it. Off under reduced motion; the pause button toggles it."
},
"interval": {
"type": "number",
"default": 4000,
"description": "Milliseconds between deals."
},
"drag": {
"type": "boolean",
"default": true,
"description": "The top card can be grabbed and thrown sideways. A vertical drag is left to the page's scroll."
},
"throwPx": {
"type": "number",
"default": 140,
"description": "Pixels of sideways drag past which a release throws the card to the back; short of it the card springs back."
},
"maxTilt": {
"type": "number",
"default": 12,
"description": "Degrees the dragged card turns at a drag of one card-width (either way)."
},
"depth": {
"type": "number",
"default": 5,
"description": "Pixels each card under the top one sits lower."
},
"scaleStep": {
"type": "number",
"default": 0.02,
"description": "How much smaller each card under the top one is, scaled from its bottom edge."
},
"visible": {
"type": "number",
"default": 4,
"description": "Cards of the pile that show."
},
"settle": {
"type": "number",
"default": 700,
"description": "Milliseconds for the pile to settle after a deal or a throw (the dealt card lifts over 5/7 of it and fades over 4/7)."
},
"lift": {
"type": "number",
"default": 40,
"description": "Pixels the dealt card rises as it fades."
},
"spring": {
"type": "number",
"default": 450,
"description": "Milliseconds for a card let go short of a throw to spring back, with an overshoot."
},
"count": {
"type": "boolean",
"default": true,
"description": "Show each card's \"3/8\"."
},
"cards": {
"type": "array",
"default": null,
"description": "[{ name, line, kicker, image, color, text }] — writes the deck from data instead of the markup's cards."
},
"colors": {
"type": "array",
"default": null,
"description": "A background colour per card, over the cards' data-color (grey steps when neither is given)."
},
"labels": {
"type": "object",
"default": null,
"description": "{ prev, next, pause, play }: the buttons' accessible names."
},
"onChange": {
"type": "function",
"default": null,
"description": "Called with { index } of the new top card after every move. The root also dispatches card-stack:change with the same detail."
},
"ground": {
"type": "string",
"default": null,
"description": "--card-stack-ground."
},
"width": {
"type": "number",
"default": null,
"description": "--card-stack-width, in px."
},
"aspect": {
"type": "string",
"default": null,
"description": "--card-stack-aspect, e.g. \"5 / 6\"."
},
"radius": {
"type": "number",
"default": null,
"description": "--card-stack-radius, in px."
},
"pad": {
"type": "number",
"default": null,
"description": "--card-stack-pad, in px."
},
"ink": {
"type": "string",
"default": null,
"description": "--card-stack-ink."
},
"buttons": {
"type": "string",
"default": null,
"description": "--card-stack-buttons."
},
"text": {
"type": "string",
"default": null,
"description": "--card-stack-text."
},
"line": {
"type": "number",
"default": null,
"description": "--card-stack-line, in px."
},
"shadow": {
"type": "string",
"default": null,
"description": "--card-stack-shadow."
},
"face": {
"type": "string",
"default": null,
"description": "--card-stack-face."
},
"font": {
"type": "string",
"default": null,
"description": "--card-stack-font."
},
"nameSize": {
"type": "number",
"default": null,
"description": "--card-stack-name-size."
},
"uppercase": {
"type": "boolean",
"default": null,
"description": "Set a card's name in capitals (null keeps the token)."
},
"nameWeight": {
"type": "number",
"default": null,
"description": "--card-stack-name-weight."
}
},
"update": "mount() returns destroy; destroy.update({ … }) re-tunes a live mount in place — every number, autoplay and every colour, size and face. New `cards`, `colors` or `labels` rebuild the deck under the same mount. destroy.next() and destroy.prev() move it from code.",
"presets": {
"ore-piccole-lineup": {
"landing": "ore-piccole-late-gelato-bar-landing",
"title": "Ore Piccole — The line-up",
"thumb": "/previews/vendor/ore-piccole-late-gelato-bar-landing-img-ridges-macro.webp",
"ground": "#2433c8",
"width": 360,
"aspect": "5 / 7",
"radius": 6,
"pad": 28,
"ink": "#fff7ea",
"buttons": "#fff7ea",
"text": "#fff7ea",
"line": 0,
"shadow": "0 18px 40px -12px rgb(0 0 0 / 0.5)",
"face": "\"League Gothic\", \"Arial Narrow\", sans-serif",
"font": "\"Schibsted Grotesk\", system-ui, sans-serif",
"nameSize": 30,
"uppercase": true,
"nameWeight": 400,
"count": true,
"cards": [
{
"name": "Fior di latte",
"line": "milk, cream, a pinch of salt",
"image": "/previews/vendor/ore-piccole-late-gelato-bar-landing-img-ridges-macro.webp",
"color": "#14183F",
"text": "#FFF7EA"
},
{
"name": "Pistachio",
"line": "toasted and ground here",
"color": "#9DB36B",
"text": "#120E1F"
},
{
"name": "Burnt honey",
"line": "churned tonight",
"color": "#C9822E",
"text": "#120E1F"
},
{
"name": "Lemon & basil",
"line": "a sorbet, no milk",
"color": "#E8DC5A",
"text": "#120E1F"
},
{
"name": "Black cherry",
"line": "churned tonight",
"color": "#6B1030",
"text": "#FFF7EA"
},
{
"name": "Coconut milk",
"line": "churned tonight",
"color": "#F4EFE3",
"text": "#120E1F"
},
{
"name": "Stracciatella",
"line": "chocolate poured into the churn",
"image": "/previews/vendor/ore-piccole-late-gelato-bar-landing-clip-stracciatella-topdown-poster.webp",
"color": "#2B2522",
"text": "#FFF7EA"
},
{
"name": "Blood orange",
"line": "a sorbet, no milk",
"color": "#E5562E",
"text": "#120E1F"
}
]
},
"shellwright-fillings": {
"landing": "shellwright-cannoli-counter-landing",
"title": "Shellwright — The fillings",
"thumb": "/previews/vendor/shellwright-cannoli-counter-landing-img-filling-pistachio.webp",
"ground": "#e4eaec",
"width": 380,
"aspect": "5 / 7",
"radius": 6,
"pad": 24,
"ink": "#1d2a5b",
"buttons": "#1d2a5b",
"text": "#141a2e",
"line": 0,
"shadow": "0 10px 24px rgba(20, 26, 46, .16)",
"face": "\"Gabriela\", Georgia, serif",
"font": "\"Commissioner\", \"Avenir Next\", sans-serif",
"nameSize": 19,
"uppercase": false,
"nameWeight": 400,
"count": false,
"colors": [
"#ffffff",
"#e9eef0",
"#ffffff",
"#e9eef0",
"#ffffff",
"#e9eef0",
"#ffffff",
"#e9eef0"
],
"cards": [
{
"kicker": "No. 1 · filled to order",
"name": "classic",
"line": "Sheep's ricotta, candied orange peel, a blistered shell.",
"image": "/previews/vendor/shellwright-cannoli-counter-landing-img-filling-classic.webp"
},
{
"kicker": "No. 2 · filled to order",
"name": "pistachio",
"line": "Pistachio cream, the end dipped in crushed nuts.",
"image": "/previews/vendor/shellwright-cannoli-counter-landing-img-filling-pistachio.webp"
},
{
"kicker": "No. 3 · filled to order",
"name": "dark chocolate chip",
"line": "Ricotta, dark chips, a shell lined with chocolate.",
"image": "/previews/vendor/shellwright-cannoli-counter-landing-img-filling-chocolate.webp"
},
{
"kicker": "No. 4 · filled to order",
"name": "lemon zest",
"line": "Lemon ricotta under a snow of fresh zest.",
"image": "/previews/vendor/shellwright-cannoli-counter-landing-img-filling-lemon.webp"
},
{
"kicker": "No. 5 · filled to order",
"name": "espresso ricotta",
"line": "Ricotta beaten with a cold shot of espresso.",
"image": "/previews/vendor/shellwright-cannoli-counter-landing-img-filling-espresso.webp"
},
{
"kicker": "No. 6 · filled to order",
"name": "hazelnut praline",
"line": "Praline ricotta and toasted hazelnuts on top.",
"image": "/previews/vendor/shellwright-cannoli-counter-landing-img-filling-hazelnut.webp"
},
{
"kicker": "No. 7 · filled to order",
"name": "amarena cherry",
"line": "Ricotta and one dark cherry in its own syrup.",
"image": "/previews/vendor/shellwright-cannoli-counter-landing-img-filling-amarena.webp"
},
{
"kicker": "No. 8 · filled to order",
"name": "blood orange & dark chocolate",
"line": "The season's filling, while the oranges last.",
"image": "/previews/vendor/shellwright-cannoli-counter-landing-img-filling-bloodorange.webp"
}
]
},
"leafwright-menu": {
"landing": "leafwright-mille-feuille-counter-landing",
"title": "Leafwright — The counter's slices",
"thumb": "/previews/vendor/leafwright-mille-feuille-counter-landing-img-photo-vanilla.webp",
"ground": "#f2e4b5",
"width": 360,
"aspect": "5 / 7",
"radius": 6,
"pad": 14,
"ink": "#17203b",
"buttons": "#17203b",
"text": "#17203b",
"line": 1,
"shadow": "16px 22px 4px rgb(23 32 59 / .22)",
"face": "\"Bodoni Moda\", Didot, Georgia, serif",
"font": "\"Funnel Sans\", system-ui, sans-serif",
"nameSize": 14,
"uppercase": false,
"nameWeight": 900,
"count": false,
"colors": [
"#f5ebc8",
"#e4e9f4",
"#f3e2cf",
"#edeae0",
"#e9dce6",
"#f6e2c4",
"#e3e6da",
"#ece3d6"
],
"cards": [
{
"name": "Vanilla",
"line": "white fondant, feathered in chocolate",
"image": "/previews/vendor/leafwright-mille-feuille-counter-landing-img-photo-vanilla.webp"
},
{
"name": "Hazelnut praline",
"image": "/previews/vendor/leafwright-mille-feuille-counter-landing-img-slice-hazelnut.webp"
},
{
"name": "Blackcurrant",
"image": "/previews/vendor/leafwright-mille-feuille-counter-landing-img-slice-blackcurrant.webp"
},
{
"name": "Earl Grey",
"image": "/previews/vendor/leafwright-mille-feuille-counter-landing-img-slice-earlgrey.webp"
},
{
"name": "Fig & honey",
"image": "/previews/vendor/leafwright-mille-feuille-counter-landing-img-slice-fig.webp"
},
{
"name": "Apricot & almond",
"image": "/previews/vendor/leafwright-mille-feuille-counter-landing-img-slice-apricot.webp"
},
{
"name": "Black sesame",
"image": "/previews/vendor/leafwright-mille-feuille-counter-landing-img-slice-sesame.webp"
},
{
"name": "Dark chocolate",
"line": "dark glaze, cocoa nibs, chocolate cream",
"image": "/previews/vendor/leafwright-mille-feuille-counter-landing-img-dark-chocolate.webp"
}
]
},
"delfina-oskar-day": {
"landing": "delfina-oskar-wedding-invitation-landing",
"title": "Delfina & Oskar — The day, in lift tickets",
"ground": "#dde4e3",
"width": 360,
"aspect": "5 / 6",
"radius": 14,
"pad": 28,
"ink": "#13201d",
"buttons": "#13201d",
"text": "#13201d",
"line": 2,
"shadow": "0 8px 18px rgb(19 32 29 / 0.16), 0 2px 4px rgb(19 32 29 / 0.12)",
"face": "\"Special Gothic Expanded One\", \"Arial Black\", sans-serif",
"font": "\"Anek Latin\", system-ui, sans-serif",
"nameSize": 10,
"uppercase": false,
"nameWeight": 400,
"count": false,
"colors": [
"#f2b42e",
"#ee5a3c",
"#f283ac",
"#33b196",
"#5a86ec",
"#b7a0ee"
],
"cards": [
{
"kicker": "10:40 · ticket 1 of 6",
"name": "First cabin up",
"line": "From Valdorna valley station. Cabins every ten minutes until noon; the ride is twelve minutes."
},
{
"kicker": "12:30 · ticket 2 of 6",
"name": "The vows",
"line": "On the meadow behind the hut, facing the ridge. Short, we promise."
},
{
"kicker": "13:30 · ticket 3 of 6",
"name": "Lunch at the long tables",
"line": "Polenta, trout from the lake and the hut’s apple cake. Tell us what you don’t eat."
},
{
"kicker": "16:00 · ticket 4 of 6",
"name": "Walk to the lake",
"line": "Forty minutes on a flat path, or a deckchair and a nap. Both count."
},
{
"kicker": "19:30 · ticket 5 of 6",
"name": "Dinner & dancing",
"line": "Inside by the stove. An accordion and a double bass play until they’re tired."
},
{
"kicker": "23:40 · ticket 6 of 6",
"name": "Last cabin down",
"line": "Sleep at the hut, or ride down with torches. We’ll count everyone."
}
]
},
"model-box-passes": {
"landing": "model-box-album-release-landing",
"title": "Model Box — Tour passes",
"ground": "#6b4230",
"width": 320,
"aspect": "5 / 7",
"radius": 12,
"pad": 24,
"ink": "#15211b",
"buttons": "#f3f4ee",
"text": "#15211b",
"line": 2,
"shadow": "0 6px 14px rgb(8 28 18 / .30), 0 1px 2px rgb(8 28 18 / .25)",
"face": "\"Tilt Warp\", \"Arial Black\", sans-serif",
"font": "\"Funnel Sans\", system-ui, sans-serif",
"nameSize": 17,
"uppercase": false,
"nameWeight": 400,
"count": true,
"colors": [
"#f2c14e",
"#f59ab8",
"#b9a8f6",
"#a3d6f2",
"#f49a4c",
"#f3f4ee"
],
"cards": [
{
"kicker": "Model Box tour · Thu 26 Nov",
"name": "Glasgow",
"line": "The Rope Loft"
},
{
"kicker": "Model Box tour · Sat 28 Nov",
"name": "Manchester",
"line": "The Paint Frame"
},
{
"kicker": "Model Box tour · Mon 30 Nov",
"name": "Leeds",
"line": "Loom Street Playhouse"
},
{
"kicker": "Model Box tour · Wed 2 Dec",
"name": "Bristol",
"line": "Harbour Scene Dock"
},
{
"kicker": "Model Box tour · Fri 4 Dec",
"name": "London",
"line": "The Fly Gallery"
},
{
"kicker": "Model Box tour · Sun 6 Dec",
"name": "Brighton",
"line": "The Pier Lamp Room"
}
]
},
"pask-want-slips": {
"landing": "pask-daughter-ironmonger-landing",
"title": "Pask & Daughter — The want slips",
"ground": "#c3d9d0",
"width": 360,
"aspect": "10 / 11",
"radius": 4,
"pad": 28,
"ink": "#15191a",
"buttons": "#15191a",
"text": "#15191a",
"line": 1,
"shadow": "0 2px 0 rgb(21 25 26 / .10), 0 8px 18px rgb(21 25 26 / .12)",
"face": "\"Hepta Slab\", Rockwell, Georgia, serif",
"font": "\"Hepta Slab\", Rockwell, Georgia, serif",
"nameSize": 7.5,
"uppercase": false,
"nameWeight": 600,
"count": false,
"colors": [
"#f4df86",
"#f1bdb6",
"#e4cba8",
"#bdd3ee",
"#d4c6ea"
],
"cards": [
{
"kicker": "Asked Monday · No. 0412",
"name": "“One brass screw, number 8, an inch and a half. Just the one.”",
"line": "Found in drawer 14 · Fixings"
},
{
"kicker": "Asked Tuesday · No. 0413",
"name": "“A fuse for my mum’s lamp. She says it’s the little red one.”",
"line": "Found in drawer 208 · Electrical"
},
{
"kicker": "Asked Wednesday · No. 0414",
"name": "“A hinge to match this one. It came off a wardrobe older than my house.”",
"line": "Found in drawer 377 · Hinges & locks"
},
{
"kicker": "Asked Thursday · No. 0415",
"name": "“Whatever stops the kitchen tap going drip, drip, drip.”",
"line": "Found in drawer 561 · Plumbing"
},
{
"kicker": "Asked Saturday · No. 0416",
"name": "“A spare for this key. It’s older than me, too.”",
"line": "Found in drawer 940 · Keys"
}
]
}
},
"controls": [
{
"option": "autoplay",
"type": "toggle"
},
{
"option": "interval",
"type": "range",
"min": 1500,
"max": 8000,
"step": 250
},
{
"option": "throwPx",
"type": "range",
"min": 40,
"max": 300,
"step": 10
},
{
"option": "maxTilt",
"type": "range",
"min": 0,
"max": 30,
"step": 1
},
{
"option": "depth",
"type": "range",
"min": 0,
"max": 24,
"step": 1
},
{
"option": "radius",
"type": "range",
"min": 0,
"max": 32,
"step": 1
},
{
"option": "ground",
"type": "color"
}
],
"assets": {},
"fonts": [
{
"family": "League Gothic",
"href": "https://fonts.googleapis.com/css2?family=League+Gothic&family=Schibsted+Grotesk:wght@500&display=swap"
},
{
"family": "Gabriela",
"href": "https://fonts.googleapis.com/css2?family=Gabriela&family=Commissioner:wght@400;500&display=swap"
},
{
"family": "Bodoni Moda",
"href": "https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,900&family=Funnel+Sans:wght@400;500&display=swap"
},
{
"family": "Special Gothic Expanded One",
"href": "https://fonts.googleapis.com/css2?family=Special+Gothic+Expanded+One&family=Anek+Latin:wght@400;600&display=swap"
},
{
"family": "Tilt Warp",
"href": "https://fonts.googleapis.com/css2?family=Tilt+Warp&display=swap"
},
{
"family": "Hepta Slab",
"href": "https://fonts.googleapis.com/css2?family=Hepta+Slab:wght@400;600&display=swap"
}
],
"size": {
"minHeight": "560px",
"fullBleed": true
},
"viewports": [
"desktop",
"mobile"
],
"ground": "#2433c8",
"reducedMotion": "No autoplay and no motion: Next, Back and a throw swap the top card at once, and the pile simply re-stacks.",
"a11y": "The deck is focusable and its cards are articles with headings; only the top card is exposed (the rest are aria-hidden), and each carries \"name, n of N\" as its label. Back, Next and pause are real buttons with names (`labels`); ArrowLeft and ArrowRight on the focused deck do Back and Next. Nothing needs a drag.",
"pairsWith": [
"menu",
"lineup",
"schedule",
"event",
"hospitality",
"playful"
],
"mood": [
"playful",
"tactile",
"bold",
"warm"
],
"source": "ore-piccole-late-gelato-bar-landing"
}