I am currently working on creating a progress bar animation, but I'm unsure whether to use CSS or JS. Can anyone provide insight on how this effect was achieved here? I am hoping to replicate it.
Does anyone know if this is the code they used? I'm having trouble reproducing the same effect in my own environment.
topReviews: {
selector: ".post-review .progress span",
init: function() {
var b = this
, c = a(b.selector);
b.control(c),
e.scroll(function() {
b.control(c)
})
},
control: function(b) {
var c = -1;
b.filter(":in-viewport").each(function() {
var b = a(this)
, d = b.data("width");
c++,
setTimeout(function() {
TweenLite.to(b, 1, {
width: d + "%"
})
}, 200 * c)
})
}
},
Thank you!