Bubble 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>Bubble Button</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #fff; margin: 0; } .bubble-button { padding: 20px 40px; font-size: 18px; font-weight: bold; color: #fff; background: #8e44ad; border: none; border-radius: 30px; cursor: pointer; outline: none; transition: all 0.3s ease; position: relative; } .bubble-button::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 30px; background: rgba(142, 68, 173, 0.5); transform: scale(0); transition: transform 0.5s ease; } .bubble-button:hover::before { transform: scale(1.5); opacity: 0; } .bubble-button span { position: relative; z-index: 1; } </style> </head> <body> <button type="button" class="bubble-button"> <span>Bubble</span> </button> </body> </html>