Skip to content

Raynoxwsh/google-review-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌟 Google Reviews Carousel Widget

A modern, responsive, and interactive Google Reviews carousel widget built with pure HTML, CSS, and vanilla JavaScript. No dependencies, no backend required.

License HTML5 CSS3 JavaScript

✨ Features

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

πŸš€ Demo

View Live Demo

πŸ“Έ Screenshots

Desktop View

Desktop View

Mobile View

Mobile View

πŸ› οΈ Installation

Option 1: Direct Download

# 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.html

Option 2: Copy-Paste

Simply copy the entire HTML file content into your project.

πŸ“– Usage

Basic Integration

As iFrame (Recommended)

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

Real-world Example

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>

Customization

Adding Your Reviews

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>

Styling

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

Auto-Scroll Timing

Adjust the carousel speed in the JavaScript:

autoSlideInterval = setInterval(() => {
    slide(1);
}, 5000);  // Change 5000 to your desired milliseconds

βš™οΈ Configuration

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 Support

Browser Version
Chrome βœ… Latest
Firefox βœ… Latest
Safari βœ… Latest
Edge βœ… Latest
Opera βœ… Latest

πŸ“± Responsive Breakpoints

  • Desktop: > 768px (3 cards visible)
  • Mobile: ≀ 768px (1 card visible with progress dots)

🀝 Contributing

Contributions are welcome! Feel free to:

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ’‘ Use Cases

  • βœ… Business websites
  • βœ… Landing pages
  • βœ… E-commerce stores
  • βœ… Portfolio sites
  • βœ… Service provider pages
  • βœ… Restaurant/Salon websites

πŸ› Known Issues

None at the moment! If you find any bugs, please open an issue.

πŸ“¬ Contact

πŸ™ Acknowledgments

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

About

Modern, responsive Google Reviews carousel widget with swipe support. Pure HTML/CSS/JS, no dependencies.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages