14+ CSS 3D Button Examples

This post contains a total of 14+ Hand-Picked CSS 3D Button Examples with Source Code. All the 3D ( Three Dimensional ) Buttons are made using CSS.

You can use the source code of these examples for educational purpose with credits to the original owner.

Related Posts

Click a Code to Copy it.

1. By Stephen Lee

Made by Stephen Lee. Big blocky 3D button. ( Source )

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title></title>
<style>
body {
  margin: 0;
  overflow: hidden;
}

.main {
  height: 100vh;
  width: 100vw;
  display: flex;
  perspective: 2500px;
  perspective-origin: 45% 60%;
}

.container {
  position: relative;
  top: 0;
  left: 0;
  height: 207px;
  width: 360px;
  margin: auto;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  transform: translateY(33px) rotateX(40deg) rotateY(-4deg) rotateZ(34deg);
}

.wholeBox {
  position: relative;
  top: 0;
  left: 0;
  margin: auto;
  width: 360px;
  height: 207px;
  cursor: pointer;
  user-select: none;
  transform-style: preserve-3d;
}

.mybutton {
  position: absolute;
  margin-left: -9999px;
  visibility: hidden;
}

input.mybutton + label {
  position: absolute;
  margin: auto;
  width: 360px;
  height: 207px;
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.boxTop {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  margin: 0;
  padding-top: 55px;
  color: white;
  font-family: "Barrio";
  font-size: 100px;
  text-align: center;
  user-select: none;
  z-index: 99999;
  background-color: #C6E5D9;
  width: 360px;
  height: 207px;
  transform: translateZ(108px);
}

.paintBucket {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  margin: 0;
  padding-top: 80px;
  width: 360px;
  height: 207px;
  border-radius: 100%;
  z-index: 1;
  background-color: #E94E77;
  transform-origin: 50% 50%;
  transform: translateZ(0px) scale(0, 0);
}

.boxRightSide {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  background-color: #F4EAD5;
  width: 108px;
  height: 207px;
  z-index: -10;
  transform-origin: 0 50%;
  transform: translateX(360px) translateZ(108px) rotateY(90deg);
}

.boxBottomSide {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #C6A49A;
  width: 360px;
  height: 108px;
  z-index: -10;
  transform-origin: 50% 0%;
  transform: translateY(207px) translateZ(108px) rotateX(-90deg);
}

.boxRightMask, .boxBottomMask {
  position: absolute;
  background-color: white;
  z-index: -1;
  transition: all 0.2s linear calc(0.2s*1) !important;
}

.boxRightMask {
  top: 0;
  left: 0;
  margin: 0;
  width: 108px;
  height: 315px;
  transform-origin: 0 50%;
  transform: translateX(360px);
}

.boxBottomMask {
  top: 0;
  left: -2px;
  padding: 0px 2px 2px 2px;
  width: 468px;
  height: 108px;
  transform-origin: 50% 0%;
  transform: translateY(207px) rotateX(0deg);
}

.wholeBox div {
  transition: all 0.2s cubic-bezier(0.49, 0, 0.3, 1);
}

.wholeBox:hover > .boxTop {
  background-color: #CEECE0;
  transform: translateZ(97.2px);
}

.wholeBox:hover > .boxRightSide {
  transform: translateX(360px) translateZ(97.2px) rotateY(90deg);
}

.wholeBox:hover > .boxBottomSide {
  transform: translateY(207px) translateZ(97.2px) rotateX(-90deg);
}

input.mybutton:checked + label .boxTop {
  background-color: #E94E77;
  transform: translateZ(0);
}

input.mybutton:checked + label .boxRightSide {
  transform: translateX(360px) translateZ(-2px) rotateY(90deg);
}

input.mybutton:checked + label .boxBottomSide {
  transform: translateY(207px) translateZ(-2px) rotateX(-90deg);
}

input.mybutton:checked + label .paintBucket {
  transition: transform 1s !important;
  transition-delay: 0.2s !important;
  transform: translateZ(-1px) scale(20, 20);
}

input.mybutton:checked + label .boxRightMask {
  transform: translateX(360px) translateZ(-2px);
}

input.mybutton:checked + label .boxBottomMask {
  transform: translateY(207px) translateZ(-2px);
}
</style>
</head>
<body>
  <link href='https://fonts.googleapis.com/css?family=Barrio' rel='stylesheet'>
<div class='main'>
  <div class='container'>
    <input class='mybutton' id='mybutton-1' name='' type='checkbox'>
    <label for='mybutton-1'>
      <div class='wholeBox'>
        <div class='boxTop'>Push</div>
        <div class='paintBucket'></div>
        <div class='boxRightSide'></div>
        <div class='boxRightMask'></div>
        <div class='boxBottomSide'></div>
        <div class='boxBottomMask'></div>
      </div>
    </label>
  </div>
</div> 
</body>
</html>

2. By jesper landberg

Made by jesper landberg. CSS 3d button with wireframed look. ( Source )

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title></title>
<style>
html, body {
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

*, *:after, *:before {
  box-sizing: border-box;
}

.btn {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #000;
  padding: 0;
  border: 0;
  -webkit-appearance: 0;
     -moz-appearance: 0;
          appearance: 0;
  margin: 0;
  cursor: pointer;
  outline: 0;
  background-color: transparent;
  overflow: hidden;
}
.btn__inner {
  position: relative;
  padding-right: 0.5rem;
  padding-bottom: 0.5rem;
  transition: transform 0.25s ease;
  overflow: hidden;
  z-index: 2;
}
.btn:hover .btn__inner {
  transform: translate3d(0.1rem, 0.1rem, 0);
}
.btn:active .btn__inner {
  transform: translate3d(0.2rem, 0.2rem, 0);
}
.btn__layer {
  display: flex;
  align-items: center;
  padding: 0 5rem;
  height: 5rem;
  background-color: #fff;
}
.btn__layer--top {
  position: relative;
  border: 2px solid #000;
  z-index: 2;
}
.btn__layer--bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0.5rem;
  top: 0.5rem;
  border-bottom: 2px solid #000;
  border-right: 2px solid #000;
  overflow: hidden;
}
.btn__border {
  display: block;
  position: absolute;
  background-color: #000;
  height: 2rem;
  width: 2px;
  transform: rotate(-45deg);
}
.btn__border--bottom-left {
  left: 0.25rem;
  bottom: -1.5rem;
}
.btn__border--bottom-right {
  bottom: calc(-1rem + 1px);
  right: 0;
}
.btn__border--top-right {
  right: 0;
  top: -1.25rem;
}
</style>
</head>
<body>
  <button type="button" class="btn">
  <div class="btn__inner">
    <div class="btn__layer btn__layer--top">
      This is a button
      <span class="btn__border btn__border--bottom-left"></span>
      <span class="btn__border btn__border--top-right"></span>
    </div>
  </div>
  <div class="btn__layer btn__layer--bottom">
    This is a button
    <span class="btn__border btn__border--bottom-right"></span>
  </div>
</button>
</body>
</html>

3. By Takane Ichinose

Made by Takane Ichinose. 3D Button Using Transform. ( Source )

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title></title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
<style>
@import url("https://fonts.googleapis.com/css?family=Montserrat:400,400i,700");
html, body {
  width: 100%;
  height: 100%;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-gelatin {
  width: 100%;
  height: 100%;
  max-width: 250px;
  max-height: 100px;
  position: relative;
  perspective: 250px;
  transform-style: preserve-3d;
  transform: rotateX(30deg);
}
.btn-gelatin-face {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
  color: #ffffff;
  font-family: Montserrat, sans-serif;
  font-size: 32px;
  font-weight: bold;
  background-color: #004dff;
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
  transform: translateZ(50px);
  transition: transform 150ms cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.btn-gelatin-x {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
}
.btn-gelatin-x:before, .btn-gelatin-x:after {
  content: "";
  width: 50px;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: width 150ms cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.btn-gelatin-x:before {
  background-color: #1a5fff;
  top: 0;
  left: 0;
  transform-origin: top left;
  transform: rotateY(-90deg);
}
.btn-gelatin-x:after {
  background-color: #003ecc;
  top: 0;
  right: 0;
  transform-origin: top right;
  transform: rotateY(90deg);
}
.btn-gelatin-y {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
}
.btn-gelatin-y:before, .btn-gelatin-y:after {
  content: "";
  width: 100%;
  height: 50px;
  position: absolute;
  transform-style: preserve-3d;
  transition: height 150ms cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.btn-gelatin-y:before {
  background-color: #1a5fff;
  top: 0;
  left: 0;
  transform-origin: top left;
  transform: rotateX(90deg);
}
.btn-gelatin-y:after {
  background-color: #003ecc;
  bottom: 0;
  left: 0;
  transform-origin: bottom left;
  transform: rotateX(-90deg);
}
.btn-gelatin-face:active {
  transform: translateZ(0);
  transition: transform 150ms ease-out;
}
.btn-gelatin-face:active ~ .btn-gelatin-x:before, .btn-gelatin-face:active ~ .btn-gelatin-x:after {
  width: 0;
  transition: width 150ms ease-out;
}
.btn-gelatin-face:active ~ .btn-gelatin-y:before, .btn-gelatin-face:active ~ .btn-gelatin-y:after {
  height: 0;
  transition: height 150ms ease-out;
}
</style>
</head>
<body>
  <div class="btn-gelatin">
  <button class="btn-gelatin-face">Press Me !</button>
  <div class="btn-gelatin-x"></div>
  <div class="btn-gelatin-y"></div>
</div>
</body>
</html>

4. By Veronica

Made by Veronica. 3d button with simple hover effect. ( Source )

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title></title>
<style>
@import url('https://fonts.googleapis.com/css?family=Raleway:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i');

html{
   height:100%;
   width:100%;
}

html, body{
  padding: 0;
  margin: 0;
  font-family: 'Raleway', sans-serif;
}

body{
   background-color: #ededed;
   height:100%;
   display:table;
   width:100%;
   text-align:center;
}

.table_center{
  display:table-cell;
  vertical-align: middle;
}



 a{
  text-decoration:none;
  color:#000;
  margin:auto;
  width:150px;
  display:inline-block;
  line-height:40px;
  font-size:12px;
  font-weight:900;
  letter-spacing:2px;
  text-transform:uppercase;
  background-color: #fff;
   border:5px solid #000;
   box-shadow:1px 1px 0, 2px 2px 0, 3px 3px 0, 4px 4px 0,5px 5px 0;
  position: relative;
}

 a:after{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width:100%;
   z-index: -1;
  background-color: #fff;
  transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  -ms-transition: all 0.5s;
  -o-transition: all 0.5s;
}
a:hover{
  background-color: transparent;
}
 a:hover:after{
  background-color: #f6d51e;
}

 a:active{
   top:5px;
   left:5px;
   box-shadow:0 0 0 0;
}
</style>
</head>
<body>
  <div class="table_center">
       <a href="#">
         click
       </a>
</div>
</body>
</html>

5. By Aditya Bhandari

Made by Aditya Bhandari. A simple 3d button. ( Source )

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title></title>
<style>
@import url(https://fonts.googleapis.com/css?family=Montserrat);
body {
  background: #5DD39E;
  font-family: Montserrat;
}

.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.button {
  display: inline-block;
  padding: 15px;
  margin-right: 5px;
  height: 50px;
  min-width: 100px;
  background: #348AA7;
  border: none;
  outline: none;
  color: white;
  font-family: inherit;
  font-weight: 400;
  font-size: 20px;
  border-radius: 3px;
  box-shadow: 0 5px 0px #348aa7;
  border-bottom: 2px solid #30809b;
}
.button:hover {
  background: #2e7a94;
  box-shadow: 0 4px 1px #2e7a94;
  border-bottom: 2px solid #2a7088;
  transition: all 0.1s ease-in;
}
.button:active {
  transform: translateY(4px);
  border-bottom-width: 2px;
  box-shadow: none;
}
</style>
</head>
<body>
  <div class="center">
  <input class="button" type="button" value="Push Me!">
</div>
</body>
</html>

6. By Pratham

Made by Pratham. 3d button with smooth hover effect. ( Source )

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title></title>

<style>
@import url('https://fonts.googleapis.com/css2?family=Coda+Caption:[email protected]&display=swap');

body {
  height: 100vh;
  width: 100vw;
  margin: 0;
  display: flex;
  justify-content: center;
  place-items: center;  
  background: white;
}

button {
  position: relative;
  padding: 40px 80px;
  box-sizing:  border-box;
  border: none;
  cursor: pointer;
  background: #e11d74;
  color: white;
  font-size: 32px;
  transition: 0.5s;
  transform: skew(40deg, -20deg);
  font-family: 'Coda Caption', sans-serif;
}

button::before {
  content: "";
  position: absolute;
  height: 30px;
  width: 100%;
  background: #991550;
  left: -15px;
  bottom: -30px;
  transform: skew(-45deg);
  transition: 0.5s;
}

button::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 30px;
  background: #991550;
  top: 15px;
  left: -30px;
  transform: skewy(-45deg);
  transition: 0.5s
}

button:hover {
  transform: translatey(20px) skew(40deg, -20deg);
}

button:hover::before {
  height: 10px;
  bottom: -10px;
  left: -6px;
}

button:hover::after {
  width: 10px;
  top: 5px;
  left: -10px;
}
</style>
</head>
<body>
  <button>HOVER ME :-)</button>
</body>
</html>

7. By Ray

Made by Ray. ( Source )

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title></title>
 
<style>
button {
  position: relative;
  padding: 30px;
  top: 30px;
  left: 30px;
  width: 350px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}
button:focus {
  outline: 0;
}

.btn-blue {
  background: #03A9F4;
  border: 1px solid #1976D2;
  -moz-transition: margin-top ease, margin-left ease, box-shadow ease;
  -o-transition: margin-top ease, margin-left ease, box-shadow ease;
  -webkit-transition: margin-top ease, margin-left ease, box-shadow ease;
  transition: margin-top ease, margin-left ease, box-shadow ease;
  -moz-box-shadow: 1px 0px 0px #1976D2, 0px 1px 0px #1976D2, 2px 1px 0px #1976D2, 1px 2px 0px #1976D2, 3px 2px 0px #1976D2, 2px 3px 0px #1976D2, 4px 3px 0px #1976D2, 3px 4px 0px #1976D2, 5px 4px 0px #1976D2, 4px 5px 0px #1976D2, 6px 5px 0px #1976D2, 5px 6px 0px #1976D2, 7px 6px 0px #1976D2, 6px 7px 0px #1976D2, 8px 7px 0px #1976D2, 7px 8px 0px #1976D2, 9px 8px 0px #1976D2, 8px 9px 0px #1976D2;
  -webkit-box-shadow: 1px 0px 0px #1976D2, 0px 1px 0px #1976D2, 2px 1px 0px #1976D2, 1px 2px 0px #1976D2, 3px 2px 0px #1976D2, 2px 3px 0px #1976D2, 4px 3px 0px #1976D2, 3px 4px 0px #1976D2, 5px 4px 0px #1976D2, 4px 5px 0px #1976D2, 6px 5px 0px #1976D2, 5px 6px 0px #1976D2, 7px 6px 0px #1976D2, 6px 7px 0px #1976D2, 8px 7px 0px #1976D2, 7px 8px 0px #1976D2, 9px 8px 0px #1976D2, 8px 9px 0px #1976D2;
  box-shadow: 1px 0px 0px #1976D2, 0px 1px 0px #1976D2, 2px 1px 0px #1976D2, 1px 2px 0px #1976D2, 3px 2px 0px #1976D2, 2px 3px 0px #1976D2, 4px 3px 0px #1976D2, 3px 4px 0px #1976D2, 5px 4px 0px #1976D2, 4px 5px 0px #1976D2, 6px 5px 0px #1976D2, 5px 6px 0px #1976D2, 7px 6px 0px #1976D2, 6px 7px 0px #1976D2, 8px 7px 0px #1976D2, 7px 8px 0px #1976D2, 9px 8px 0px #1976D2, 8px 9px 0px #1976D2;
}
.btn-blue:active {
  will-change: margin;
  margin: 9px 0 0 9px;
  box-shadow: 0px 0px 0px #1976D2;
  -moz-transition: margin-top 0.3s ease, margin-left 0.3s ease, box-shadow 0.3s ease;
  -o-transition: margin-top 0.3s ease, margin-left 0.3s ease, box-shadow 0.3s ease;
  -webkit-transition: margin-top 0.3s ease, margin-left 0.3s ease, box-shadow 0.3s ease;
  transition: margin-top 0.3s ease, margin-left 0.3s ease, box-shadow 0.3s ease;
}
</style>
</head>
<body>
  <button class="btn-blue">I am 3D button</button>
</body>
</html>

8. By Luiz OtΓ‘vio Miranda Figueiredo

Made by Luiz OtΓ‘vio Miranda Figueiredo. ( Source )

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title></title>
<style>
.btn:focus, .btn::-moz-focus-inner{
  outline:none;
  border:none;
}
.btn{
  font-family: arial;
  font-size:14px;
  text-transform: uppercase;
  font-weight:700;
  border:none;
  padding:10px;
  cursor: pointer;
  display:inline-block;
  text-decoration: none;
}
.btn-green{
  background:green;
  color:#fff;
  box-shadow:0 5px 0 #006000;
}
.btn-green:hover{
  background:#006000;
  box-shadow:0 5px 0 #003f00;
}
.btn-purple{
  background:purple;
  color:#fff;
  box-shadow:0 5px 0 #670167;
}
.btn-purple:hover{
  background:#670167;
  box-shadow:0 5px 0 #470047;
}
.btn-red{
  background:red;
  color:#fff;
  box-shadow:0 5px 0 #d20000;
}
.btn-red:hover{
  background:#d20000;
  box-shadow:0 5px 0 #b00000;
}
.btn-green:active, .btn-purple:active, .btn-red:active{
  position:relative;
  top:5px;
  box-shadow:none;
}
</style>
</head>
<body>
  <button class="btn btn-green">Salvar</button>
<a href="#" class="btn btn-purple">Acessar</a>
<input type="submit"  class="btn btn-red">
</body>
</html>

9. By Dronca Raul

Made by Dronca Raul. CSS 3d button with simple hover effect. ( Source )

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title></title>

<style>
@import 'https://fonts.googleapis.com/css?family=Rubik+One';
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background: #e53935;
  background: linear-gradient(to left, #e53935, #e35d5b);
}

.button::after, .button::before {
  position: absolute;
  content: "";
  transition: all 0.5s;
}

.button {
  display: inline-block;
  padding: 20px 40px;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  vertical-align: middle;
  font-family: "Rubik One", sans-serif;
  text-decoration: none;
  font-size: 4vw;
  transition: all 0.5s;
  background-color: #3498db;
}
.button::before {
  bottom: -15px;
  height: 15px;
  width: 100%;
  left: 8px;
  transform: skewX(45deg);
  background-color: #196090;
}
.button::after {
  right: -15px;
  height: 100%;
  width: 15px;
  bottom: -8px;
  transform: skewY(45deg);
  background-color: #124364;
}
.button:active {
  margin-left: 10px;
  margin-top: 10px;
}
.button:active::before {
  bottom: -5px;
  height: 5px;
  left: 3px;
}
.button:active::after {
  right: -5px;
  width: 5px;
  bottom: -3px;
}
</style>
</head>
<body>
  <a class="button" href="#">Press me!</a>
</body>
</html>

10. By Orzoon Kunwar

Made by Orzoon Kunwar. 3d social buttons with flip effects. ( Source )

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title></title>
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"/>

<style>
@import url("https://fonts.googleapis.com/css?family=Open+Sans:700,800");
body {
  background: #eee; }

.container {
  height: 200px;
  width: 300px;
  position: relative;
  margin: 50px auto 0 auto;
  perspective: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Open Sans", sans-serif; }

.button {
  cursor: pointer;
  height: 30px;
  width: 250px;
  transform-style: preserve-3d;
  position: relative;
  transform: rotateX(-40deg) rotateY(40deg);
  transition: all .5s ease-in;}

.side {
  position: absolute;
  border: 1px solid #ddd;
  opacity: .1; }
  .side:nth-child(1) {
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 250px;
    font-size: 16px;
    font-weight: 900;
    transform: rotateX(90deg) translateZ(40px);
    color: #fff; }
    .side:nth-child(1) i {
      margin-right: 40px; }
  .side:nth-child(2) {
    opacity: .4;
    height: 80px;
    width: 250px;
    transform: rotateX(-90deg) translateZ(-10px); }
  .side:nth-child(3) {
    height: 30px;
    width: 80px;
    transform: rotateY(-90deg) translateZ(40px); }
  .side:nth-child(4) {
    height: 30px;
    width: 80px;
    transform: rotateY(90deg) translateZ(40px);
    right: 0; }
  .side:nth-child(5) {
    height: 30px;
    width: 250px;
    transform: rotateX(0deg) translateZ(40px); }
  .side:nth-child(6) {
    height: 30px;
    width: 250px;
    transform: rotateX(180deg) translateZ(40px); }

.cd, .fb, .in {
  opacity: .6; }

.mid, .last {
  height: 100px;
  margin-top: 0px; }

.last {
  margin-top: 0; }

.codepen, .cd {
  background: #000; }

.first:hover {
  transform: rotateX(-70deg) rotateY(30deg) rotateZ(40deg);
  transition: all .5s ease-in; }

.facebook, .fb {
  background: #3b5998; }

.second, .third {
  transform: rotateX(-30deg) rotateY(0deg);
  transform-origin: center center; }

.second:hover, .third:hover {
  transform: rotateX(-100deg) rotateY(0deg) rotateZ(0deg);
  transition: all .5s ease-in; }

.instagram, .in {
  background: #e4405f; }
</style>
</head>
<body>
  <div class="container top">
      <div class="button first"><a class="side codepen"><i class="fab fa-codepen fa-3x"></i>
          <h1>codepen</h1></a>
        <div class="side cd"></div>
        <div class="side cd"></div>
        <div class="side cd"></div>
        <div class="side cd"></div>
        <div class="side cd"></div>
      </div>
    </div>
    <div class="container mid">
      <div class="button second"><a class="side facebook"><i class="fab fa-facebook-f fa-3x"></i>
          <h1>facebook</h1></a>
        <div class="side fb"></div>
        <div class="side fb"></div>
        <div class="side fb"></div>
        <div class="side fb"></div>
        <div class="side fb"></div>
      </div>
    </div>
    <div class="container last">
      <div class="button third"><a class="side instagram"><i class="fab fa-instagram fa-3x"></i>
          <h1>instagram</h1></a>
        <div class="side in"></div>
        <div class="side in"></div>
        <div class="side in"></div>
        <div class="side in"></div>
        <div class="side in"></div>
      </div>
    </div>
</body>
</html>

11. By Dpw

Made by Dpw. CSS 3d button with smooth hover effect. ( Source )

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title></title>
<style>
body {
  align-items: center;
  display: flex;
  font-size: 2rem;
  justify-content: center;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
}

.c-button {
  background: #ffe9e9;
  border-radius: 3em;
  border: 0;
  border: 3px solid rgba(182, 0, 0, 0.45);
  color: #370000;
  cursor: pointer;
  font-weight: bold;
  outline: none;
  padding: 1.25em 2em;
  position: relative;
  text-transform: uppercase;
  transform-style: preserve-3d;
  transition: all 150ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.c-button::before {
  background: #ffb6b6;
  border-radius: inherit;
  box-shadow: 0 0 0 2px rgba(182, 0, 0, 0.45), 0 0.6em 0 0 rgba(255, 233, 233, 0.6);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transform: translate3d(0, 0.75em, -1em);
  transition: all 150ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 100%;
}
.c-button:hover {
  transform: translate(0, 0.25em);
}
.c-button:hover::before {
  box-shadow: 0 0 0 2px rgba(182, 0, 0, 0.45), 0 0.45em 0 0 rgba(255, 233, 233, 0.8);
  transform: translate3d(0, 0.5em, -1em);
}
.c-button:active {
  background: #ffe9e9;
  transform: translate(0, 0.75em);
}
.c-button:active::before {
  box-shadow: 0 0 0 3px rgba(182, 0, 0, 0.45), 0 0 #ffe9e9;
  transform: translate3d(0, 0, -1em);
}
</style>
</head>
<body>
  <button class="c-button">Call to action</button>
</body>
</html>

12. By ajimix

Made by ajimix. Animated 3D button with CSS3 shadows. ( Source )

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title></title>
<style>
body {
  margin-top: 50px;
}

button {
  background: linear-gradient(to bottom, rgb(97,196,25) 0%,rgb(149,226,90) 100%);
  margin: 0 auto;
  padding: 10px 20px 10px 20px;
	border-radius: 5px;
  border: 1px solid #c4c4c4;
  box-shadow: 0px 6px 0px 0px rgba(88, 163, 31, 1),
    0px 5px 12px 0px rgba(0, 0, 0, 0.6),
    inset 0px 0px 10px -5px rgba(0, 0, 0, 1);
  transition: all 100ms linear;
  touch-callout: none;
  user-select: none;
  cursor: pointer;
  display: block;
  position: relative;
  
  font-family: Arial Black, Gadget, sans-serif;
  font-size: 15px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

button > span {
  display: block;
	-webkit-transform: skew(5deg, 0deg);
}

button:active {
	top: 4px;
  box-shadow: 0px 2px 0px 0px rgba(88, 163, 31, 1),
    0px 5px 5px 0px rgba(0, 0, 0, 0.6),
    inset 0px 0px 10px -5px rgba(0, 0, 0, 1);
}
</style>
</head>
<body>
  <button>
  <span>Download file</span>
</button>
</body>
</html>

13. By Marlon Lulgjuraj

Made by Marlon Lulgjuraj. ( Source )

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title></title>

<style>
html, body {
  height: 100%;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: #f2f2f2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1CD3F8;
}

.btn {
  top: 0;
  left: 0;
  transition: all 0.15s linear 0s;
  position: relative;
  display: inline-block;
  padding: 15px 25px;
  background-color: #FFE800;
  text-transform: uppercase;
  color: #404040;
  font-family: arial;
  letter-spacing: 1px;
  box-shadow: -6px 6px 0 #404040;
  text-decoration: none;
}
.btn:hover {
  top: 3px;
  left: -3px;
  box-shadow: -3px 3px 0 #404040;
}
.btn:hover::after {
  top: 1px;
  left: -2px;
  width: 4px;
  height: 4px;
}
.btn:hover::before {
  bottom: -2px;
  right: 1px;
  width: 4px;
  height: 4px;
}
.btn::after {
  transition: all 0.15s linear 0s;
  content: "";
  position: absolute;
  top: 2px;
  left: -4px;
  width: 8px;
  height: 8px;
  background-color: #404040;
  transform: rotate(45deg);
  z-index: -1;
}
.btn::before {
  transition: all 0.15s linear 0s;
  content: "";
  position: absolute;
  bottom: -4px;
  right: 2px;
  width: 8px;
  height: 8px;
  background-color: #404040;
  transform: rotate(45deg);
  z-index: -1;
}

a.btn {
  position: relative;
}

a:active.btn {
  top: 6px;
  left: -6px;
  box-shadow: none;
}
a:active.btn:before {
  bottom: 1px;
  right: 1px;
}
a:active.btn:after {
  top: 1px;
  left: 1px;
}
</style>
</head>
<body>
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400" rel="stylesheet">
<a href="#" class="btn">3D Button</a>
</body>
</html>

14. By Nathan Long

Made by Nathan Long. ( Source )

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title></title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<style>
@import url(https://fonts.googleapis.com/css?family=Changa+One);
html, body {
  height: 100%;
  width: 100%;
}

body {
  background-color: #eee;
  -webkit-transform: translate3d(0, 0, 0);
}

.button span {
  display: inline-block;
  font-size: 2em;
  font-family: "Changa One", arial, serif;
  padding: .625em 1em;
  background: #008752;
  background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwODc1MiIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzAwNzg0OSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');
  background-size: 100%;
  background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #008752), color-stop(100%, #007849));
  background-image: -moz-linear-gradient(#008752, #007849);
  background-image: -webkit-linear-gradient(#008752, #007849);
  background-image: linear-gradient(#008752, #007849);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  text-shadow: 0 -1px 1px rgba(7, 51, 34, 0.8);
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  border-radius: 8px;
  -moz-transition: -moz-transform 0.2s ease-in-out;
  -o-transition: -o-transform 0.2s ease-in-out;
  -webkit-transition: -webkit-transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out;
}

.button {
  display: inline-block;
  color: #eff6ec;
  text-decoration: none;
  cursor: pointer;
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  border-radius: 8px;
  -moz-box-shadow: 0 8px 0 #004d2f, 0 10px 15px rgba(0, 0, 0, 0.35);
  -webkit-box-shadow: 0 8px 0 #004d2f, 0 10px 15px rgba(0, 0, 0, 0.35);
  box-shadow: 0 8px 0 #004d2f, 0 10px 15px rgba(0, 0, 0, 0.35);
  -moz-transition: box-shadow 0.2s ease-in-out;
  -o-transition: box-shadow 0.2s ease-in-out;
  -webkit-transition: box-shadow 0.2s ease-in-out;
  transition: box-shadow 0.2s ease-in-out;
}

.button:active {
  -moz-box-shadow: 0 8px 0 #004d2f, 0 7px 10px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: 0 8px 0 #004d2f, 0 7px 10px rgba(0, 0, 0, 0.25);
  box-shadow: 0 8px 0 #004d2f, 0 7px 10px rgba(0, 0, 0, 0.25);
}

.button:active span {
  -moz-transform: translateY(4px);
  -ms-transform: translateY(4px);
  -webkit-transform: translateY(4px);
  transform: translateY(4px);
}

.container {
  max-width: 60em;
  margin: 2em auto;
  text-align: center;
}
</style>
</head>
<body>
  <div class="container">
  <a class="button" ontouchstart=""><span>Click Me!</span></a>
</div>
</body>
</html>

15. By Saabbir Hossain

Made by Saabbir Hossain. Transform 3D Button with Flip animation. ( Source )

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title></title>
<style>
body {
  color: #313131;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Raleway', sans-serif;
}

a {
  text-decoration: none;
  display: inline-block;
}

.btn {
  height: 50px;
  line-height: 50px;
  text-align: center;
  position: relative;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  -webkit-transition: all .3s ease-out;
  -o-transition: all .3s ease-out;
  transition: all .3s ease-out;
}

.text {
  padding: 0 50px;
  visibility: hidden;
}

.flip-front, 
.flip-back {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    -webkit-transform-style: flat;
    transform-style: flat;
    -webkit-transition: -webkit-transform .3s ease-out;
    -o-transition: -o-transform .3s ease-out;
    transition: transform .3s ease-out;
}

.flip-front {
    color: #313131;
    border: 2px solid #313131;
    background-color: transparent;
    -webkit-transform: rotateX(0deg) translateZ(25px);
    -ms-transform: rotateX(0deg) translateZ(25px);
    -o-transform: rotateX(0deg) translateZ(25px);
    transform: rotateX(0deg) translateZ(25px);
}

.flip-back {
  color: #fff;
  background-color: #313131;
  border: 2px solid #313131;
  -webkit-transform: rotateX(90deg) translateZ(25px);
  -ms-transform: rotateX(90deg) translateZ(25px);
  -o-transform: rotateX(90deg) translateZ(25px);
  transform: rotateX(90deg) translateZ(25px);
}

.btn:hover .flip-front {
    -webkit-transform: rotateX(-90deg) translateZ(25px);
    -ms-transform: rotateX(-90deg) translateZ(25px);
    -o-transform: rotateX(-90deg) translateZ(25px);
    transform: rotateX(-90deg) translateZ(25px);
}

.btn:hover .flip-back {
    -webkit-transform: rotateX(0deg) translateZ(25px);
    -ms-transform: rotateX(0deg) translateZ(25px);
    -o-transform: rotateX(0deg) translateZ(25px);
    transform: rotateX(0deg) translateZ(25px);
}
</style>
</head>
<body>
  <a href="#" class="btn">
  <span class="text">Text</span>
  <span class="flip-front">Front</span>
  <span class="flip-back">Back</span>
</a>
</body>
</html>