Sunny Day Button - 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>Sunny Day Button</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background: #f0f4f8; font-family: 'Arial', sans-serif; } .neumorphism-button { display: flex; align-items: center; justify-content: center; padding: 20px 40px; background: #f0f4f8; border-radius: 50px; box-shadow: 10px 10px 20px #d1d9e6, -10px -10px 20px #ffffff; font-size: 18px; color: #333; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; } .neumorphism-button:before { content: ''; position: absolute; top: 50%; left: 50%; width: 300%; height: 300%; background: rgba(255, 223, 186, 0.3); transition: all 0.3s ease; transform: translate(-50%, -50%) scale(0); border-radius: 50%; } .neumorphism-button:hover { box-shadow: 5px 5px 10px #d1d9e6, -5px -5px 10px #ffffff; } .neumorphism-button:hover:before { transform: translate(-50%, -50%) scale(1); } .neumorphism-button span { margin-left: 10px; transition: transform 0.3s ease; } .neumorphism-button:hover span { transform: rotate(-20deg); } .emoji { font-size: 24px; } .icon { margin-left: 10px; font-size: 20px; transition: transform 0.3s ease; } .neumorphism-button:hover .icon { transform: rotate(20deg); } </style> </head> <body> <div class="neumorphism-button" onclick="handleClick()"> <div class="emoji">🌞</div> <span>Good Day</span> <div class="icon">☀️</div> </div> <script> function handleClick() { alert("Have a Sunny Day!"); } </script> </body> </html>