Quote rails
Five grey stars, a centred heading on a pool of white light and two rails of white quote cards drifting in opposite directions, faded at both edges. The key phrase in each quote is bold on pale mint. The script doubles each rail for a seamless loop; hover pauses it.
Part of the style
Quiet Instrument
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/quiet-instrument/quotes/figma.html?palette=cf22bf2d66fd9efb
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/quiet-instrument/quotes/figma.html?palette=cf22bf2d66fd9efb and pass that whole HTML document to the html_to_figma tool, so the part "Quote rails" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<style>
/* Goes after the pack's base.css */
:root {
--page: #000000;
--card: #000000;
--ink: #00dbe4;
--ink-mid: rgba(0, 219, 228, 0.7);
--ink-soft: #7c5762;
--ink-faint: #986977;
--chip: #000000;
--emboss: #020101;
--night: #13dee7;
--graphite: #009298;
--on-dark: #000000;
--mint-soft: #000000;
--face-paper: #000000;
--face-paper-ink: #009ea5;
--face-glacier: #0f0507;
--face-glacier-ink: #008a90;
--face-harbour-ink: #000000;
--chrome-light: #000000;
--chrome: #000000;
--chrome-dark: #381c25;
--lume: #0e545b;
--mint: #6a4103;
--aqua: #724808;
--lume-ice: #6c4408;
--mint-ink: #feb151;
--face-court: #4d2f05;
--green: #ac701d;
--deep: #1f8590;
--deep-dark: #3a8992;
--lume-lime: #6a4103;
--face-court-ink: #704607;
--face-harbour: #19939f;
}
</style>
<section class="quotes">
<svg class="quotes__sprite" aria-hidden="true" focusable="false">
<symbol id="quotes-star" viewBox="0 0 24 24">
<path d="M12 2.5l2.9 6.1 6.6.9-4.8 4.6 1.2 6.6L12 17.5l-5.9 3.2 1.2-6.6-4.8-4.6 6.6-.9Z" />
</symbol>
</svg>
<div class="quotes__stars" role="img" aria-label="Five stars">
<svg class="quotes__star" viewBox="0 0 24 24"><use href="#quotes-star" /></svg>
<svg class="quotes__star" viewBox="0 0 24 24"><use href="#quotes-star" /></svg>
<svg class="quotes__star" viewBox="0 0 24 24"><use href="#quotes-star" /></svg>
<svg class="quotes__star" viewBox="0 0 24 24"><use href="#quotes-star" /></svg>
<svg class="quotes__star" viewBox="0 0 24 24"><use href="#quotes-star" /></svg>
</div>
<h2 class="quotes__title">Players keep it open.</h2>
<div class="quotes__rail">
<ul class="quotes__track">
<li class="quotes__card">
<blockquote class="quotes__words">“I bought it to practise scales and ended up moving my desk so I can see it from the sofa. <mark class="quotes__mark">It is the calmest thing on my screen.</mark>”</blockquote>
<cite class="quotes__name">Ines Calder</cite>
</li>
<li class="quotes__card">
<blockquote class="quotes__words">“Twelve dollars for a metronome felt silly for about a minute. <mark class="quotes__mark">Then the needle started to swing</mark> and I stopped arguing.”</blockquote>
<cite class="quotes__name">Tomasz Brandt</cite>
</li>
<li class="quotes__card">
<blockquote class="quotes__words">“It does one thing and makes no noise about it. <mark class="quotes__mark">My students ask what it is before they ask about the piece.</mark>”</blockquote>
<cite class="quotes__name">Priya Venkataraman</cite>
</li>
<li class="quotes__card">
<blockquote class="quotes__words">“Finally a click I can leave running through a lesson. <mark class="quotes__mark">Silent mode is the feature I did not know I needed.</mark>”</blockquote>
<cite class="quotes__name">Joon Halvorsen</cite>
</li>
<li class="quotes__card">
<blockquote class="quotes__words">“Small, careful and a little obsessive. <mark class="quotes__mark">You can tell somebody lost sleep over every tick mark.</mark>”</blockquote>
<cite class="quotes__name">Marit Oyelaran</cite>
</li>
</ul>
</div>
<div class="quotes__rail quotes__rail--back">
<ul class="quotes__track">
<li class="quotes__card">
<blockquote class="quotes__words">“It stays on the second display all day, even when the guitar is in its case. <mark class="quotes__mark">It slows the whole room down.</mark>”</blockquote>
<cite class="quotes__name">Dario Feld</cite>
</li>
<li class="quotes__card">
<blockquote class="quotes__words">“Seven-eight with the accent where I want it, set in two taps. <mark class="quotes__mark">Nothing else got this right.</mark>”</blockquote>
<cite class="quotes__name">Anouk Sørlie</cite>
</li>
<li class="quotes__card">
<blockquote class="quotes__words">“The night face is why I practise after the kids are asleep. <mark class="quotes__mark">A soft orange glow and no excuses.</mark>”</blockquote>
<cite class="quotes__name">Bea Lindqvist</cite>
</li>
<li class="quotes__card">
<blockquote class="quotes__words">“I own four metronomes and an app for each of them. <mark class="quotes__mark">This is the only one I ever look at.</mark>”</blockquote>
<cite class="quotes__name">Kofi Adeyemi</cite>
</li>
<li class="quotes__card">
<blockquote class="quotes__words">“Installed in seconds, understood in less. <mark class="quotes__mark">The hard part is closing it.</mark>”</blockquote>
<cite class="quotes__name">Ruth Mäkelä</cite>
</li>
</ul>
</div>
</section>
<style>
.quotes {
--quotes-gap: clamp(0.75rem, 2.1vw, 1.875rem);
position: relative;
isolation: isolate;
padding: clamp(3rem, 7vw, 7rem) var(--edge) calc(var(--section-space) / 2);
text-align: center;
}
/* A pool of white light on the grey page, behind the heading. */
.quotes::before {
content: "";
position: absolute;
inset: 0 0 auto;
z-index: -1;
height: 30rem;
background: radial-gradient(45% 50% at 50% 42%, var(--card), transparent);
}
.quotes__sprite {
position: absolute;
width: 0;
height: 0;
}
.quotes__stars {
display: flex;
justify-content: center;
gap: 0.75rem;
margin-bottom: var(--space-m);
}
.quotes__star {
width: 1.5rem;
height: 1.5rem;
fill: var(--ink-faint);
stroke: var(--ink-faint);
stroke-width: 1.6;
stroke-linejoin: round;
}
.quotes__title {
margin: 0 0 clamp(2rem, 4.4vw, 3.5rem);
font-size: var(--head-m);
font-weight: 600;
line-height: 1.07;
letter-spacing: var(--tracking-head);
text-wrap: balance;
}
.quotes__rail {
overflow: hidden;
-webkit-mask-image: linear-gradient(90deg, transparent, var(--night) 9%, var(--night) 91%, transparent);
mask-image: linear-gradient(90deg, transparent, var(--night) 9%, var(--night) 91%, transparent);
}
.quotes__rail + .quotes__rail {
margin-top: var(--quotes-gap);
}
/* The trailing padding makes the doubled track exactly two equal halves, so -50% lands on a seam. */
.quotes__track {
display: flex;
gap: var(--quotes-gap);
width: max-content;
margin: 0;
padding: 0 var(--quotes-gap) 0 0;
list-style: none;
}
.quotes__track.is-looping {
animation: quotes-drift var(--drift) linear infinite;
animation-delay: calc(var(--drift) / -14);
}
.quotes__rail--back .quotes__track.is-looping {
animation-duration: calc(var(--drift) * 1.25);
animation-direction: reverse;
}
.quotes__rail:hover .quotes__track,
.quotes__rail:focus-within .quotes__track {
animation-play-state: paused;
}
.quotes__card {
display: flex;
flex: none;
flex-direction: column;
justify-content: space-between;
gap: var(--space-l);
width: clamp(16.5rem, 26vw, 21.875rem);
min-height: 15.5rem;
padding: clamp(1.25rem, 2.2vw, 1.875rem);
border-radius: var(--radius-card);
background: var(--card);
text-align: left;
}
.quotes__words {
margin: 0;
line-height: 1.56;
}
.quotes__mark {
padding: 0.16em 0.12em;
background: var(--mint-soft);
color: inherit;
font-weight: 600;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
.quotes__name {
font-size: var(--text-s);
font-style: normal;
font-weight: 600;
}
@keyframes quotes-drift {
to {
transform: translateX(-50%);
}
}
@media (max-width: 40rem) {
.quotes__card {
border-radius: var(--radius-window);
}
}
@media (prefers-reduced-motion: reduce) {
.quotes__rail {
overflow-x: auto;
-webkit-mask-image: none;
mask-image: none;
}
.quotes__track.is-looping {
animation: none;
}
.quotes__card.is-copy {
display: none;
}
}
</style>
<script>
(() => {
const LOOPING = "is-looping";
const COPY = "is-copy";
const silentCopyOf = (card) => {
const copy = card.cloneNode(true);
copy.classList.add(COPY);
copy.setAttribute("aria-hidden", "true");
return copy;
};
const loopTrack = (track) => {
track.append(...[...track.children].map(silentCopyOf));
track.classList.add(LOOPING);
};
document.querySelectorAll(".quotes").forEach((root) => root.querySelectorAll(".quotes__track").forEach(loopTrack));
})();
</script>