Rainy 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>Rainy Button</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background: #a1c4fd; font-family: 'Arial', sans-serif; } .neumorphism-button { display: flex; align-items: center; justify-content: center; padding: 20px 40px; background: #a1c4fd; border-radius: 50px; box-shadow: 12px 12px 24px #8198cf, -12px -12px 24px #c1e4ff; 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(173, 216, 230, 0.3); transition: all 0.3s ease; transform: translate(-50%, -50%) scale(0); border-radius: 50%; } .neumorphism-button:hover { box-shadow: 6px 6px 12px #8198cf, -6px -6px 12px #c1e4ff; } .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(10deg); } .emoji { font-size: 24px; } .icon { margin-left: 10px; font-size: 20px; transition: transform 0.3s ease; } .neumorphism-button:hover .icon { transform: rotate(-10deg); } </style> </head> <body> <div class="neumorphism-button" onclick="handleClick()"> <div class="emoji">🌧️</div> <span>Rainy</span> <div class="icon">☔</div> </div> <script> function handleClick() { alert("Enjoy the Rainy Day!"); } </script> </body> </html>