Modern Blue Header - 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"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"> <title>Modern Blue Header</title> <style> body { margin: 0; font-family: 'Arial', sans-serif; background-color: #f0f0f0; } .header { background-color: #2196f3; color: white; padding: 20px 0; position: relative; z-index: 1000; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); overflow: hidden; } .header-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; } .logo { display: flex; align-items: center; font-size: 24px; font-weight: bold; text-transform: uppercase; } .logo img { margin-right: 10px; width: 40px; height: 40px; } .nav-links { display: flex; gap: 20px; } .nav-links a { color: white; text-decoration: none; font-size: 18px; position: relative; } .nav-links a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 100%; height: 2px; background-color: white; transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease; } .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; } .cta-button { background-color: #ff6f61; color: white; border: none; padding: 10px 20px; border-radius: 25px; cursor: pointer; transition: background-color 0.3s ease; } .cta-button:hover { background-color: #e65a50; } .header-icons { display: flex; gap: 15px; font-size: 20px; } .header-icons a { color: white; transition: color 0.3s ease; text-decoration: none; display: inline-block; animation: float-icon 5s infinite alternate ease-in-out; } .header-icons a:hover { color: #ff6f61; } @keyframes float-icon { from { transform: translateY(0); } to { transform: translateY(-10px); } } .abstract-shapes { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; } .shape { position: absolute; width: 200px; height: 200px; background-color: rgba(255, 255, 255, 0.1); border-radius: 50%; animation: move-shape 10s infinite alternate ease-in-out; } .shape1 { top: -50px; left: -50px; } .shape2 { bottom: -50px; right: -50px; } @keyframes move-shape { from { transform: translate(0, 0); } to { transform: translate(50px, 50px); } } .emoji-bounce { display: inline-block; animation: bounce 1s infinite alternate; } @keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-10px); } } </style> </head> <body> <header class="header"> <div class="header-container"> <div class="logo"> <img src="logo.png" alt="Logo"> <span>My Brand</span> </div> <nav class="nav-links"> <a href="#home">Home</a> <a href="#about">About</a> <a href="#services">Services</a> <a href="#contact">Contact</a> </nav> <button type="button" class="cta-button">Get Started</button> <div class="header-icons"> <a href="#" title="Facebook" class="emoji-bounce"><i class="fab fa-facebook-f"></i></a> <a href="#" title="Twitter" class="emoji-bounce"><i class="fab fa-twitter"></i></a> <a href="#" title="Instagram" class="emoji-bounce"><i class="fab fa-instagram"></i></a> <a href="#" title="LinkedIn" class="emoji-bounce"><i class="fab fa-linkedin-in"></i></a> <a href="#" title="Youtube" class="emoji-bounce"><i class="fab fa-youtube"></i></a> </div> </div> <div class="abstract-shapes"> <div class="shape shape1"></div> <div class="shape shape2"></div> </div> </header> </body> </html>