Hi,
How can I scale an image in a container without scaling the container?
Thank you in advance!
Hi,
How can I scale an image in a container without scaling the container?
Thank you in advance!
Hello @maravelosk,
Thanks for writing to us
There are several ways to fit the image to the container. If you are using the Image element you have an option of Object Fit.
The CSS object-fit property is used to specify how an <img>
should be resized to fit its container.
This property tells the content to fill the container in a variety of ways; such as “preserve that aspect ratio” or “stretch up and take up as much space as possible”.
Hope it helps
Thanks
Hi again,
Thank you for your answer. Also I would like to zoom in the image on hover without changing the size of the image/container.
How is this possible?
Thank you in advance!
Hello @maravelosk,
You can use the Effect Module for the Zoom in effect. Please have a look at our video tutorial to learn more about how to set animation.
Hope it helps
Thanks
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.