3D Button #176

CSS 3D 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-176">
    <span>Button 176</span>
</button>
Button CSS
.btn-176 {
    outline: none;
    border: none;
    background: #ffaf02;
    padding: 10px 9px;
    position: relative;
    margin: 20px 0 40px 20px;
    box-shadow: 10px 10px 2px 0px rgba(168, 168, 168, 0.72);
    color: white;
    font-weight: 800;
    transition: all 0.1s;
    top: 0;
    left: 0;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    /*** full width block ***/
    /* width: 100%; */
}

.btn-176::before {
    content: "";
    display: inline-block;
    height: 100%;
    width: 20px;
    background: #ffc547;
    position: absolute;
    top: 10px;
    left: -20px;
    transform: skewY(-45deg);
    transition: all 0.1s;
}

.btn-176::after {
    content: "";
    display: inline-block;
    width: 100%;
    height: 20px;
    background: #db9500;
    position: absolute;
    top: 100%;
    right: 10px;
    transform: skewX(-45deg);
    box-shadow: 20px 10px 3px 0px rgba(0, 0, 0, 0.3);
    transition: all 0.1s;
}

.btn-176:active {
    top: 10px;
    left: -10px;
}

.btn-176:active::before {
    width: 10px;
    left: -10px;
    top: 5px;
}

.btn-176:active::after {
    height: 10px;
    right: 5px;
}

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

.btn-176:disabled::before,
.btn-176:disabled::after {
    color: #7e7e7e;
    background: #dcdcdc;
    box-shadow: none;
}