Elegant Twilight Jumbotron - 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>Elegant Twilight Jumbotron</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> <style> body { margin: 0; font-family: Arial, sans-serif; background: linear-gradient(to right, rgba(75, 0, 130, 0.5), rgba(148, 0, 211, 0.5)); height: 100vh; display: flex; justify-content: center; align-items: center; } .jumbotron { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; width: 80%; max-width: 600px; background: rgba(255, 255, 255, 0.3); border-radius: 15px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); text-align: center; position: relative; animation: popIn 1s ease-out; } .jumbotron::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1)); border-radius: 15px; z-index: -1; } .jumbotron h1 { font-size: 3.5rem; margin: 0; color: #fff; animation: fadeIn 2s ease-out; } .jumbotron p { font-size: 1.4rem; margin: 1rem 0; color: #fff; animation: fadeIn 2s ease-out 0.5s; } .jumbotron .btn { display: inline-flex; align-items: center; background: #4b0082; color: #fff; padding: 0.8rem 1.6rem; border: none; border-radius: 25px; font-size: 1.2rem; cursor: pointer; text-decoration: none; transition: background 0.3s, transform 0.3s; animation: fadeIn 2s ease-out 1s; } .jumbotron .btn:hover { background: #3a007f; transform: scale(1.05); } .jumbotron .btn i { margin-right: 0.5rem; } @keyframes popIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } </style> </head> <body> <div class="jumbotron"> <h1>Twilight Elegance</h1> <p>Embrace the elegance of twilight with our sophisticated jumbotron design.</p> <a href="#" class="btn"><i class="fas fa-moon"></i> Discover More</a> </div> </body> </html>