Professional Notification Bar - 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 Notification Bar</title> <style> body { margin: 0; font-family: Arial, sans-serif; } .notification-bar { position: fixed; top: 0; left: 0; width: 100%; background: linear-gradient(to right, #4e54c8, #8f94fb); color: white; text-align: center; padding: 15px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); z-index: 1000; display: flex; justify-content: center; align-items: center; animation: slideDown 0.5s ease-out; } .notification-bar .icon { margin-right: 10px; animation: bounce 1.5s infinite; } .notification-bar .message { flex: 1; font-size: 1.2em; animation: fadeIn 2s ease-in-out; } .notification-bar .close-btn { background: none; border: none; color: white; font-size: 1.2em; cursor: pointer; animation: fadeIn 2s ease-in-out; margin-right: 30px; } @keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } } @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-15px); } 60% { transform: translateY(-10px); } } @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">This is a highly professional 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>