Car Washing 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>Car Washing 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>Car Washing Center Gallery</h2> <p class="twhite"> Explore our car washing and detailing services. From exterior washes to full detailing, we ensure your vehicle looks spotless and shines. </p> <div class="container"> <div class="gallery-container"> <div class="gallery-card"> <img src="https://images.unsplash.com/photo-1520340356584-f9917d1eea6f?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8M3x8Q2FyJTIwV2FzaGluZ3xlbnwwfHwwfHx8MA%3D%3D" alt="Exterior Wash"> <div class="gallery-info"> <h4>Exterior Wash</h4> <p>Thorough cleaning of car exteriors</p> </div> </div> <div class="gallery-card"> <img src="https://plus.unsplash.com/premium_photo-1661909961389-7d501737abde?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTB8fGNhciUyMGRldGFpbGluZ3xlbnwwfHwwfHx8MA%3D%3D" alt="Interior Cleaning"> <div class="gallery-info"> <h4>Interior Cleaning</h4> <p>Deep cleaning of seats and carpets</p> </div> </div> <div class="gallery-card"> <img src="https://images.unsplash.com/photo-1607860108855-64acf2078ed9?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NHx8Q2FyJTIwV2FzaGluZ3xlbnwwfHwwfHx8MA%3D%3D" alt="Waxing & Polishing"> <div class="gallery-info"> <h4>Waxing & Polishing</h4> <p>Protective shine and long-lasting polish</p> </div> </div> <div class="gallery-card"> <img src="https://images.unsplash.com/photo-1694025893767-9a212606fbc5?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NXx8Q2FyJTIwV2FzaGluZ3xlbnwwfHwwfHx8MA%3D%3D" alt="Full Detailing"> <div class="gallery-info"> <h4>Full Detailing</h4> <p>Comprehensive cleaning inside and out</p> </div> </div> <div class="gallery-card"> <img src="https://images.unsplash.com/photo-1527581849771-416a9d62308e?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mjl8fENhciUyMFdhc2hpbmd8ZW58MHx8MHx8fDA%3D" alt="Engine Cleaning"> <div class="gallery-info"> <h4>Engine Cleaning</h4> <p>Safe and effective engine cleaning</p> </div> </div> <div class="gallery-card"> <img src="https://plus.unsplash.com/premium_photo-1661501041641-3e731115e687?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTR8fENhciUyMFdhc2hpbmd8ZW58MHx8MHx8fDA%3D" alt="Tire & Rim Care"> <div class="gallery-info"> <h4>Tire & Rim Care</h4> <p>Shiny rims and clean tires for a perfect look</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