I am working of playSegments() but I am not able to start at 5 seconds and pause at 10 seconds

I am working of playSegments() but I am not able to start at 5 seconds and pause at 10 seconds

1 Like

Hey @Pratik

Are you able to us with us a codepen / snippet for us to have a look?

Hey Haris,

Thanks for the reply.

Have resolved the issue.

Thanks & Regards,
Pratik

For research purposes would you kindly share the result that worked for you?

Hi Irby,

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);

Regards,
Pratik

1 Like