I’ve added a Lottie animation to my website. I want the animation to always fill the entire container vertically and then to align to the right part of the container.
If I set height to 100% and width to auto, the container does not resize, but the animation stays at 300px. If I set both to 100%, I get the proper size, but I can’t manage to align it to the right. Flex or float does not work. After some research I stumbled upon a thing that should work, that’s a preserveAspectRatio attribute. If I apply “xMaxYMid meet” in Chrome inspector I get the desired result, but I have no idea how to apply this attribute to Webflow Lottie element.