Cloudy 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>Cloudy Button</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background: #d3d6db; font-family: 'Arial', sans-serif; } .neumorphism-button { display: flex; align-items: center; justify-content: center; padding: 20px 40px; background: #d3d6db; border-radius: 50px; box-shadow: 12px 12px 24px #a6a9ad, -12px -12px 24px #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(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 #a6a9ad, -6px -6px 12px #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(15deg); } .emoji { font-size: 24px; } .icon { margin-left: 10px; font-size: 20px; transition: transform 0.3s ease; } .neumorphism-button:hover .icon { transform: rotate(-15deg); } </style> </head> <body> <div class="neumorphism-button" onclick="handleClick()"> <div class="emoji">☁️</div> <span>Cloudy</span> <div class="icon">🌥️</div> </div> <script> function handleClick() { alert("It's a Cloudy Day!"); } </script> </body> </html>