Playful 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>Playful 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: 'Comic Sans MS', cursive; background: linear-gradient(135deg, #ffafbd, #ffc3a0); display: flex; justify-content: center; align-items: center; height: 100vh; } .playful-section { background: #ffffff; border-radius: 25px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); padding: 50px; text-align: center; width: 90%; max-width: 1000px; animation: bounceIn 1s ease-out; } .playful-section h1 { font-size: 2.8em; margin-bottom: 25px; color: #333; font-weight: bold; } .playful-section p { font-size: 1.3em; color: #555; margin-bottom: 30px; } .playful-section button { background: #ffafbd; color: #fff; border: none; padding: 15px 30px; font-size: 1em; border-radius: 50px; cursor: pointer; transition: background 0.3s ease; } .playful-section button:hover { background: #ffc3a0; color: #ffafbd; } @keyframes bounceIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } } </style> </head> <body> <div class="playful-section"> <h1>Playful Design</h1> <p>Vivamus non ligula at orci sodales vestibulum. Pellentesque habitant morbi tristique senectus et netus.</p> <button>Join Now <i class="fas fa-arrow-right"></i></button> </div> <script> document.querySelector('button').addEventListener('click', function() { alert('Join the Playful Design!'); }); </script> </body> </html>