JSFiddle - React, Tailwind, and code Playground

by Ayyappan Sakthivadivel

HTML

<div class="sixth-face" style="border: #f00 solid 1px;">
  <div class="column">
    <span class="pip"></span>
    <span class="pip" style="background-color: #0f0;"></span>
  </div>
</div>

CSS

*{
  transition: all 0.5s ease-in;
}
.pip {
  width: 24px;
  height: 24px;
  margin: 4px;
background-color: #f00;
}
.fourth-face, .sixth-face {
  display: flex;
  justify-content: space-between;
}

.fourth-face .column, .sixth-face .column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}