Closed elishaterada closed 2 years ago
Thanks @elishaterada for the suggestion, but i believe it's achievable as the Player component accepts rendererSettings
prop which can be used to set the preserveAspectRatio
as desired
https://github.com/LottieFiles/lottie-react/blob/master/src/Player.tsx#L78 https://github.com/airbnb/lottie-web/wiki/Renderer-Settings#preserveaspectratio
Confirmed, thanks. The type provided only specify "Object" so it was a bit unclear, but it works!
Overview
The
@lottiefiles/lottie-player
supports thepreserveAspectRatio
property which is handy to cover the entire page with animation. I thought it'd be helpful if the property is also supported for the React version....
Motivation
It would be great to be able to pass in
preserveAspectRatio
so I can use the React version of the library....
Labels
Type: Enhancement
label to this issue.