After successfully solving the issue, I wanted to share my approach with others who may encounter the same problem:
To resolve it, I decided to utilize ScrollMagic in conjunction with the vue-lottie library.
animate(){
const valSect = this.$refs.valueSection;
//SCROLLMAGIC
const controller = new this.$scrollmagic.Controller();
const scene = new this.$scrollmagic.Scene({
duration:9000,
triggerElement:valSect,
triggerHook:0
})
.setPin(valSect)
.addTo(controller);
let scrollpos = 0; //SCROLL POSITION TRACKER
//SCROLL LISTENER
scene.on('update', e => {
scrollpos=e.scrollPos/this.anim.totalFrames;
})
setInterval(() => {
//delay += (scrollpos - delay) * accelAmount;
this.anim.goToAndStop(scrollpos,true);
});
}
},
I invoked the animate method within mounted and connected it to the lottie component using another method.