Professional Overlay - 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>Professional Overlay</title> <style> body, html { height: 100%; margin: 0; font-family: 'Arial', sans-serif; display: flex; justify-content: center; align-items: center; } .overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); display: none; z-index: 1000; animation: fadeIn 0.5s ease-in-out forwards; } @keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} } .overlay-content { position: relative; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; } .overlay-content h1 { font-size: 3em; margin: 0; animation: slideInDown 1s ease-in-out forwards; } @keyframes slideInDown { from {transform: translateY(-100px); opacity: 0;} to {transform: translateY(0); opacity: 1;} } .overlay-content p { font-size: 1.5em; margin: 20px 0; animation: slideInUp 1s ease-in-out forwards; } @keyframes slideInUp { from {transform: translateY(100px); opacity: 0;} to {transform: translateY(0); opacity: 1;} } .overlay-icons { margin-top: 30px; animation: bounceIn 1s ease-in-out forwards; } @keyframes bounceIn { from {transform: scale(0.5); opacity: 0;} to {transform: scale(1); opacity: 1;} } .overlay-icons i { font-size: 2em; margin: 0 10px; transition: transform 0.3s; } .overlay-icons i:hover { transform: scale(1.3); } .close-btn { position: absolute; top: 20px; color: #fff; right: 20px; font-size: 2em; cursor: pointer; animation: fadeIn 1.5s ease-in-out forwards; } .close-btn:hover { color: #ff4c4c; } .centered-button { padding: 10px 20px; font-size: 1.2em; background: rgba(0, 0, 0, 0.9); color: #fff; border: none; cursor: pointer; transition: background 0.3s; } .centered-button:hover { background: rgba(255, 76, 76, 0.9); } </style> </head> <body> <div class="overlay" id="myOverlay"> <div class="overlay-content"> <h1>Welcome to My Overlay! 🎉</h1> <p>Highly stylish and professional overlay design</p> <div class="overlay-icons"> <i class="fas fa-heart"></i> <i class="fas fa-star"></i> <i class="fas fa-smile"></i> </div> </div> <span class="close-btn" onclick="closeOverlay()">×</span> </div> <button class="centered-button" onclick="openOverlay()">Open Overlay</button> <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script> <script> function openOverlay() { document.getElementById('myOverlay').style.display = 'block'; } function closeOverlay() { document.getElementById('myOverlay').style.display = 'none'; } </script> </body> </html>