Lottie-web: How does the renderer fill the screen? Don't keep the aspect ratio!

Created on 20 Dec 2019  Â·  4Comments  Â·  Source: airbnb/lottie-web

I want to stretch the page completely, what can I do?
Don't keep the aspect ratio.
I use canvas as a renderer.
image
image

Most helpful comment

Hi, have you tried using the preserveAspectRatio?
https://github.com/airbnb/lottie-web/wiki/Renderer-Settings#preserveaspectratio

what value did you try?

I made a stupid mistake, I think ‘ ’ == none.
preserveAspectRatio: 'none' problem solved, he bothered me all afternoon.😤

All 4 comments

Hi, have you tried using the preserveAspectRatio?
https://github.com/airbnb/lottie-web/wiki/Renderer-Settings#preserveaspectratio

Thank you for responding so quickly!
I tried preserveAspectRatio but he can't meet my needs.😭

what value did you try?

Hi, have you tried using the preserveAspectRatio?
https://github.com/airbnb/lottie-web/wiki/Renderer-Settings#preserveaspectratio

what value did you try?

I made a stupid mistake, I think ‘ ’ == none.
preserveAspectRatio: 'none' problem solved, he bothered me all afternoon.😤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dulllud picture dulllud  Â·  3Comments

ritsraghani picture ritsraghani  Â·  3Comments

phileastv picture phileastv  Â·  3Comments

yannieyeung picture yannieyeung  Â·  3Comments

samiam2017 picture samiam2017  Â·  3Comments