Highly Attractive Image - 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>Highly Attractive Image</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background: #f0f0f0; margin: 0; font-family: Arial, sans-serif; } .image-container { position: relative; width: 300px; height: 400px; overflow: hidden; border-radius: 20px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); transition: transform 0.3s ease-in-out; } .image-container:hover { transform: scale(1.05); } .image-container img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; } .image-container .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); border-radius: 20px; display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease-in-out; } .image-container:hover .overlay { opacity: 1; } .image-container .overlay .content { text-align: center; color: white; } .image-container .overlay .content .icon { font-size: 50px; margin-bottom: 20px; } .image-container .overlay .content h3 { margin: 0; font-size: 24px; } .image-container .overlay .content p { margin: 10px 0 0; font-size: 18px; } .emoji { position: absolute; bottom: 10px; right: 10px; font-size: 30px; animation: float 2s infinite; } @keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } } </style> </head> <body> <div class="image-container"> <img src="https://via.placeholder.com/300x400" alt="Sample Image"> <div class="overlay"> <div class="content"> <div class="icon">✨</div> <h3>Stunning Image</h3> <p>Make your design shine!</p> </div> </div> <div class="emoji">😊</div> </div> </body> </html>