← All elements

Snapping Quote Carousel

by @admin · 0 views

<div class="qsc" tabindex="0" aria-label="Customer quotes"><figure><blockquote>Setup took five minutes and it just worked.</blockquote><figcaption>Mara, baker</figcaption></figure><figure><blockquote>Our page finally loads fast on old phones.</blockquote><figcaption>Jun, shop owner</figcaption></figure><figure><blockquote>I copied one snippet and learned three tricks.</blockquote><figcaption>Ana, student</figcaption></figure></div>

About this carousel

A swipeable row of customer quotes that snaps one card at a time, with scrolling handled by the browser.

How it works

The row scrolls horizontally with scroll-snap-type, and each figure is a full-width item that snaps to the centre. Side padding lets the next card peek in, which signals that there is more to see. All movement is handled by native scrolling.

Ways to customise it

  • Change the 36px peek on each side.
  • Add figures for more quotes.
  • Change the serif font and the quote mark colour.

Good to know

The container can be focused and scrolled with the arrow keys. Use real quotes from people who agreed to be named when you ship it.

Open an example, copy the HTML and the CSS, and paste them into your page. There is nothing to install and no JavaScript to load.

More in Carousel

View all →