Light Gradient 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>Light Gradient Header</title> <style> body { margin: 0; font-family: 'Arial', sans-serif; background-color: #f0f0f0; } .header { background: linear-gradient(45deg, #ff9a9e, #fad0c4); 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; display: inline-block; text-decoration: none; } .header-icons a:hover { color: #ff6f61; } .emoji-pulse { display: inline-block; animation: pulse 1s infinite alternate; } @keyframes pulse { from { transform: scale(1); } to { transform: scale(1.1); } } </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> </header> </body> </html>