Glowing Border 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>Glowing Border Image</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background: #121212; margin: 0; font-family: Arial, sans-serif; } .image-container { position: relative; width: 300px; height: 400px; overflow: hidden; border-radius: 20px; transition: transform 0.6s; transform-style: preserve-3d; } .image-container:hover { transform: rotateY(180deg); } .image-container img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; transition: box-shadow 0.6s; } .image-container:hover img { box-shadow: 0 0 20px 10px #ff00ff; } .image-container .back { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); border-radius: 20px; display: flex; justify-content: center; align-items: center; color: white; transform: rotateY(180deg); backface-visibility: hidden; } .image-container .back .content { text-align: center; } .image-container .back .content .icon { font-size: 50px; margin-bottom: 20px; } </style> </head> <body> <div class="image-container"> <img src="https://via.placeholder.com/300x400" alt="Sample Image"> <div class="back"> <div class="content"> <div class="icon">🔥</div> <h3>Hot Image</h3> <p>Feel the heat!</p> </div> </div> </div> <script> // Additional JS (if needed) can be added here </script> </body> </html>