WEBLEB
Startseite
Editor
Anmelden
Pro
Deutsch
English
Français
Español
Português
Deutsch
Italiano
हिंदी
HTML
CSS
JS
Animated Button
Download
body{ background-color: #1f2029; overflow: hidden; display: flex; justify-content: center; align-items: center; height: 100vh; } .button { position: relative; overflow: hidden; height: 3rem; padding: 0 2rem; border-radius: 1.5rem; background: #3d3a4e; background-size: 400%; color: #fff; border: none; cursor: pointer; } .button:hover::before { transform: scaleX(1); } .button-content { position: relative; z-index: 1; } .button::before { content: ""; position: absolute; top: 0; left: 0; transform: scaleX(0); transform-origin: 0 50%; width: 100%; height: inherit; border-radius: inherit; background: linear-gradient( 82.3deg, rgba(150, 93, 233, 1) 10.8%, rgba(99, 88, 238, 1) 94.3% ); transition: all 0.475s; }
/* Replace with your JS Code (Leave empty if not needed) */
Validating your code, please wait...
HTML
CSS
JS
Animated Button
Download
body{ background-color: #1f2029; overflow: hidden; display: flex; justify-content: center; align-items: center; height: 100vh; } .button { position: relative; overflow: hidden; height: 3rem; padding: 0 2rem; border-radius: 1.5rem; background: #3d3a4e; background-size: 400%; color: #fff; border: none; cursor: pointer; } .button:hover::before { transform: scaleX(1); } .button-content { position: relative; z-index: 1; } .button::before { content: ""; position: absolute; top: 0; left: 0; transform: scaleX(0); transform-origin: 0 50%; width: 100%; height: inherit; border-radius: inherit; background: linear-gradient( 82.3deg, rgba(150, 93, 233, 1) 10.8%, rgba(99, 88, 238, 1) 94.3% ); transition: all 0.475s; }
/* Replace with your JS Code (Leave empty if not needed) */