Futuristic 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>Futuristic Section</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"> <style> body { margin: 0; padding: 0; font-family: 'Verdana', sans-serif; background: linear-gradient(135deg, #cfd9df, #e2ebf0); display: flex; justify-content: center; align-items: center; height: 100vh; } .futuristic-section { background: #ffffff; border-radius: 20px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); padding: 60px; text-align: center; width: 70%; max-width: 850px; animation: slideIn 1s ease-out; } .futuristic-section h1 { font-size: 2.8em; margin-bottom: 25px; color: #555; font-weight: 800; } .futuristic-section p { font-size: 1.1em; color: #666; margin-bottom: 30px; } .futuristic-section button { background: #cfd9df; color: #333; border: none; padding: 15px 25px; font-size: 1em; border-radius: 10px; cursor: pointer; transition: background 0.3s ease; } .futuristic-section button:hover { background: #333; color: #cfd9df; } @keyframes slideIn { from { transform: translateX(-100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } } </style> </head> <body> <div class="futuristic-section"> <h1>Futuristic Design</h1> <p>Maecenas tempus, nulla eget varius mattis, nisl orci facilisis est, ac laoreet lacus nulla eget dui.</p> <button>See More <i class="fas fa-arrow-right"></i></button> </div> <script> document.querySelector('button').addEventListener('click', function() { alert('Discover the Futuristic Design!'); }); </script> </body> </html>