Closed leobenkel closed 2 years ago
Shouldn't it be newInstance.setSpeed
instead of lottie.setSpeed
so it doesn't set it for all ?
Hi @leobenkel, I haven't managed to reproduce this error, are you using the latest version? Heres my codesandbox:
https://codesandbox.io/s/lottie-react-speed-test-veuux?file=/src/App.js
@leobenkel Thanks, you're right it should be newInstance.setSpeed. Let me push up a fix and ping you back
cool thanks ! :)
Thanks @leobenkel this should be fixed in 3.4.2 :)
it works ! Thanks !
Tell us about your environment
What did you do? Please explain the steps you took before you encountered the problem.
I have more than one lottie icon on a given page. it seems that the last one to load is setting the
speed
for all of them. I have one withspeed="0.5"
and 2 with aspeed="2"
and it seems that all of them behave at a speed of 2.What did you expect to happen?
I would expect each lottie component to be independent.
I tried to edit the
labels
but i don't think i have the rights to do it.