Animated 3D Buttons #173
CSS hover Animated 3D buttons
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
<button class="btn-173">
<span>Button 173</span>
<span>Button 173</span>
<span>Button 173</span>
<span>Button 173</span>
</button>
.btn-173 {
position: relative;
width: 150px;
height: 50px;
transition: 4s;
transform-style: preserve-3d;
transform: perspective(1000px) rotateX(0deg);
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
cursor: pointer;
text-decoration: none;
user-select: none;
display: inline-flex;
justify-content: center;
align-items: center;
border: none;
padding: 0;
background: none;
/*** full width block ***/
/* width: 100%; */
}
.btn-173:hover {
transform: perspective(1000px) rotateX(-360deg);
}
.btn-173 span {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
color: #000;
background: rgba(255, 255, 255, 0.9);
font-family: sans-serif;
font-size: 18px;
transition: 0.5s;
border: 1px solid #5e5e5e;
box-sizing: border-box;
}
.btn-173:hover span {
color: #fff;
background: rgba(244, 3, 3, 0.7);
}
.btn-173 span:nth-child(1) {
transform: rotateX(360deg) translateZ(25px);
}
.btn-173 span:nth-child(2) {
transform: rotateX(270deg) translateZ(25px);
}
.btn-173 span:nth-child(3) {
transform: rotateX(180deg) translateZ(25px);
}
.btn-173 span:nth-child(4) {
transform: rotateX(90deg) translateZ(25px);
}
/*** disabled style ***/
.btn-173:disabled {
pointer-events: none;
opacity: .65;
color: #7e7e7e;
background: #dcdcdc;
box-shadow: none;
text-shadow: none;
}
.btn-173:disabled span {
color: #7e7e7e;
background: #dcdcdc;
}
.btn-173:disabled span:nth-child(3) {
transform: rotateX(0) translateZ(0);
}