<button class="start">Start</button>

<div class="box">
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
</div>   
.box {
  width: 800px;
  margin: 0 auto;
}

.item {
  float: left;
  width: 70px;
  height: 00px;
  background: #2592a5;
  margin-right: 10px;
  border-radius: 8px;
  &.last-child {
    margin-right: 0px;
  }
}

.start {
  border: 0px;
  padding: 18px 75px;
  font-size: 22px;
  border-radius: 8px;
  display: block;
  margin: 2rem auto;
}
$(function (){
    $(".start").on("click", function (){

        var $this = $(this);
        
        $(".item").period({
            delayTimes: 200,
            before: function (){
                $this.text('Before')
            },
            todo: function(index){
                $this.text(index)

                $(this).animate({
                    height: '70px'
                })  
            },
            after: function (){
                $this.text('After').prop('disabled', true)
            }
        })
    })
})

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://codepen.io/fdjkgh580/pen/PBGdJa
  2. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js