Closed housemeow closed 3 months ago
Hi @housemeow, It looks like the layout
object is missing the align
property.
One enhancement we can implement on our end is to add default fit
and align
properties to the layout
object if they are missing.
thanks @theashraf reply! cool! my animation shows!
does it mean 2 properties of layout object are required?
I can create a PR for that.
Hi @housemeow, Yes, both are required, but we can make them optional if we have a default value to rely on.
Sure, feel free to contribute—this would be a valuable fix for those using the layout option.
Overview
After I apply the
layout
property to DotLottie object, the animation will disappearConsuming repo
Here is the codepen link, yoiu you will see there are 2 canvas but only 1 shows. the different between them is
layout
property. https://codepen.io/housemeow/pen/OJeQggrLabels
Type: Bug
label to this issue.