Testimonial wall
Three columns of customer quotes drifting up and down at different speeds; hover a column to slow it and read.
"use client";
import { useState, type CSSProperties } from "react";
import "./testimonial-wall.css";
type Quote = { text: string; name: string; role: string; tone: string };
const QUOTES: Quote[] = [
{
text: "We replaced three tools with this one and the team actually likes opening it on Mondays.",
name: "Amara Okafor",
role: "Head of Ops, Fieldnote",
tone: "#ff5a1f",
},
{
text: "Setup took an afternoon. The migration we'd budgeted a month for took four days.",
name: "Jonas Weber",
role: "CTO, Kitebase",
tone: "#2b35ff",
},
{
text: "The first product where our designers and engineers argue less, not more.",
name: "Priya Raman",
role: "Design lead, Parcel",
tone: "#d7ff3a",
},
{
text: "Support answered in eleven minutes. On a Sunday. I checked twice.",
name: "Lucas Moreau",
role: "Founder, Atelier Nord",
tone: "#0e0e10",
},
{
text: "Our weekly report used to take Sam half a day. Now it writes itself before standup.",
name: "Hana Sato",
role: "PM, Lumen Health",
tone: "#ff5a1f",
},
{
text: "Clean, fast, and it doesn't try to be everything. That restraint is the feature.",
name: "Diego Alvarez",
role: "Engineer, Northwind",
tone: "#2b35ff",
},
{
text: "We onboarded 40 people without a single training call.",
name: "Grace Lindqvist",
role: "People team, Moss & Co",
tone: "#d7ff3a",
},
{
text: "I've tried every alternative. This is the one I'd pay for with my own card.",
name: "Omar Haddad",
role: "Freelance designer",
tone: "#0e0e10",
},
{
text: "Pages load before my finger leaves the trackpad. It changed how often we check things.",
name: "Elena Rossi",
role: "Analyst, Brightside",
tone: "#ff5a1f",
},
];
const initials = (n: string) =>
n
.split(" ")
.map((p) => p[0])
.join("");
function Card({ q }: { q: Quote }) {
return (
<figure className="gu-wall__card">
<blockquote>{q.text}</blockquote>
<figcaption>
<span
className="gu-wall__avatar"
style={{ "--tone": q.tone } as CSSProperties}
aria-hidden="true"
>
{initials(q.name)}
</span>
<span>
<b>{q.name}</b>
<small>{q.role}</small>
</span>
</figcaption>
</figure>
);
}
/**
* TestimonialWall
* - Each column renders its quotes twice and translates by -50% in a loop, so it never jumps.
* - Columns alternate direction and speed. Hover (or tap) slows the animation via playback state.
* - The duplicated copy is aria-hidden so screen readers hear each quote once.
*/
export function TestimonialWall({
theme = "light",
}: {
theme?: "light" | "dark";
}) {
const [paused, setPaused] = useState(false);
const cols = [0, 1, 2].map((c) => QUOTES.filter((_, i) => i % 3 === c));
return (
<section
className="gu-wall"
data-theme={theme}
aria-labelledby="gu-wall-title"
>
<header>
<h2 id="gu-wall-title">Loved by 12,000 small teams</h2>
<p>
<span className="gu-wall__stars" aria-hidden="true">
★★★★★
</span>{" "}
4.9 average from 1,800 reviews
</p>
<button
type="button"
className="gu-wall__pause"
aria-pressed={paused}
onClick={() => setPaused((p) => !p)}
>
{paused ? "Play" : "Pause"} motion
</button>
</header>
<div className="gu-wall__cols" data-paused={paused ? "" : undefined}>
{cols.map((list, c) => (
<div
key={c}
className="gu-wall__col"
style={
{
"--dur": `${38 + c * 9}s`,
"--dir": c === 1 ? "reverse" : "normal",
} as CSSProperties
}
>
<div className="gu-wall__track">
{list.map((q) => (
<Card key={q.name} q={q} />
))}
<div aria-hidden="true" className="gu-wall__copy">
{list.map((q) => (
<Card key={q.name} q={q} />
))}
</div>
</div>
</div>
))}
</div>
</section>
);
}
Paste this into ChatGPT, Claude, Cursor, v0, Lovable or Bolt. It describes the layout, motion, colors and accessibility and includes the code, so the AI can rebuild it in any framework.
# Build this UI piece: Testimonial wall
You are a senior front-end engineer. Recreate the piece below in my project. If I don't say which framework I use, ask once, then build it in that framework (React, Vue, Svelte, Angular, Astro, plain HTML/CSS/JS or anything else). Keep the behavior, motion, colors, spacing and accessibility exactly as described. Keep the code clean and commented for beginners.
## What it is
A testimonial section: a huge centered headline with a rating line, then three columns of quote cards drifting vertically in a loop at different speeds and directions, faded at the top and bottom. Hovering a column pauses it; a button pauses everything.
## Layout and look
- Cream background (dark Ink). Headline "Loved by 12,000 small teams" (clamp 35–80px, weight 900, tracking -0.05em, balanced), "★★★★★ 4.9 average from 1,800 reviews" with orange stars, and a small "Pause motion" pill.
- Columns: max 1200px, 16px gaps, height clamp(480px, 70cqi, 680px), mask gradient fading 14% at both ends.
- Cards: radius 22px, padding 24px, hairline border, a big orange opening quote mark, 17px weight-600 quote, then a 42px initials avatar on a brand color plus name and role.
## Behavior and motion
1. Each column renders its cards twice (the copy aria-hidden) and translates to -50% linearly forever: 38s, 47s and 56s; the middle column runs in reverse.
2. Hovering a column sets animation-play-state: paused; cards scale 1.02 on hover.
3. Container under 820px: two columns; under 520px: one.
## Touch
Pause button; one column on phones.
## Accessibility
- Quotes are figure/blockquote/figcaption. Duplicates hidden from assistive tech. A visible pause control satisfies WCAG 2.2.2 for moving content.
- prefers-reduced-motion: no animation, columns show all cards statically.
## Props
theme. Edit the QUOTES array.
## Reference implementation
The original is written in React with one plain CSS file. Dependencies: none (plain React and CSS). Translate it faithfully; do not add new libraries unless my framework needs them.
### TestimonialWall.tsx
```tsx
"use client";
import { useState, type CSSProperties } from "react";
import "./testimonial-wall.css";
type Quote = { text: string; name: string; role: string; tone: string };
const QUOTES: Quote[] = [
{
text: "We replaced three tools with this one and the team actually likes opening it on Mondays.",
name: "Amara Okafor",
role: "Head of Ops, Fieldnote",
tone: "#ff5a1f",
},
{
text: "Setup took an afternoon. The migration we'd budgeted a month for took four days.",
name: "Jonas Weber",
role: "CTO, Kitebase",
tone: "#2b35ff",
},
{
text: "The first product where our designers and engineers argue less, not more.",
name: "Priya Raman",
role: "Design lead, Parcel",
tone: "#d7ff3a",
},
{
text: "Support answered in eleven minutes. On a Sunday. I checked twice.",
name: "Lucas Moreau",
role: "Founder, Atelier Nord",
tone: "#0e0e10",
},
{
text: "Our weekly report used to take Sam half a day. Now it writes itself before standup.",
name: "Hana Sato",
role: "PM, Lumen Health",
tone: "#ff5a1f",
},
{
text: "Clean, fast, and it doesn't try to be everything. That restraint is the feature.",
name: "Diego Alvarez",
role: "Engineer, Northwind",
tone: "#2b35ff",
},
{
text: "We onboarded 40 people without a single training call.",
name: "Grace Lindqvist",
role: "People team, Moss & Co",
tone: "#d7ff3a",
},
{
text: "I've tried every alternative. This is the one I'd pay for with my own card.",
name: "Omar Haddad",
role: "Freelance designer",
tone: "#0e0e10",
},
{
text: "Pages load before my finger leaves the trackpad. It changed how often we check things.",
name: "Elena Rossi",
role: "Analyst, Brightside",
tone: "#ff5a1f",
},
];
const initials = (n: string) =>
n
.split(" ")
.map((p) => p[0])
.join("");
function Card({ q }: { q: Quote }) {
return (
<figure className="gu-wall__card">
<blockquote>{q.text}</blockquote>
<figcaption>
<span
className="gu-wall__avatar"
style={{ "--tone": q.tone } as CSSProperties}
aria-hidden="true"
>
{initials(q.name)}
</span>
<span>
<b>{q.name}</b>
<small>{q.role}</small>
</span>
</figcaption>
</figure>
);
}
/**
* TestimonialWall
* - Each column renders its quotes twice and translates by -50% in a loop, so it never jumps.
* - Columns alternate direction and speed. Hover (or tap) slows the animation via playback state.
* - The duplicated copy is aria-hidden so screen readers hear each quote once.
*/
export function TestimonialWall({
theme = "light",
}: {
theme?: "light" | "dark";
}) {
const [paused, setPaused] = useState(false);
const cols = [0, 1, 2].map((c) => QUOTES.filter((_, i) => i % 3 === c));
return (
<section
className="gu-wall"
data-theme={theme}
aria-labelledby="gu-wall-title"
>
<header>
<h2 id="gu-wall-title">Loved by 12,000 small teams</h2>
<p>
<span className="gu-wall__stars" aria-hidden="true">
★★★★★
</span>{" "}
4.9 average from 1,800 reviews
</p>
<button
type="button"
className="gu-wall__pause"
aria-pressed={paused}
onClick={() => setPaused((p) => !p)}
>
{paused ? "Play" : "Pause"} motion
</button>
</header>
<div className="gu-wall__cols" data-paused={paused ? "" : undefined}>
{cols.map((list, c) => (
<div
key={c}
className="gu-wall__col"
style={
{
"--dur": `${38 + c * 9}s`,
"--dir": c === 1 ? "reverse" : "normal",
} as CSSProperties
}
>
<div className="gu-wall__track">
{list.map((q) => (
<Card key={q.name} q={q} />
))}
<div aria-hidden="true" className="gu-wall__copy">
{list.map((q) => (
<Card key={q.name} q={q} />
))}
</div>
</div>
</div>
))}
</div>
</section>
);
}
```
### testimonial-wall.css
```css
/* TestimonialWall: change these colors to match your brand. */
.gu-wall {
--bg: #f3eee3;
--card: #fbf8f2;
--text: #0e0e10;
--muted: #57534b;
--line: rgb(14 14 16 / 0.1);
--star: #ff5a1f;
--focus: #2b35ff;
container-type: inline-size;
padding: clamp(40px, 7%, 96px) clamp(16px, 4%, 48px) 0;
background: var(--bg);
color: var(--text);
font-family: system-ui, sans-serif;
}
.gu-wall[data-theme="dark"] {
--bg: #0e0e10;
--card: #18181b;
--text: #f3eee3;
--muted: #aea89c;
--line: rgb(243 238 227 / 0.1);
--focus: #d7ff3a;
}
.gu-wall header {
display: grid;
justify-items: center;
gap: 10px;
max-width: 760px;
margin: 0 auto clamp(28px, 4cqi, 48px);
text-align: center;
}
.gu-wall h2 {
margin: 0;
font-size: clamp(2.2rem, 7cqi, 5rem);
font-weight: 900;
letter-spacing: -0.05em;
line-height: 0.92;
text-wrap: balance;
}
.gu-wall header p {
margin: 0;
color: var(--muted);
font-weight: 600;
}
.gu-wall__stars {
color: var(--star);
letter-spacing: 2px;
}
.gu-wall__pause {
min-height: 40px;
padding: 0 16px;
border: 1px solid var(--line);
border-radius: 999px;
background: none;
color: var(--muted);
font: inherit;
font-size: 0.82rem;
font-weight: 700;
cursor: pointer;
}
.gu-wall__pause:focus-visible {
outline: 3px solid var(--focus);
}
.gu-wall__cols {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
max-width: 1200px;
height: clamp(480px, 70cqi, 680px);
margin: 0 auto;
overflow: hidden;
/* Fade top and bottom so cards appear and dissolve softly */
mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
.gu-wall__track {
display: grid;
gap: 16px;
animation: gu-wall-scroll var(--dur) linear infinite var(--dir);
}
.gu-wall__copy {
display: contents;
}
@keyframes gu-wall-scroll {
to {
transform: translateY(calc(-50% - 8px));
}
}
.gu-wall__col:hover .gu-wall__track {
animation-play-state: paused;
}
.gu-wall__cols[data-paused] .gu-wall__track {
animation-play-state: paused;
}
.gu-wall__card {
display: grid;
gap: 18px;
margin: 0;
padding: 24px;
border: 1px solid var(--line);
border-radius: 22px;
background: var(--card);
transition:
transform 0.3s,
border-color 0.3s;
}
.gu-wall__card:hover {
border-color: color-mix(in srgb, var(--text) 30%, transparent);
transform: scale(1.02);
}
.gu-wall blockquote {
margin: 0;
font-size: 1.05rem;
font-weight: 600;
line-height: 1.45;
letter-spacing: -0.01em;
}
.gu-wall blockquote::before {
content: "“";
display: block;
height: 0.5em;
color: var(--star);
font-size: 2.6em;
font-weight: 900;
line-height: 0.9;
}
.gu-wall figcaption {
display: flex;
align-items: center;
gap: 12px;
}
.gu-wall figcaption > span:last-child {
display: grid;
}
.gu-wall figcaption b {
font-size: 0.92rem;
}
.gu-wall figcaption small {
color: var(--muted);
font-size: 0.8rem;
}
.gu-wall__avatar {
display: grid;
flex: none;
place-items: center;
width: 42px;
height: 42px;
border-radius: 50%;
background: var(--tone);
color: #f3eee3;
font-size: 0.82rem;
font-weight: 900;
}
.gu-wall__avatar[style*="d7ff3a"],
.gu-wall__avatar[style*="ff5a1f"] {
color: #0e0e10;
}
.gu-wall[data-theme="dark"] .gu-wall__avatar[style*="0e0e10"] {
background: #f3eee3;
color: #0e0e10;
}
@container (max-width: 820px) {
.gu-wall__cols {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gu-wall__col:nth-child(3) {
display: none;
}
}
@container (max-width: 520px) {
.gu-wall__cols {
grid-template-columns: 1fr;
}
.gu-wall__col:nth-child(2) {
display: none;
}
}
@media (prefers-reduced-motion: reduce) {
.gu-wall__cols {
height: auto;
mask-image: none;
padding-bottom: 48px;
}
.gu-wall__track {
animation: none;
}
.gu-wall__copy,
.gu-wall__pause {
display: none;
}
.gu-wall__col:nth-child(n) {
display: block;
}
.gu-wall__card {
transition: none;
}
}
```
You might also want
Next piece: Usage pricing calculatorBento features grid
Templates, intermediate
Changelog timeline
Templates, intermediate
Feature tabs with autoplay
Templates, intermediate