Background Glass Style Gradient Button #124
CSS Background glass style gradient button
Adding these style CSS buttons to your website is easier than you think. Simply copy and paste the CSS code provided with each button design into your stylesheet
Preview Button Style
You can view the default style of buttons, the disabled state mode style of buttons, and the full-width block style of the button here. Some buttons style may not display in full width format
Button Source Code HTML and CSS
Click the button below to download the source code or edit it live.
To copy this click on the icon at the top right of the code box
.btn-124 {
font-size: 18px;
color: #234b53;
background-image: linear-gradient(180deg, #c9c2f0 30%, transparent 70%);
background-repeat: no-repeat;
background-position: center 45%;
background-size: 100% 200%;
padding: 15px 28px;
border-radius: 20px;
border: none;
box-shadow: rgba(0, 0, 0, 0.2) 0 60px 40px -7px;
position: relative;
transition: all 0.5s ease;
outline: none;
font-family: Arial, Helvetica, sans-serif;
cursor: pointer;
text-decoration: none;
user-select: none;
display: inline-flex;
justify-content: center;
align-items: center;
box-sizing: border-box;
/*** full width block ***/
/* width: 100%; */
}
.btn-124::before,
.btn-124::after {
content: "";
inset: 0;
position: absolute;
border-radius: 20px;
}
.btn-124::before {
background-image: radial-gradient(ellipse, rgba(204, 246, 255, 0.8) 20%, transparent 50%, transparent 200%), linear-gradient(90deg, #404040 -10%, transparent 30%, transparent 70%, #404040 110%);
box-shadow: inset 0 0.25em 0.75em rgba(0, 0, 0, 0.8), inset 0 -0.05em 0.2em rgba(255, 255, 255, 0.4), inset 0 -1px 3px rgba(25, 196, 230, 0.75);
background-blend-mode: overlay;
background-repeat: no-repeat;
background-size: 200% 80%, cover;
background-position: center 220%;
mix-blend-mode: overlay;
filter: blur(0);
}
.btn-124::after {
background: linear-gradient(180deg, rgba(213, 204, 255, 0.726), rgba(92, 74, 181, 0.75) 40%, transparent 80%);
top: 0.075em;
left: 0.75em;
right: 0.75em;
bottom: 1.4em;
filter: blur(1px);
mix-blend-mode: screen;
}
.btn-124:hover,
.btn-124:active,
.btn-124:focus {
outline: none;
box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
background-position: center calc(45% - 0.75em);
}
/*** disabled style ***/
.btn-124:disabled {
pointer-events: none;
opacity: .65;
color: #7e7e7e;
background: #dcdcdc;
text-shadow: none;
box-shadow: none;
}