AC Service Center Gallery
Preview
Edit
Download
Run
Download Options
HTML File
Download as .html file
CSS File
Download as .css file
JavaScript File
Download as .js file
Combined HTML
All code in one HTML file
Project ZIP
All files in a ZIP archive
Cancel
HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>AC Service Center Gallery</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"> </head> <body> <section class="gallery-section"> <h2>AC Service Center Gallery</h2> <p class="twhite"> Explore our AC service solutions. From installation to maintenance and repair, we provide reliable services for all types of air conditioners. </p> <div class="container"> <div class="gallery-container"> <div class="gallery-card"> <img src="https://plus.unsplash.com/premium_photo-1683134512538-7b390d0adc9e?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Nnx8QUMlMjBTZXJ2aWNlfGVufDB8fDB8fHww" alt="AC Installation"> <div class="gallery-info"> <h4>AC Installation</h4> <p>Professional installation for home & office ACs</p> </div> </div> <div class="gallery-card"> <img src="https://plus.unsplash.com/premium_photo-1682145344450-34d8323dec84?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MXx8QUMlMjBTZXJ2aWNlfGVufDB8fDB8fHww" alt="AC Maintenance"> <div class="gallery-info"> <h4>AC Maintenance</h4> <p>Regular maintenance for optimal performance</p> </div> </div> <div class="gallery-card"> <img src="https://images.unsplash.com/photo-1718203862467-c33159fdc504?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8M3x8QUN8ZW58MHx8MHx8fDA%3D" alt="AC Repair"> <div class="gallery-info"> <h4>AC Repair</h4> <p>Quick and reliable repair services</p> </div> </div> <div class="gallery-card"> <img src="https://images.unsplash.com/photo-1705444509014-fed54b6191bf?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NHx8QUN8ZW58MHx8MHx8fDA%3D" alt="Air Filter Cleaning"> <div class="gallery-info"> <h4>Air Filter Cleaning</h4> <p>Ensuring clean and healthy air circulation</p> </div> </div> <div class="gallery-card"> <img src="https://plus.unsplash.com/premium_photo-1682126012378-859ca7a9f4cf?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTB8fEFDfGVufDB8fDB8fHww" alt="Duct Cleaning"> <div class="gallery-info"> <h4>Duct Cleaning</h4> <p>Comprehensive cleaning for AC ducts</p> </div> </div> <div class="gallery-card"> <img src="https://plus.unsplash.com/premium_photo-1682126009570-3fe2399162f7?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MjJ8fEFDfGVufDB8fDB8fHww" alt="Cooling Check"> <div class="gallery-info"> <h4>Cooling Check</h4> <p>Performance check for efficient cooling</p> </div> </div> </div> </div> </section> </body> </html>
CSS
body { font-family: 'Poppins', sans-serif; background: #f0f4f8; color: #333; } .gallery-section { padding: 90px 20px; text-align: center; background: #f0f4f8; } .gallery-section h2 { font-size: 2.8rem; font-weight: 700; color: #1e88e5; margin-bottom: 15px; } .gallery-section p { font-size: 1.15rem; color: #ffffff; max-width: 750px; margin: 0 auto 50px; } .twhite { color: #1e88e5 !important; } .gallery-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; } .gallery-card { position: relative; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 8px 25px rgba(0,0,0,0.12); transition: transform 0.5s ease, box-shadow 0.5s ease; opacity: 0; transform: translateY(60px); } .gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; } .gallery-card:hover img { transform: scale(1.1); } .gallery-card:hover { transform: translateY(-12px); box-shadow: 0 16px 35px rgba(0,0,0,0.25); } .gallery-info { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(30,136,229,0.85), rgba(30,136,229,0)); color: #fff; padding: 20px; text-align: left; } .gallery-info h4 { margin: 0; font-size: 1.25rem; font-weight: 600; } .gallery-info p { margin: 5px 0 0; opacity: 0.95; font-size: 0.95rem; }
JavaScript
// Scroll animation using IntersectionObserver const cards = document.querySelectorAll('.gallery-card'); const observer = new IntersectionObserver(entries => { entries.forEach(entry => { if(entry.isIntersecting){ entry.target.style.opacity = '1'; entry.target.style.transform = 'translateY(0)'; observer.unobserve(entry.target); } }); }, { threshold: 0.2 }); cards.forEach(card => observer.observe(card));
Output Preview
Desktop
Mobile
Fullscreen