dotlottie / player-component

https://dotlottie.io
MIT License
206 stars 28 forks source link

Intermission property has no effect #91

Closed sergeykcommpeak closed 1 year ago

sergeykcommpeak commented 1 year ago

It seems like intermission attribute does nothing. The player starts the next loop immediately. My code is pretty straightforward: <dotlottie-player ref={player} intermission={9} autoplay loop /> Actual lottie is loaded to this player later via player.load()

Am I missing smth or is it a bug? Thanks!

samuelOsborne commented 1 year ago

Will look in to this @sergeykcommpeak in the meanwhile, because you're manually loading via load() you can add a setTimeout to that call

samuelOsborne commented 1 year ago

hi @sergeykcommpeak its actually because the intermission is in milliseconds, try out intermission={9000} should work

sergeykcommpeak commented 1 year ago

@samuelOsborne Thanks, it does work. Sorry I haven't figured it out myself.