Testimonial rail
A sideways scroll-snap row of review cards, each with a star rating, a quote and a named author. Three across on desktop, one with the next peeking in on a phone. Use it when you have more reviews than fit in a grid. It scrolls by touch, trackpad or keyboard with no JavaScript, so add as many cards as you like.
<section class="blk-section blk-rail-band" aria-labelledby="blk-rail-title">
<div class="blk-container">
<header class="blk-head">
<div class="blk-head__main">
<h2 id="blk-rail-title">What clients say</h2>
<p>Reviews from people we have worked with.</p>
</div>
</header>
<ul class="blk-rail" tabindex="0" aria-label="Client reviews, scroll sideways">
<li class="blk-review">
<p class="blk-review__stars" role="img" aria-label="5 out of 5 stars">★★★★★</p>
<blockquote class="blk-review__quote"><p>Clear, calm and quick. We knew what was happening at every step and the result was exactly as promised.</p></blockquote>
<p class="blk-review__who"><strong>Jane Smith</strong><span>Director, Example Ltd</span></p>
</li>
<li class="blk-review">
<p class="blk-review__stars" role="img" aria-label="5 out of 5 stars">★★★★★</p>
<blockquote class="blk-review__quote"><p>I had been putting this off for months. It was sorted in a week and I did not have to chase anyone.</p></blockquote>
<p class="blk-review__who"><strong>Alex Doe</strong><span>Freelance designer</span></p>
</li>
<li class="blk-review">
<p class="blk-review__stars" role="img" aria-label="5 out of 5 stars">★★★★★</p>
<blockquote class="blk-review__quote"><p>Straight answers in plain language. I would recommend them to anyone in the same position.</p></blockquote>
<p class="blk-review__who"><strong>Sam Taylor</strong><span>Founder, Sample Studio</span></p>
</li>
<li class="blk-review">
<p class="blk-review__stars" role="img" aria-label="5 out of 5 stars">★★★★★</p>
<blockquote class="blk-review__quote"><p>Fast replies and no surprises on the price. Exactly what I wanted from a professional.</p></blockquote>
<p class="blk-review__who"><strong>Chris Lee</strong><span>Operations manager</span></p>
</li>
</ul>
</div>
</section>.blk-rail-band { background: var(--blk-band-a); }
.blk-rail { list-style: none; display: flex; gap: 20px; margin: 0 -24px; padding: 4px 24px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; scrollbar-color: var(--blk-accent) transparent; }
.blk-rail:focus-visible { outline: 3px solid var(--blk-accent); outline-offset: -3px; }
.blk-review { flex: 0 0 84%; max-width: 400px; scroll-snap-align: start; display: flex; flex-direction: column; padding: 28px; background: var(--blk-surface); border: 1px solid var(--blk-line); border-radius: var(--blk-radius); box-shadow: var(--blk-shadow); }
.blk-review__stars { color: var(--blk-highlight); font-size: 1.1rem; letter-spacing: 3px; line-height: 1; margin-bottom: 14px; }
.blk-review__quote { margin: 0 0 18px; flex: 1 0 auto; font-size: 1.02rem; font-style: italic; color: var(--blk-ink); }
.blk-review__who { display: flex; flex-direction: column; line-height: 1.35; font-size: .88rem; color: var(--blk-muted); }
.blk-review__who strong { font-family: var(--blk-font-heading); font-size: .98rem; color: var(--blk-accent); }
@media (min-width: 900px) {
.blk-rail { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
.blk-review { flex-basis: calc((100% - 40px) / 3); max-width: none; }
}How to customise it
- Use real, attributed reviews. Keep each quote to two or three sentences and give a name plus a role or place.
- Add or remove cards freely. Each card is one
<li>and the rail scrolls to fit. - The stars are text characters with an
aria-label. Change the label to match the score, for example4 out of 5 stars. - Switch the band with
--blk-band-bor--blk-band-c, or make the section white by removing the band class.
Tokens it reads
--blk-band-a--blk-surface--blk-line--blk-highlight--blk-accent--blk-ink--blk-muted--blk-radius--blk-shadow--blk-font-headingAdd the "Testimonial rail" block from Product Scope Blocks (https://resources.productscope.uk/blocks/blocks/testimonial-rail) to my page. Link https://resources.productscope.uk/blocks/blocks/kit/blocks.css once. Paste the HTML from https://resources.productscope.uk/blocks/blocks/kit/blocks/testimonial-rail.html and replace the placeholder text with my real content. Do not change the class names, add inline styles or add scripts. To change colours or fonts, override the --blk- variables in my own CSS. Do not invent facts, clients or numbers.