JSFiddle - React, Tailwind, and code Playground

by leopoldthecuber

HTML

<div class="metro three-d"></div>

CSS

.metro {
  display: inline-block;
  padding: 5px;
  margin: 50px;
  width: 1px;
  height: 19.5px;
  background: #117ebb;
  color: white;
  font-weight: bold;
  text-decoration: none;
}



.metro.three-d {
  position: relative;
  box-shadow: 
    1px 1px #003355,
    2px 2px #003355,
    3px 3px #003355;
  transition: all 0.1s ease-in;
}
.metro.three-d:active { 
  box-shadow: none;
  top: 3px;
  left: 3px;
}
.metro.three-d:after {
    transition: all 0.1s ease-in;
    position:absolute;
    top:0px;
    left:-13px;
    content:" ";
    width: 0;
    height: 2px;
    border-top: 13px solid transparent;
    border-bottom: 15px solid transparent;
    border-right:13px solid #117ebb;
    border-radius:0px 0px 0px 20px;
   

}