Liquid 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>Liquid Button</title> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #fafafa; margin: 0; } .liquid-button { padding: 20px 40px; font-size: 18px; font-weight: bold; color: #fff; background: #2980b9; border: none; border-radius: 30px; cursor: pointer; outline: none; transition: all 0.3s ease; position: relative; overflow: hidden; } .liquid-button::before, .liquid-button::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 30px; z-index: -1; } .liquid-button::before { background: rgba(255, 255, 255, 0.2); transform: scale(1); transition: transform 0.5s ease; } .liquid-button::after { background: rgba(255, 255, 255, 0.1); transform: scale(0.9); transition: transform 0.5s ease; } .liquid-button:hover::before { transform: scale(0.9); } .liquid-button:hover::after { transform: scale(1); } .liquid-button span { position: relative; z-index: 1; } </style> </head> <body> <button type="button" class="liquid-button"> <span>Liquid</span> </button> </body> </html>