Closed damnitrahul closed 4 months ago
@damnitrahul which dotlottie-react version you're using?
"@lottiefiles/dotlottie-react": "0.7.2"
@theashraf
Tried with the latest "@lottiefiles/dotlottie-react": "0.8.1"
- same results.
One key thing to note is that it only happens when the player is off-screen when the page is loaded/refreshed. If I keep the player in viewport and try refreshing, it works as expected and shows the first frame. @theashraf
This could be related to https://github.com/LottieFiles/dotlottie-web/issues/273 ?
Canvas is only rendered visible area in the viewport. Any workaround for this?
Hi @damnitrahul, will address this issue in the next release by tomorrow
@damnitrahul can you check out if dotlottie-react v0.8.3 fixes your issue
@theashraf Yes! Thank you for addressing the issue. 🙏🏼
Overview
I'm seeing a weird behavior while using
@lottiefiles/dotlottie-react
. I have an animation that will be triggered when in viewport and until it's played it should just show the first frame.But, it doesn't show up in the first frame after dotLottie file has been loaded and stays empty. It only renders the first frame if I resize the window.
You can find the component code at https://github.com/LottieFiles/dotlottie-web/issues/286#issuecomment-2212408970 Here's a loom video for the behaviour ...
Consuming repo