StealThis .dev

Portfolio — Testimonial / Recommendation Block

A polished portfolio testimonial section for a fictional product designer: a featured quote card with a CSS-gradient avatar, name, role and company, a small inline-SVG company logo and a star rating, wrapped in a carousel of four recommendations. Vanilla JS drives a pausable auto-advancing slider with arrow, dot and keyboard navigation, swipe support, hover and focus pausing, and smooth slide transitions. Neutral Inter and Newsreader base, accessible with live regions and visible focus rings, fully responsive.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Testimonial / Recommendation Block

A drop-in recommendations section for a single-person portfolio. A featured quote card pairs a large serif pull-quote with a star rating, a CSS-gradient avatar showing the recommender’s initials, their name, role and company, and a small inline-SVG company logo. Four credible recommendations — from a VP of Product, a founder, a staff engineer and a design director — rotate through the same elegant card.

The carousel is built in vanilla JS and every control actually works. It auto-advances on a gentle timer that you can pause or resume from a labelled play/pause toggle, and it also pauses on hover, on keyboard focus and when the browser tab is hidden, so it never moves out from under a reader. Navigate with the prev/next arrows, the active-state dots, the arrow / Home / End keys, or a left-right swipe on touch. Slides move with a smooth CSS transform and off-screen cards are pulled out of the tab order, while an aria-live region announces changes.

The neutral base uses Inter for UI and Newsreader for the quotes, keeps WCAG AA contrast, and ships visible :focus-visible rings plus a skip link. It honours prefers-reduced-motion by disabling autoplay, and the layout collapses gracefully to a single column with overlaid arrows down to about 360px.

Illustrative portfolio — fictional person and projects.