Button
Preview
Edit
Download
Run
Download Options
HTML File
Download as .html file
CSS File
Download as .css file
JavaScript File
Download as .js file
Combined HTML
All code in one HTML file
Project ZIP
All files in a ZIP archive
Cancel
HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <title>Advanced Animated Button</title> </head> <body> <button class="glass-button">Click Me</button> </body> </html>
CSS
body { margin: 0; height: 100vh; display: flex; justify-content: center; align-items: center; background: #0f0f2d; font-family: sans-serif; } .glass-button { position: relative; padding: 1rem 2.5rem; font-size: 1.2rem; color: #fff; border: none; border-radius: 60px; cursor: pointer; background: linear-gradient(135deg, #6e00ff, #ff4ecd); background-size: 300% 300%; box-shadow: 0 0 20px rgba(255, 78, 205, 0.4); transition: all 0.4s ease; overflow: hidden; z-index: 1; } .glass-button::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: inherit; border-radius: inherit; filter: blur(10px); opacity: 0.6; z-index: -1; transition: 0.5s ease; } .glass-button::after { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255, 255, 255, 0.3); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.4s ease, height 0.4s ease; z-index: 0; } .glass-button:hover { background-position: right center; box-shadow: 0 0 25px rgba(255, 78, 205, 0.6); } .glass-button:active::after { width: 200px; height: 200px; transition: 0s; } @media (max-width: 600px) { .glass-button { padding: 0.8rem 2rem; font-size: 1rem; } }
JavaScript
Output Preview
Desktop
Mobile
Fullscreen