Modern Glow Notification - 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>Modern Glow Notification</title> <style> body { margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } .notification-bar { position: fixed; top: 0; left: 0; width: 100%; background: #111; color: white; text-align: center; padding: 15px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); z-index: 1000; display: flex; justify-content: center; align-items: center; animation: slideDown 0.5s ease-out; } .notification-bar .icon { margin-right: 10px; animation: pulse 2s infinite; } .notification-bar .message { flex: 1; font-size: 1.2em; animation: fadeIn 1.5s ease-in-out; } .notification-bar .close-btn { background: none; border: none; color: white; font-size: 1.2em; cursor: pointer; animation: fadeIn 1.5s ease-in-out; margin-right: 30px; } @keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } } @keyframes pulse { 0% { transform: scale(1); box-shadow: 0 0 5px #fff; } 50% { transform: scale(1.1); box-shadow: 0 0 20px #ffcc00; } 100% { transform: scale(1); box-shadow: 0 0 5px #fff; } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideUp { from { transform: translateY(0); } to { transform: translateY(-100%); } } </style> </head> <body> <div class="notification-bar" id="notificationBar"> <div class="icon">✨</div> <div class="message">Welcome to the Modern Glow Notification Bar!</div> <button class="close-btn" onclick="closeNotification()">✖</button> </div> <script> function closeNotification() { const bar = document.getElementById('notificationBar'); bar.style.animation = 'slideUp 0.5s ease-in'; setTimeout(() => bar.style.display = 'none', 500); } </script> </body> </html>