<div class="container">
  <div class="scene">
    <div class="cube">
      <div class="side left"></div>
      <div class="side right"></div>
      <div class="side back">BACK</div>
      <div class="side top">TOP</div>
      <div class="side bottom">BOTTOM</div>
      <div class="side front">FRONT</div>
    </div>
  </div>
  
  <img class="pic monitor" src="https://askd.github.io/codepen/monitor-side.png" width="135" height="400" alt="">
  <img class="pic eye" src="https://askd.github.io/codepen/eye.png" width="64" height="40" alt="">
  			<div class="pic dot"></div>
</div>
.container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 75px auto;
}
.scene {
  perspective: 800px;
}

.cube {
  position: relative;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  animation: example 20s linear infinite;
}

.side {
  position: absolute;
  width: 200px;
  height: 200px;
  box-sizing: border-box;
  border: 5px solid #9aa;
  padding: 80px 0;
  font: 40px/1 'Trebuchet MS', sans-serif;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
}

.left {
  transform: translateX(-100px) rotateY(90deg);
}
.right {
  transform: translateX(100px) rotateY(90deg);
}
.back {
  transform: translateZ(-100px) rotateX(180deg);
}
.top {
  transform: translateY(-100px) rotateX(90deg);
}
.bottom {
  transform: translateY(100px) rotateX(270deg);
}
.front {
  transform: translateZ(100px);
}
.top, .bottom {
  background-color: rgba(105, 136, 190, 0.5)
}
.back, .front {
  background-color: rgba(32, 170, 151, 0.5);
}

.pic {
  position: absolute;
  animation: example-side 20s linear infinite;
  opacity: 0;
}

.monitor {
  top: -65px;
  left: 50%;
  margin-left: -55px;
}

.eye {
  left: -150px;
  top: 50%;
  margin-top: -20px;
}

.dot {
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 12px;
  box-sizing: border-box;
  background: #d00;
}

@keyframes example {
  0% { transform: rotateY(0deg); }
  25% { transform: rotateY(-90deg); }
  50% { transform: rotateY(-90deg); }
  75% { transform: rotateY(0deg); }
  100% { transform: rotateY(0deg); }
}

@keyframes example-side {
  0% { opacity: 0; }
  24% { opacity: 0; }
  25% { opacity: 1; }
  50% { opacity: 1; }
  51% { opacity: 0; }
  100% { opacity: 0; }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.