<body>

  <div class="wrap">
    <div id="cube">

      <div class="front">
        <a href="https://www.facebook.com" target="_blank">
          <div class="button">
            <p><i class="icon ion-logo-facebook"></i>Facebook</p>
          </div>
        </a>
      </div>

      <div class="left">
        <a href="https://www.twitter.com" target="_blank">
          <div class="button">
            <p><i class="icon ion-logo-twitter"></i>Twitter</p>
          </div>
        </a>
      </div>

      <div class="back">
        <a href="https://www.linkedin.com" target="_blank">
          <div class="button">
            <p><i class="icon ion-logo-linkedin"></i>Linkedin</p>
          </div>
        </a>
      </div>

      <div class="right">
        <a href="https://www.instagram.com" target="_blank">
          <div class="button">
            <p><i class="icon ion-logo-instagram"></i>Instagram</p>
          </div>
        </a>
      </div>

    </div>
  </div>

</body>

</html>
@import url('https://fonts.googleapis.com/css?family=Roboto:300');
@import url('https://unpkg.com/ionicons@4.5.10-0/dist/css/ionicons.min.css');

body {
        background: linear-gradient(270deg, #a4a2b9, #90a6d2, #bfc8db);
    background-size: 400% 400%;
      -webkit-animation: bgAnim 30s ease infinite;
    -moz-animation: bgAnim 30s ease infinite;
    animation: bgAnim 30s ease infinite;
    margin: 0;
    padding: 0;
}
p {
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  font-size: 16px;
  color:white;
  font-weight: 300;
  letter-spacing: 3px;
}
.icon {
  padding-right:5px;
}
a {
  display: flex;
  justify-content: center;
  text-align: center;
  margin:0;
  padding:0;
  text-decoration: none;
}
.button {
  border-radius:50px;
  top:75px;
  border: 2px solid white;
  max-width:165px;
  max-height:50px;
}
.button:hover {
  background-color: rgba(255,255,255,0.1);
  transition: 0.3s;
  cursor: pointer;
}
.title p {
  margin:0;
  padding:0;
}
.title {
  text-align: center;
  width:100%;
  height:100px;
  padding-top:1em;
}
.wrap {
  margin-top: 10rem;
	perspective: 800px;
  perspective-origin: 50% 100px;
}
#cube {
  position: relative;
  width: 200px;
  margin:0 auto;
  transform-style: preserve-3d;
  transition: transform 1s;
  -webkit-transition: -webkit-transform 1s;
}
#cube div {
  position: absolute;
  width: 200px;
  height: 200px;
}
.front {
  background: linear-gradient(90deg, rgba(90,17,255,0.95) 0%, rgba(165,125,255,0.95) 100%);
  transform: translate3d(0,0,100px);
}
.left {
  background: linear-gradient(-90deg, rgba(90,17,255,0.95) 0%, rgba(165,125,255,0.95) 100%);
  transform: rotateY(270deg) translate3d(-100px,0,0);
  transform-origin: center left;
}
.front {
background: linear-gradient(90deg, rgba(90,17,255,0.95) 0%,             rgba(165,125,255,0.95) 100%);
transform: translate3d(0,0,100px);
}
.left {
    background: linear-gradient(-90deg, rgba(90,17,255,0.95) 0%, rgba(165,125,255,0.95) 100%);
	transform: rotateY(270deg) translate3d(-100px,0,0);
	transform-origin: center left;
}
.back {
    background: linear-gradient(90deg, rgba(90,17,255,0.95) 0%, rgba(165,125,255,0.95) 100%);
	transform: translate3d(0,0,-100px) rotateY(180deg);
}
.right {
    background: linear-gradient(-90deg, rgba(90,17,255,0.95) 0%, rgba(165,125,255,0.95) 100%);
	transform: rotateY(-270deg) translate3d(100px,0,0);
    transform-origin: top right;
}

@-webkit-keyframes bgAnim {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@-moz-keyframes bgAnim {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@keyframes bgAnim {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}


cubeAngle = 90;
document.getElementById("cube").addEventListener("click", rotate);

function rotate(){
    cube.style.transform = "rotateY(" + cubeAngle +       "deg)";
    if (cubeAngle >= 90) {
        cubeAngle = cubeAngle + 90;
    }  
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.