A modern, responsive, and interactive Google Reviews carousel widget built with pure HTML, CSS, and vanilla JavaScript. No dependencies, no backend required.
- π¨ Modern UI Design - Clean, professional Google-style interface
- π± Fully Responsive - Perfect on desktop, tablet, and mobile
- π― Touch & Swipe Support - Native swipe gestures on mobile devices
- π±οΈ Drag-to-Scroll - Mouse drag navigation on desktop
- β‘ Auto-Scroll - Automatic carousel rotation with smart pause on interaction
- π Smooth Animations - Elegant transitions and hover effects
- π« Zero Dependencies - Pure vanilla JavaScript, no libraries needed
- βΏ User-Friendly - Intuitive navigation with arrow buttons and progress dots
- π No Backend Required - 100% frontend solution
# Clone the repository
git clone https://github.com/RaynoxDevs/google-reviews-widget.git
# Navigate to the directory
cd google-reviews-widget
# Open in browser
open index.htmlSimply copy the entire HTML file content into your project.
<!-- Simple embed -->
<iframe
src="https://RaynoxDevs.github.io/google-reviews-widget/"
style="width: 100%; height: 400px; border: none; background: transparent; overflow: hidden;"
title="Avis clients Google"
loading="lazy">
</iframe>Here's how it's integrated on a real site:
<section id="reviews" class="section reviews">
<div class="container">
<h2 class="section-title">Avis Clients</h2>
<p class="section-subtitle">DΓ©couvrez les avis de nos clientes sur Google</p>
<div class="reviews-embed">
<iframe
src="avis.html"
style="width: 100%; height: 400px; border: none; background: transparent; overflow: hidden;"
title="Avis clients Google"
loading="lazy">
</iframe>
</div>
</div>
</section>Edit the review cards in the HTML:
<div class="review-card">
<div class="review-header">
<img src="your-avatar-url.jpg" alt="Name" class="review-avatar">
<div class="review-info">
<div class="review-author">Customer Name</div>
<div class="review-meta">@username β’ 1 month ago</div>
</div>
</div>
<div class="stars">
<span class="star">β
</span>
<span class="star">β
</span>
<span class="star">β
</span>
<span class="star">β
</span>
<span class="star">β
</span>
</div>
<div class="review-text">
Your customer review text here...
</div>
</div>Customize colors and styles in the <style> section:
/* Main colors */
.star { color: #fbbc04; } /* Star color */
.review-card { background: white; } /* Card background */
.progress-dot.active { background: #fbbc04; } /* Active dot */Adjust the carousel speed in the JavaScript:
autoSlideInterval = setInterval(() => {
slide(1);
}, 5000); // Change 5000 to your desired milliseconds| Feature | Default | Customizable |
|---|---|---|
| Auto-scroll interval | 5 seconds | β |
| Pause on interaction | 15 seconds | β |
| Cards per view (desktop) | 3 | β |
| Cards per view (mobile) | 1 | β |
| Swipe sensitivity | 50px | β |
| Browser | Version |
|---|---|
| Chrome | β Latest |
| Firefox | β Latest |
| Safari | β Latest |
| Edge | β Latest |
| Opera | β Latest |
- Desktop: > 768px (3 cards visible)
- Mobile: β€ 768px (1 card visible with progress dots)
Contributions are welcome! Feel free to:
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- β Business websites
- β Landing pages
- β E-commerce stores
- β Portfolio sites
- β Service provider pages
- β Restaurant/Salon websites
None at the moment! If you find any bugs, please open an issue.
- GitHub: @RaynoxDevs
- Email: iam.raynox@gmail.com
- Inspired by Google Reviews interface
- Icons: Google Material Design
- Fonts: System fonts stack for optimal performance
Made by Raynox
β Star this repo if you find it useful!

