Ripple 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>Ripple Button</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #1e1e1e; margin: 0; } .ripple-button { padding: 20px 40px; font-size: 18px; font-weight: bold; color: #fff; background: #e74c3c; border: none; border-radius: 30px; cursor: pointer; outline: none; overflow: hidden; position: relative; } .ripple-button:before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); width: 300%; height: 300%; background: rgba(255, 255, 255, 0.3); border-radius: 50%; transition: all 0.3s ease; } .ripple-button:hover:before { transform: translate(-50%, -50%) scale(1); opacity: 0; } .ripple-button span { position: relative; z-index: 1; } </style> </head> <body> <button type="button" class="ripple-button"> <span>Ripple</span> </button> </body> </html>