Midnight Blue Section - 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>Midnight Blue Section</title> <style> body { font-family: 'Arial', sans-serif; background-color: #2c3e50; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .neumorphism-section { width: 80%; max-width: 1200px; padding: 2rem; border-radius: 20px; background: #2c3e50; background-image: linear-gradient(to top left, rgba(0, 0, 0, .2), rgba(0, 0, 0, .2) 30%, rgba(0, 0, 0, 0)); box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .6), inset -2px -2px 3px rgba(0, 0, 0, .6), 5px 5px 15px rgba(0, 0, 0, 0.1), -5px -5px 15px rgba(255, 255, 255, 0.5); position: relative; overflow: hidden; } .neumorphism-section::before { content: ''; position: absolute; top: 0; left: 50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1), rgba(255,255,255,0) 70%); transform: translateX(-50%) scaleY(0.5); pointer-events: none; animation: glow 10s linear infinite; } @keyframes glow { 0%, 100% { transform: translateX(-50%) scaleY(0.5) translateY(0); } 50% { transform: translateX(-50%) scaleY(0.5) translateY(10px); } } .neumorphism-section h1 { color: #f5f5f5; text-align: center; font-size: 2.5rem; margin-bottom: 1.5rem; } .neumorphism-section p { color: #ccc; font-size: 1.1rem; line-height: 1.6; text-align: center; } .icon { font-size: 2rem; color: #2980b9; margin: 0 0.5rem; display: inline-block; transition: transform 0.3s ease; } .icon:hover { transform: translateY(-5px); } .icon-animation { display: flex; justify-content: center; margin-top: 1.5rem; } .icon-animation i { animation: bounce 2s infinite; } @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } } .neumorphism-button { display: block; margin: 2rem auto 0; padding: 0.75rem 2rem; border: none; border-radius: 30px; background: #2980b9; color: white; font-size: 1rem; cursor: pointer; box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2), -2px -2px 5px rgba(255, 255, 255, 0.7); transition: transform 0.3s ease; } .neumorphism-button:hover { transform: translateY(-3px); } .neumorphism-button:active { transform: translateY(0); } </style> <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script> </head> <body> <div class="neumorphism-section"> <h1>Welcome to Midnight Blue</h1> <p>This section showcases a professional Neumorphism design with unique styles, animations, and icons. The Neumorphism effect is achieved through careful use of shadows and gradients.</p> <div class="icon-animation"> <i class="icon fas fa-heart"></i> <i class="icon fas fa-star"></i> <i class="icon fas fa-thumbs-up"></i> </div> <button class="neumorphism-button">Learn More</button> </div> </body> </html>