Circular Image Gallery - MeggiTools
Run
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Circular Image Gallery</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"> <style> body { font-family: 'Arial', sans-serif; background-color: #f8f8f8; margin: 0; padding: 20px; } .circular-gallery { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; } .circular-gallery .item { position: relative; overflow: hidden; cursor: pointer; width: 150px; height: 150px; border-radius: 50%; box-shadow: 0 4px 6px rgba(0,0,0,0.1); } .circular-gallery .item img { width: 100%; height: 100%; display: block; border-radius: 50%; transition: transform 0.3s ease; } .circular-gallery .item:hover img { transform: scale(1.1); } .circular-gallery .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); opacity: 0; display: flex; justify-content: center; align-items: center; transition: opacity 0.3s ease; border-radius: 50%; } .circular-gallery .item:hover .overlay { opacity: 1; } .circular-gallery .overlay .icon { color: #fff; font-size: 24px; margin: 0 10px; transition: transform 0.3s ease; } .circular-gallery .overlay .icon:hover { transform: scale(1.2); } h1{ text-align: center; } </style> </head> <body> <h1>✨ Circular Image Gallery ✨</h1> <div class="circular-gallery"> <div class="item"> <img src="https://via.placeholder.com/300" alt="Gallery Image 1"> <div class="overlay"> <i class="fas fa-search icon"></i> <i class="fas fa-heart icon"></i> </div> </div> <div class="item"> <img src="https://via.placeholder.com/300" alt="Gallery Image 2"> <div class="overlay"> <i class="fas fa-search icon"></i> <i class="fas fa-heart icon"></i> </div> </div> <div class="item"> <img src="https://via.placeholder.com/300" alt="Gallery Image 3"> <div class="overlay"> <i class="fas fa-search icon"></i> <i class="fas fa-heart icon"></i> </div> </div> </div> </body> </html>