testimonials
intermediate
testimonials
carousel
reviews
ratings
customers
Category · Testimonials Difficulty Level · Intermediate Published on · February 1, 2024

Testimonial Carousel

Elegant testimonial carousel with smooth transitions, star ratings, and customer photos, perfect for showcasing client feedback.

#testimonials #carousel #reviews #ratings #customers

Responsive Design

Yes

Dark Mode Support

No

lines

520

Browser Compatibility

Chrome Β· Firefox Β· Safari Β· Edge

Live Preview

Interact with the component without leaving the page.

400px

Overview

Elegant testimonial carousel with smooth transitions, star ratings, and customer photos, perfect for showcasing client feedback.

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

126

lines

CSS

247

lines

JavaScript

147

lines


                <div class="testimonial-container">
  <div class="testimonial-header">
    <h2>What Our Clients Say</h2>
    <p>Don't just take our word for it - hear from our satisfied customers</p>
  </div>
  
  <div class="testimonial-carousel">
    <div class="testimonial-track" id="testimonialTrack">
      
      <div class="testimonial-slide active">
        <div class="testimonial-content">
          <div class="quote-icon">"</div>
          <p class="testimonial-text">
            "This service has completely transformed our business. The team is professional, responsive, and delivers exceptional results every time."
          </p>
          <div class="rating">
            <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>
          <div class="client-info">
            <img src="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=80&h=80&fit=crop&crop=face" alt="Sarah Johnson" class="client-photo">
            <div class="client-details">
              <h4>Sarah Johnson</h4>
              <p>CEO, TechStart Inc.</p>
            </div>
          </div>
        </div>
      </div>
      
      
      <div class="testimonial-slide">
        <div class="testimonial-content">
          <div class="quote-icon">"</div>
          <p class="testimonial-text">
            "Outstanding quality and attention to detail. They understood our vision perfectly and delivered beyond our expectations. Highly recommended!"
          </p>
          <div class="rating">
            <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>
          <div class="client-info">
            <img src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=80&h=80&fit=crop&crop=face" alt="Michael Chen" class="client-photo">
            <div class="client-details">
              <h4>Michael Chen</h4>
              <p>Founder, Creative Studio</p>
            </div>
          </div>
        </div>
      </div>
      
      
      <div class="testimonial-slide">
        <div class="testimonial-content">
          <div class="quote-icon">"</div>
          <p class="testimonial-text">
            "The results speak for themselves. Our conversion rate increased by 300% after working with this amazing team. Simply incredible!"
          </p>
          <div class="rating">
            <span class="star filled">β˜…</span>
            <span class="star filled">β˜…</span>
            <span class="star filled">β˜…</span>
            <span class="star filled">β˜…</span>
            <span class="star">β˜…</span>
          </div>
          <div class="client-info">
            <img src="https://images.unsplash.com/photo-1494790108755-2616b612b786?w=80&h=80&fit=crop&crop=face" alt="Emily Rodriguez" class="client-photo">
            <div class="client-details">
              <h4>Emily Rodriguez</h4>
              <p>Marketing Director, GrowthCo</p>
            </div>
          </div>
        </div>
      </div>
      
      
      <div class="testimonial-slide">
        <div class="testimonial-content">
          <div class="quote-icon">"</div>
          <p class="testimonial-text">
            "Professional, reliable, and innovative. They took our project from concept to completion flawlessly. We couldn't be happier with the outcome."
          </p>
          <div class="rating">
            <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>
          <div class="client-info">
            <img src="https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=80&h=80&fit=crop&crop=face" alt="David Thompson" class="client-photo">
            <div class="client-details">
              <h4>David Thompson</h4>
              <p>CTO, InnovateLab</p>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <div class="carousel-controls">
      <button class="control-btn prev" 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>
      <button class="control-btn next" 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="carousel-indicators">
      <button class="indicator active" data-slide="0"></button>
      <button class="indicator" data-slide="1"></button>
      <button class="indicator" data-slide="2"></button>
      <button class="indicator" data-slide="3"></button>
    </div>
  </div>
</div>

              
126lines
5073characters
HTMLLanguage

Browser Compatibility

Chrome

>= 50

Firefox

>= 45

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 ->