0

Is it possible to connect Chart.js animation progress with GSAP ScrollTrigger progress?

In Chart.js documentation there's a callback progress:

I was wondering can we set chart.js animation progress depending on a ScrollTrigger progress? So inside onUpdate callback of a ScrollTrigger:

ScrollTrigger.create({
// Some code ...
...
onUpdate(e) {
chart.animation.progress = e.progress;
}
});

I am wondering if it is possible at the first place and if so then how can I do it?

0 Answers0