JSFiddle - React, Tailwind, and code Playground

by silb3r

HTML

<ul class="chart animate">
  <li>
    <span style="height:5%" title="ActionScript"></span>
  </li>
  <li>
    <span style="height:70%" title="JavaScript"></span>
  </li>
  <li>
    <span style="height:50%" title="CoffeScript"></span>
  </li>
  <li>
    <span style="height:15%" title="HTML"></span>
  </li>
</ul>

SCSS

body {
  font: 13px/1.3 'Lucida Grande',sans-serif;
  color: #666;
}

.chart {
  display: table;
  table-layout: fixed;
  width: 60%;
  max-width: 700px;
  height: 200px;
  margin: 0 auto;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.1) 2%, rgba(0, 0, 0, 0) 2%);
  background-size: 100% 50px;
  background-position: left top;
  &.animate span {
    animation: draw 1s ease-in-out;
  }
}
.chart li {
  position: relative;
  display: table-cell;
  vertical-align: bottom;
  height: 200px;
}
.chart span {
  margin: 0 1em;
  display: block;
  background: rgba(209, 236, 250, 0.75);
}
.chart span:before {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 5px 1em 0;
  display: block;
  text-align: center;
  content: attr(title);
  word-wrap: break-word;
}

@keyframes draw {
  0% {
    height: 0;
  }
}