Vibrant Flip 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>Vibrant Flip Notification</title> <style> body { margin: 0; font-family: 'Verdana', sans-serif; } .notification-bar { position: fixed; top: 0; left: 0; width: 100%; background: #ff5f6d; background: linear-gradient(to right, #ff9966, #ff5f6d); color: white; text-align: center; padding: 15px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); z-index: 1000; display: flex; justify-content: center; align-items: center; animation: flipIn 0.6s ease-out; } .notification-bar .icon { margin-right: 10px; animation: shake 1.5s 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 flipIn { from { transform: rotateX(-90deg); opacity: 0; } to { transform: rotateX(0); opacity: 1; } } @keyframes shake { 0%, 100% { transform: translateX(0); } 10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); } 20%, 40%, 60%, 80% { transform: translateX(10px); } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes flipOut { from { transform: rotateX(0); opacity: 1; } to { transform: rotateX(-90deg); opacity: 0; } } </style> </head> <body> <div class="notification-bar" id="notificationBar"> <div class="icon">🚀</div> <div class="message">Check out the Vibrant Flip Notification Bar!</div> <button class="close-btn" onclick="closeNotification()">✖</button> </div> <script> function closeNotification() { const bar = document.getElementById('notificationBar'); bar.style.animation = 'flipOut 0.6s ease-in'; setTimeout(() => bar.style.display = 'none', 600); } </script> </body> </html>