Cube transform

.cube .front { transform: rotateZ(90deg) translateZ(150px); }

.cube .top { transform: rotateX(90deg) translateZ(150px); }

.cube .bottom { transform: rotateX(-90deg) translateZ(150px);}

.cube .back { transform: rotateX(180deg) translateZ(150px); }

.cube .right { transform: rotateY(90deg) translateZ(150px);}

.cube .left { transform: rotateY(-90deg) translateZ(150px); }

HTML

<section class="container">
  <div class="cube" >
  <figure class="front"><img src="img/ind_f_1.jpg"></figure>
  </div>
  </section>
CSS

.container {
    width: 300px;
    height: 300px;
    position: relative;
    margin: 0 auto 40px;
    perspective: 1500px;
    perspective-origin: -150% -150%;
}
.cube {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transform: translateZ(-100px);
    background-color: black;
    transition: transform 2s;
}
.cube figure {
    display: block;
    position: absolute;
    width: 298px;
    height: 298px;
    border: 1px solid black;
    opacity: 0.5;
}
.cube .front {
    transform: rotateX(0deg) translateZ(150px);
}