So my solution was to use setTimeout() with 1 second delay but it's not correct it's now react way..
Can you suggest more elegant solution or tell me where I've done the mistake? Cuz I don't know will it work with 1second delay in not localhost environment and if Server/Hosting will need more time to give me the html
Overview
Your configuration(https://docs.lottiefiles.com/lottie-interactivity/configuration-and-usage#configuration-for-react) doesn't suits for Next 14 in my case.
So my solution was to use setTimeout() with 1 second delay but it's not correct it's now react way.. Can you suggest more elegant solution or tell me where I've done the mistake? Cuz I don't know will it work with 1second delay in not localhost environment and if Server/Hosting will need more time to give me the html
setTimeout(()=>{ create({ player: ref.current, mode: 'chain', actions: [ { state: 'autoplay', transition: 'repeat', repeat: 2 }, { path: '/lottie/particles.json', state: 'autoplay', frames: [0, 110], transition: 'onComplete', reset: true, } ] }); },1000)
...Consuming repo
https://github.com/MerantauWarrior/framer-test/blob/main/src/animations/lottie/interactions/chainDynamic.jsx
...
Labels
Type: Bug
label to this issue.