I am working of playSegments() but I am not able to start at 5 seconds and pause at 10 seconds
Are you able to us with us a codepen / snippet for us to have a look?
Thanks for the reply.
Have resolved the issue.
Thanks & Regards,
For research purposes would you kindly share the result that worked for you?
Actually the need was to play Lotte animation based on the duration, the animation was controlled by a carousel.
So let’s say there are 3 slides in a carousel, each with duration 5seconds, and the complete animation duration is 15 seconds.
So based on control or slide select; the lotte animation plays, by default it played from 0-5 secs, then based on our input it played may be 5-10secs portion or 10-15secs portion.
We made use of siteTimeout with lottiePlayer.pause() also lottiePlayer.goToAndStop(endFrame, true);