testimonials
intermediate
testimonials
slider
reviews
carousel
ratings
responsive
Category · Testimonials Difficulty Level · Intermediate Published on · August 18, 2025

Testimonial Slider

Modern testimonial slider with customer reviews, star ratings, auto-play, and smooth transitions.

#testimonials #slider #reviews #carousel #ratings #responsive

Responsive Design

Yes

Dark Mode Support

No

lines

883

Browser Compatibility

Chrome Β· Firefox Β· Safari Β· Edge

Live Preview

Interact with the component without leaving the page.

600px

Overview

Modern testimonial slider with customer reviews, star ratings, auto-play, and smooth transitions.

How to use

  1. Copy the HTML markup into your page.
  2. Paste the CSS into your stylesheet and ensure the selectors match your markup.
  3. Paste the JavaScript and load it after the markup.
  4. Adjust spacing, colors, and text to match your design system.

Customization tips

  • Rename class names to avoid collisions with your existing CSS.
  • Replace hard-coded colors with CSS variables for theming.
  • Verify the layout at 320px, 768px, and 1024px widths.

HTML

205

lines

CSS

415

lines

JavaScript

263

lines


                <div class="testimonial-container">
  <div class="testimonial-header">
    <h1 class="testimonial-title">What Our Customers Say</h1>
    <p class="testimonial-subtitle">Real feedback from our valued customers</p>
  </div>
  
  <div class="testimonial-slider" id="testimonialSlider">
    <div class="testimonial-track" id="testimonialTrack">
      
      <div class="testimonial-slide active">
        <div class="testimonial-content">
          <div class="testimonial-quote">
            <svg class="quote-icon" viewBox="0 0 24 24" fill="currentColor">
              <path d="M14,17H17L19,13V7H13V13H16M6,17H9L11,13V7H5V13H8L6,17Z" />
            </svg>
            <p class="testimonial-text">
              "This product has completely transformed our workflow. The team's productivity has increased by 300% since we started using it. Absolutely incredible!"
            </p>
          </div>
          
          <div class="testimonial-rating">
            <div class="stars">
              <span class="star filled">β˜…</span>
              <span class="star filled">β˜…</span>
              <span class="star filled">β˜…</span>
              <span class="star filled">β˜…</span>
              <span class="star filled">β˜…</span>
            </div>
            <span class="rating-text">5.0 out of 5</span>
          </div>
          
          <div class="testimonial-author">
            <div class="author-avatar">
              <img src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=80&h=80&fit=crop&crop=face" alt="Sarah Johnson" loading="lazy">
            </div>
            <div class="author-info">
              <h3 class="author-name">Sarah Johnson</h3>
              <p class="author-title">CEO, TechCorp</p>
              <p class="author-company">San Francisco, CA</p>
            </div>
          </div>
        </div>
      </div>
      
      
      <div class="testimonial-slide">
        <div class="testimonial-content">
          <div class="testimonial-quote">
            <svg class="quote-icon" viewBox="0 0 24 24" fill="currentColor">
              <path d="M14,17H17L19,13V7H13V13H16M6,17H9L11,13V7H5V13H8L6,17Z" />
            </svg>
            <p class="testimonial-text">
              "Outstanding customer service and an amazing product. The support team went above and beyond to help us integrate this into our existing systems."
            </p>
          </div>
          
          <div class="testimonial-rating">
            <div class="stars">
              <span class="star filled">β˜…</span>
              <span class="star filled">β˜…</span>
              <span class="star filled">β˜…</span>
              <span class="star filled">β˜…</span>
              <span class="star filled">β˜…</span>
            </div>
            <span class="rating-text">5.0 out of 5</span>
          </div>
          
          <div class="testimonial-author">
            <div class="author-avatar">
              <img src="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=80&h=80&fit=crop&crop=face" alt="Michael Chen" loading="lazy">
            </div>
            <div class="author-info">
              <h3 class="author-name">Michael Chen</h3>
              <p class="author-title">CTO, InnovateLab</p>
              <p class="author-company">New York, NY</p>
            </div>
          </div>
        </div>
      </div>
      
      
      <div class="testimonial-slide">
        <div class="testimonial-content">
          <div class="testimonial-quote">
            <svg class="quote-icon" viewBox="0 0 24 24" fill="currentColor">
              <path d="M14,17H17L19,13V7H13V13H16M6,17H9L11,13V7H5V13H8L6,17Z" />
            </svg>
            <p class="testimonial-text">
              "The ROI we've seen from this solution is remarkable. It paid for itself within the first month and continues to deliver exceptional value."
            </p>
          </div>
          
          <div class="testimonial-rating">
            <div class="stars">
              <span class="star filled">β˜…</span>
              <span class="star filled">β˜…</span>
              <span class="star filled">β˜…</span>
              <span class="star filled">β˜…</span>
              <span class="star half">β˜…</span>
            </div>
            <span class="rating-text">4.5 out of 5</span>
          </div>
          
          <div class="testimonial-author">
            <div class="author-avatar">
              <img src="https://images.unsplash.com/photo-1494790108755-2616c6d4e6e8?w=80&h=80&fit=crop&crop=face" alt="Emily Rodriguez" loading="lazy">
            </div>
            <div class="author-info">
              <h3 class="author-name">Emily Rodriguez</h3>
              <p class="author-title">Marketing Director, GrowthCo</p>
              <p class="author-company">Austin, TX</p>
            </div>
          </div>
        </div>
      </div>
      
      
      <div class="testimonial-slide">
        <div class="testimonial-content">
          <div class="testimonial-quote">
            <svg class="quote-icon" viewBox="0 0 24 24" fill="currentColor">
              <path d="M14,17H17L19,13V7H13V13H16M6,17H9L11,13V7H5V13H8L6,17Z" />
            </svg>
            <p class="testimonial-text">
              "User-friendly interface and powerful features. Our team was up and running in no time. Highly recommend to anyone looking for a reliable solution."
            </p>
          </div>
          
          <div class="testimonial-rating">
            <div class="stars">
              <span class="star filled">β˜…</span>
              <span class="star filled">β˜…</span>
              <span class="star filled">β˜…</span>
              <span class="star filled">β˜…</span>
              <span class="star filled">β˜…</span>
            </div>
            <span class="rating-text">5.0 out of 5</span>
          </div>
          
          <div class="testimonial-author">
            <div class="author-avatar">
              <img src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=80&h=80&fit=crop&crop=face" alt="David Kim" loading="lazy">
            </div>
            <div class="author-info">
              <h3 class="author-name">David Kim</h3>
              <p class="author-title">Operations Manager, ScaleTech</p>
              <p class="author-company">Seattle, WA</p>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    
    <div class="testimonial-controls">
      <button class="control-btn prev-btn" id="prevBtn">
        <svg viewBox="0 0 24 24" fill="currentColor">
          <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
        </svg>
      </button>
      
      <div class="testimonial-dots" id="testimonialDots">
        <button class="dot active" data-slide="0"></button>
        <button class="dot" data-slide="1"></button>
        <button class="dot" data-slide="2"></button>
        <button class="dot" data-slide="3"></button>
      </div>
      
      <button class="control-btn next-btn" id="nextBtn">
        <svg viewBox="0 0 24 24" fill="currentColor">
          <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
        </svg>
      </button>
    </div>
    
    
    <div class="autoplay-controls">
      <button class="autoplay-btn" id="autoplayBtn">
        <svg class="play-icon" viewBox="0 0 24 24" fill="currentColor">
          <path d="M8 5v14l11-7z"/>
        </svg>
        <svg class="pause-icon" viewBox="0 0 24 24" fill="currentColor" style="display: none;">
          <path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/>
        </svg>
        <span class="autoplay-text">Auto-play</span>
      </button>
    </div>
  </div>
  
  
  <div class="testimonial-stats">
    <div class="stat-item">
      <div class="stat-number">4.8</div>
      <div class="stat-label">Average Rating</div>
    </div>
    <div class="stat-item">
      <div class="stat-number">1,200+</div>
      <div class="stat-label">Happy Customers</div>
    </div>
    <div class="stat-item">
      <div class="stat-number">99%</div>
      <div class="stat-label">Satisfaction Rate</div>
    </div>
  </div>
</div>

              
205lines
8142characters
HTMLLanguage

Browser Compatibility

Chrome

>= 60

Firefox

>= 55

Safari

>= 10

Edge

>= 15

Related Code Snippets

Explore template packs

Need larger building blocks? Browse responsive landing pages and component bundles.

Open HTML Template Library ->