You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the repro cases I've used an animation file from the Lottie site but I first noticed this with a different animation so it seems that it's not the animation file itself.
If anyone else comes across this, there's a setting already in the library to handle clearing the canvas on re-draw. I didn't see it in the docs anywhere though. Can pass it as rendererSettings to the Player component. Properties you can pass are in this defaultOptions object: https://github.com/LottieFiles/lottie-react/blob/master/src/Player.tsx#L101-L106
<Playersrc={"./animation.json"}renderer={"canvas"}rendererSettings={{clearCanvas: true}}// Clears on re-draw/>
Overview
The canvas renderer displays visual bugs. It looks like the background is not being cleared before a new frame is drawn.
I've created a repro for the issue:
The issue is also present in
lottie-player
but is not present inlottie-web
.For the repro cases I've used an animation file from the Lottie site but I first noticed this with a different animation so it seems that it's not the animation file itself.
Consuming repo
react-lottie-player
...
Labels
Type: Bug
label to this issue.This is potentially the same issue as: LottieFiles/lottie-player#211
The text was updated successfully, but these errors were encountered: