
Scrolling Reviews
A CSS-animated marquee section that displays customer reviews in two rows moving in opposite directions. It utilizes infinite horizontal loops to showcase social proof without requiring user interaction.
- Infinite horizontal scrolling animation
- Bi-directional row movement (left and right)
- Responsive speed adjustments for mobile devices
- Custom handwriting font integration for emphasis
- Avatar support with styled border highlights
- Showcasing customer testimonials on the homepage or product pages.
- Displaying short-form social media feedback to build brand trust.
- Increasing engagement through dynamic movement in long-scroll layouts.
- Shopify Online Store 2.0
- Most Shopify themes
The code
1<!DOCTYPE html>2<html lang="en">3<head>4 <meta charset="UTF-8">5 <meta name="viewport" content="width=device-width, initial-scale=1.0">6 <title>Scrolling Reviews</title>7 <style>8 body.unique-body-vB79Q1 {9 font-family: Arial, sans-serif;10 display: flex;11 flex-direction: column;12 align-items: center;13 height: 100vh;14 margin: 0;15 background-color: #f8f4f1;16 }1718 /* Başlık Stili */19 .unique-title-Yp8T4 {20 font-size: 18px;21 font-weight: bold;22 color: #0d0d0d;23 margin-bottom: 15px;24 text-align: center;25 }2627 .unique-title-Yp8T4 span {28 font-family: 'Dancing Script', cursive; /* El yazısı fontu */29 font-size: 36px; /* Daha büyük font boyutu */30 background: linear-gradient(90deg, #32CD32, #006400); /* Daha modern gradyan yeşil */31 -webkit-background-clip: text;32 -webkit-text-fill-color: transparent;33 font-weight: bold;34 }3536 .unique-container-Xr4D2a {37 width: 100%;38 overflow: hidden;39 position: relative;40 display: flex;41 flex-direction: column;42 gap: 20px;43 }4445 .unique-slider-Rc9G7h {46 display: flex;47 gap: 20px;48 animation: scrollAnimation-8Tm5Yp 30s linear infinite;49 }5051 .unique-card-Lj6Z8k {52 background-color: #fff;53 border-radius: 25px;54 box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);55 padding: 15px 20px;56 display: flex;57 align-items: center;58 margin: 10px 0;59 white-space: nowrap;60 min-width: max-content;61 box-sizing: border-box;62 }6364 .unique-image-Ys3Kv9 {65 width: 40px;66 height: 40px;67 border-radius: 50%;68 margin-right: 15px;69 box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f4b400;70 }7172 @keyframes scrollAnimation-8Tm5Yp {73 0% {74 transform: translateX(0);75 }76 100% {77 transform: translateX(-100%);78 }79 }8081 /* Mobil versiyon için animasyon daha hızlı */82 @media (max-width: 768px) {83 .unique-slider-Rc9G7h {84 animation: scrollAnimation-8Tm5Yp 15s linear infinite; /* Daha hızlı */85 }86 }8788 /* Scroll Animation for the second row, in opposite direction */89 .unique-slider-Rc9G7h:nth-child(2) {90 animation-direction: reverse;91 }92 </style>93 <link href="https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap" rel="stylesheet">94</head>95<body class="unique-body-vB79Q1">9697<!-- Başlık -->98<h1 class="unique-title-Yp8T4">Our customers <span>love</span> the product</h1>99100<div class="unique-container-Xr4D2a">101 <!-- Row 1 -->102 <div class="unique-slider-Rc9G7h">103 <div class="unique-card-Lj6Z8k">104 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/women/1.jpg" alt="User Image">105 <p>The perfect fall slippers!</p>106 </div>107 <div class="unique-card-Lj6Z8k">108 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/men/2.jpg" alt="User Image">109 <p>My new favorite pair of shoes!</p>110 </div>111 <div class="unique-card-Lj6Z8k">112 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/women/3.jpg" alt="User Image">113 <p>A MUST buy for fall!</p>114 </div>115 <div class="unique-card-Lj6Z8k">116 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/men/4.jpg" alt="User Image">117 <p>10/10 Worth every penny</p>118 </div>119 <div class="unique-card-Lj6Z8k">120 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/women/5.jpg" alt="User Image">121 <p>I absolutely am in love with the slippers! I wear them everywhere!</p>122 </div>123124 <!-- Duplicate Row 1 for Smooth Loop -->125 <div class="unique-card-Lj6Z8k">126 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/women/1.jpg" alt="User Image">127 <p>The perfect fall slippers!</p>128 </div>129 <div class="unique-card-Lj6Z8k">130 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/men/2.jpg" alt="User Image">131 <p>My new favorite pair of shoes!</p>132 </div>133 <div class="unique-card-Lj6Z8k">134 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/women/3.jpg" alt="User Image">135 <p>A MUST buy for fall!</p>136 </div>137 <div class="unique-card-Lj6Z8k">138 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/men/4.jpg" alt="User Image">139 <p>10/10 Worth every penny</p>140 </div>141 <div class="unique-card-Lj6Z8k">142 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/women/5.jpg" alt="User Image">143 <p>I absolutely am in love with the slippers! I wear them everywhere!</p>144 </div>145 </div>146147 <!-- Row 2 (Opposite Direction) -->148 <div class="unique-slider-Rc9G7h">149 <div class="unique-card-Lj6Z8k">150 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/women/6.jpg" alt="User Image">151 <p>Comfy. Can't think of a better autumn shoe!</p>152 </div>153 <div class="unique-card-Lj6Z8k">154 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/men/7.jpg" alt="User Image">155 <p>OMG! Best autumn shoe!</p>156 </div>157 <div class="unique-card-Lj6Z8k">158 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/women/8.jpg" alt="User Image">159 <p>Perfect for chilly days!</p>160 </div>161 <div class="unique-card-Lj6Z8k">162 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/men/9.jpg" alt="User Image">163 <p>Amazing quality and comfort!</p>164 </div>165 <div class="unique-card-Lj6Z8k">166 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/women/10.jpg" alt="User Image">167 <p>Stylish and super comfy!</p>168 </div>169170 <!-- Duplicate Row 2 for Smooth Loop -->171 <div class="unique-card-Lj6Z8k">172 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/women/6.jpg" alt="User Image">173 <p>Comfy. Can't think of a better autumn shoe!</p>174 </div>175 <div class="unique-card-Lj6Z8k">176 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/men/7.jpg" alt="User Image">177 <p>OMG! Best autumn shoe!</p>178 </div>179 <div class="unique-card-Lj6Z8k">180 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/women/8.jpg" alt="User Image">181 <p>Perfect for chilly days!</p>182 </div>183 <div class="unique-card-Lj6Z8k">184 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/men/9.jpg" alt="User Image">185 <p>Amazing quality and comfort!</p>186 </div>187 <div class="unique-card-Lj6Z8k">188 <img class="unique-image-Ys3Kv9" src="https://randomuser.me/api/portraits/women/10.jpg" alt="User Image">189 <p>Stylish and super comfy!</p>190 </div>191 </div>192</div>193194</body>195</html>
How to install Scrolling Reviews on your Shopify theme
This snippet belongs in sections/main-product.liquid, directly under the Add to cart button, where it reinforces the purchase decision. Expect the whole job to take about 5–10 minutes.
- 1From your Shopify admin, open Online Store → Themes, click the … button on your live theme and choose Duplicate. Always work on a copy so you can roll back instantly.
- 2On the duplicated theme, click … → Edit code to open the theme code editor.
- 3Open sections/main-product.liquid in the file tree. If your theme uses different file names, search for the template that renders the area where you want the block to show up.
- 4Click Copy code on this page, then paste the snippet directly under the Add to cart button, where it reinforces the purchase decision.
- 5The snippet ships with its own scoped
<style>block, so you do not need to touchbase.cssortheme.css. If you prefer to keep CSS centralised, move the contents of the style tag into your theme stylesheet and delete the inline block. - 6Click Save, then hit Preview and check the block on desktop, tablet and mobile widths.
- 7When you are happy with the result, publish the duplicated theme from Online Store → Themes → Actions → Publish.
How to customise it
Every value below lives inside the snippet, so you can adapt Scrolling Reviews to your brand without touching the rest of the theme.
- Colours — the snippet uses
#f8f4f1,#0d0d0d,#32CD32,#006400. Replace those values inside the style block with your brand palette, keeping at least a 4.5:1 contrast ratio between text and background so the block stays accessible. - Gradient — swap the
linear-gradient(...)declaration for a flat background colour if you want a more minimal, theme-native look. - Typography — the block declares
font-family: Arial, sans-serif. Delete that line to inherit your theme font instead, which usually looks better integrated. - Sizing — adjust the font-size values (18px, 36px) and the padding so the block carries the same visual weight as the elements around it.
- Corners —
border-radius: 25pxcontrols the roundness. Set it to 0 for a sharper editorial look, or increase it for a softer, app-like feel. - Images — replace the placeholder image URLs with your own assets. Upload them under Content → Files in Shopify admin and use the generated CDN URL, or reference a theme asset with
{{ 'my-image.png' | asset_url }}. - Copy — rewrite the hard-coded text (for example “Scrolling Reviews”) in your own brand voice, and translate it if you sell in more than one language.
- Responsive behaviour — the
@mediaquery defines the mobile breakpoint. Adjust the pixel value if your theme uses a different breakpoint scale.
Common mistakes to avoid
These are the issues merchants run into most often when installing a snippet like this one.
- Editing the live theme directly. Duplicate it first — a single unbalanced Liquid tag can take a storefront down mid-campaign.
- Pasting the code into the wrong file. Dropped into
layout/theme.liquidinstead ofsections/main-product.liquid, this block will render on every page of the store, including ones where it makes no sense. - Renaming the CSS classes in the markup but not in the style block, or vice versa. The class names have to match exactly or the styling silently disappears.
- Leaving the demo images in place. They are hosted on third-party domains, can disappear at any time and slow the page down. Re-upload them to Shopify Files before going live.
- Publishing without testing on a real phone. Most Shopify traffic is mobile, and layout problems almost always surface there first.
Performance notes
What this block costs you in load time, and how to keep that cost at zero.
- The CSS is inline and scoped to this block, so it adds no extra network request. At a few kilobytes it has no measurable effect on your Lighthouse score.
- Add
loading="lazy"plus explicit width and height attributes to every image in the snippet. That prevents Cumulative Layout Shift, which is a Core Web Vitals ranking factor. - The animation runs on CSS keyframes. Animate only transform and opacity where you can — animating width, height or top forces a layout recalculation on every frame.
- Third-party image URLs bypass the Shopify CDN and add extra DNS lookups. Self-hosting those assets usually saves 100–300ms on first paint.
- Run PageSpeed Insights before and after you add the block so you have a concrete number rather than a guess.
SEO & accessibility
How to add this block without damaging your on-page structure or your rich results.
- Nothing in this snippet should replace your page
<h1>. Keep product and page headings intact and use<h2>or<h3>for the block's own heading so the document outline stays clean. - Write a descriptive alt attribute for every image. Empty or generic alt text is one of the most common accessibility and SEO issues on Shopify stores.
- If the block shows review or rating content, keep it consistent with the structured data your review app already outputs. Duplicating or contradicting rating markup can cost you the rich result entirely.
- The block does not create a new URL, so there is no canonical or indexing change to make. It improves on-page engagement signals rather than crawlability.
Scrolling Reviews — questions merchants ask
Will this snippet work with my theme?
It is built with standard Liquid, HTML and CSS, so it works with Dawn and virtually every Online Store 2.0 theme, as well as most vintage themes. The only thing that changes between themes is the file you paste it into — if yours has no sections/main-product.liquid, look for the equivalent template that renders the same area.
Do I need an app to use it?
No. This is theme code you own outright: no monthly fee, no third-party script tag, and no app that can break your storefront the next time it updates.
How long does it take to add “Scrolling Reviews” to a store?
Most merchants have it live in under fifteen minutes — duplicate the theme, paste the code, adjust the colours and copy, preview on mobile, publish.
The styling looks broken after pasting. How do I fix it?
Confirm you copied the whole snippet including the closing style tag, then check whether one of your theme's own CSS rules is overriding it. If a theme rule wins, increase the specificity of the snippet's selector rather than scattering !important through the file.
Will it slow my store down?
Not meaningfully. It is inline markup with scoped CSS and at most a few lines of vanilla JavaScript — no external libraries, no extra HTTP request. Optimising your product images will always have a far bigger impact on load time.
Can I use it on a client store or a commercial project?
Yes. Every snippet in the MCO Hub library is free to copy, modify and ship on any store, including client work. Attribution is appreciated but not required.
Related snippets
Keep exploring
Guides
Tools



