JSFiddle - React, Tailwind, and code Playground

HTML

<body>

     <div id="count">0</div>

    <div id="left"></div>
    <div id="right"></div>


         <div class="linear">
             <i id="circle"></i>
             <i id="rhombus"></i>
         </div>

</body>

CSS

body {
  text-align: center; 
  background: #F0EFEE;
  color: #777;
}

#count {
  position: fixed;
  display: inline-block;
  float: left;
  padding: 10px 20px;
  background: #fff;
  font: 1.5rem/1 monospace;
  border-radius: .25rem;
  box-shadow: 0 2px 2px rgba(0, 0, 0, .2);
  z-index:20;
  left:20px;
  top:15px;
}

.linear { 
  display: inline-block;
  position: relative; 
  margin: 20px 16px 20px 20px; 
  width: 80%; 
  height: 400px; 
  background:white; 
}

#left {
  background: #F0EFEE;
  width: 10%;
  height: 100%; 
  top:0;
  left:0;
  position: fixed;
  z-index:15;
}

#right {
  background: #F0EFEE;
  width: 11%;
  height: 100%; 
  top:0;
  left:89%;
  position: fixed;
  z-index:15;
}

#circle {
  position: absolute;
  width: 45px;
  height: 45px;
  left: 0;
  top: 150px;
  border-radius: 50%;
  background: #F6AC31;
  
}

#rhombus {
    border-style: solid;
    border-color: transparent transparent #00BFFF transparent;
    border-width: 0 15px 15px 15px;
    height: 0;
    width: 30px;
    left: 0;
    top: 150px;
    position: absolute;
    
}
#rhombus:after {
    content: "";
    position: absolute;
    top: 15px;
    left: -15px;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: #00BFFF transparent transparent transparent;
    border-width: 40px 30px 0 30px;
}

JavaScript

$("#circle").animate({ left: '100%' }, 7000 );

$("#rhombus").hide();

$("#circle").click(function(){
$(this).hide();$("#rhombus").show().animate({ left: '100%' }, 7000 );$('#count').html(+$('#count').html()+1);
});