JSFiddle - React, Tailwind, and code Playground

by Softlink

HTML

<section>
	<div></div>
	<div></div>
</section>

CSS

html, body {
    margin: 0;
    background: #444;
}

section{
	position: relative;
	display: -webkit-box;
	display: -moz-box;
	-webkit-box-align: end;
	-moz-box-align: end;
	-webkit-box-pack:justify;
    -moz-box-pack:justify;
    -ms-flex-pack:justify;
    -webkit-justify-content:space-between;
    justify-content:space-between;
	height: 200px;
    min-width: 200px;
	margin: 60px;
	padding: 0 0 0 20px;
}

label{
	position: absolute;
	top: -50px;
	left: 0;
	background: #888;
	color: #111;
	font-family: Tahoma;
	font-size: 16px;
	padding: 5px 15px;
	text-shadow: 0 1px 1px rgba(255,255,255,.3);
	border-radius: 3px;
	box-shadow: 0 1px 2px 0 rgba(0,0,0,0.8);
}

label:hover{
	background: #999;
}

label:active{
	top: -49px;
}

input{
	display: none;
}

div{
	position: relative;
	height: 150px;
	-webkit-box-flex:1;
    -moz-box-flex:1;
    -ms-flex:1;
    -webkit-flex:1;
    flex:1;
    max-width: 50px;
	background-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.45) 100%);
	-webkit-transition: height 0.5s ease;
	transition: height 0.5s ease;
}

div:nth-of-type(1){
	margin: 0;
}

div:after{
	content:'';
	position: absolute;
	top: -.6rem;
	bottom: .6rem;
	left: 100%;
	width: 2rem;
	background-color: inherit;
    background-image: linear-gradient(to left, rgba(0,0,0,0.45) 0%,rgba(0,0,0,0) 100%);	
	-webkit-transform: skewY(-30deg) translate3d(0,0,0);
	transform: skewY(-30deg) translate3d(0,0,0);
}

div:before{
	content:'';
	position: absolute;
	bottom: 100%;
	left: 1rem;
	right: -1rem;
	height: 1.1rem;
	background-color: inherit;
	background-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.25) 100%);
	-webkit-transform: skewX(-60deg) translate3d(0,0,0);
	transform: skewX(-60deg) translate3d(0,0,0);
}

div:nth-of-type(1){
	background-color: #ffa14d;
}
div:nth-of-type(2){
	background-color: #d76749;
}
div:nth-of-type(3){
	background-color: #4cd749;
}
div:nth-of-type(4){
	background-color: #49d7cb;
}
div:nth-of-type(5){
	background-color: #aa49d7;
}