3D Button #153

CSS 3D 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 style

Disabled style

Full width block style

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
Button HTML
<button class="btn-153">
  <span>Button 153</span>
</button>
Button CSS
.btn-153 {
    position: relative;
    border: none;
    padding: 0 8px 12px;
    box-sizing: border-box;
    background: transparent;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    /*** full width block ***/
    /* width: 100%; */
}

.btn-153 span {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 0;
    padding: 12px 28px;
    text-align: center;
    color: #fff;
    text-shadow: 0 -1px rgba(0, 0, 0, .25);
    transition-property: transform;
    transition-duration: .2s;
    width: 100%;
    height: 100%;
    font-weight: bold;
    font-size: 14px;
}

.btn-153:active span {
    transform: translateY(6px);
}

.btn-153 span::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 4px;
    width: 100%;
    height: 100%;
    box-sizing: content-box;
    background-image: radial-gradient(#885f21, #e08600);
    text-align: center;
    color: #fff;
    box-shadow: inset 0 0 0px 1px rgba(255, 255, 255, .2), 0 1px 2px 1px rgba(255, 255, 255, .2);
    transition-property: border-radius, padding, width, transform;
    transition-duration: .2s;
}

.btn-153:active span::after {
    border-radius: 6px;
    padding: 0 2px;
}

.btn-153:active::after {
    border-radius: 10px 10px 8px 8px / 8px;
    padding-top: 0;
}

.btn-153::after {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: 4px;
    left: 4px;
    border-radius: 8px / 16px 16px 8px 8px;
    padding-top: 6px;
    width: calc(100% - 8px);
    height: calc(100% - 10px);
    box-sizing: content-box;
    background-color: #cc7900;
    background-image: radial-gradient(4px 8px at 4px calc(100% - 8px), rgba(255, 255, 255, .25), transparent),
      radial-gradient(4px 8px at calc(100% - 4px) calc(100% - 8px), rgba(255, 255, 255, .25), transparent),
      radial-gradient(16px at -4px 0, white, transparent), 
      radial-gradient(16px at calc(100% + 4px) 0, white, transparent);
    box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.5), inset 0 -1px 3px 3px rgba(0, 0, 0, .4);
    transition-property: border-radius, padding-top;
    transition-duration: .2s;
}

/*** disabled style ***/
.btn-153:disabled {
    pointer-events: none;
    opacity: .65;
    color: #7e7e7e;
    background: none;
    text-shadow: none;
    box-shadow: none;
}

.btn-153:disabled span::after {
    background-image: radial-gradient(#dcdcdc, #535353);
}

.btn-153:disabled span {
    color: #000000;
    text-shadow: none;
}

.btn-153:disabled::after {
    background-color: #2b2a2a;
    box-shadow: none;
}