I am trying to animate this section of my portfolio page:
I would like for each of those 5 bars to light up one at a time.
Here are is the relevant code for this:
HTML:
<div class="row">
<div class="col-lg-12 skill-item">
<div class="row">
<div class="col-lg-2"><i class="devicon-html5-plain-wordmark"></i></div>
<div class="col-lg-10">
<div class="row">
<div class="col-lg-12 skill-bar">
<div class="row">
<div class="col-lg-2 skill-rank-inactive"></div>
<div class="col-lg-2 skill-rank-inactive"></div>
<div class="col-lg-2 skill-rank-inactive"></div>
<div class="col-lg-2 skill-rank-inactive"></div>
<div class="col-lg-2 skill-rank-inactive"></div>
</div>
</div>
<div class="col-lg-12 skill-level">
HTML5
</div>
</div>
</div>
</div>
</div>
SCSS:
.skill-rank-inactive {
background: white;
border: 2px solid white;
height: 3vh;
transition: all 2s;
}
#back-end {
.skill-rank-active {
background: $green;
border: 2px solid white;
height: 3vh;
}
i {
color: $green;
}
}
#front-end {
.skill-rank-active {
background: $blue-bright;
border: 2px solid white;
height: 3vh;
transition: all 2s;
}
i {
color: $blue-bright;
}
}
Javascript:
$('#skills-page').bind('inview', function() {
$('.skill-rank-inactive').addClass('skill-rank-active');
$('.skill-rank-inactive').removeClass('skill-rank-inactive');
});
Is there a way to add 500ms delay between the transition of each "skill-rank" on the page? There would be multiple skills such as PHP, CSS, etc... I'd like for each skill to start at the same time, ie. the first rank for each skill starts then 500ms the next rank all the way up.
