Zoom - Forum

Forum Navigation
You need to log in to create posts and topics.

Zoom

Is it possible to zoom in and zoom out an image?

@zaqueo please take a look at the attached sample app.

Note these important image properties:

width: 100%
height: 100%
object-fit: cover
transition: all 1s ease-out 0s

Zoom In button code:
SetObjectStyle "Image1" "transform" "scale(2)"

Zoom out button code:
SetObjectStyle "Image1" "transform" "scale(1)"

Let me know if you have any doubts.

Uploaded files:
Vadim and asmat have reacted to this post.
Vadimasmat

thanks for your help, but this causes the Image to scale not to zoom. What I was trying to get is to zoom IN and OUT of the complete image, not to change its size.

What I was trying to get is to zoom IN and OUT of the complete image, not to change its size.

@zaqueo sorry, I don't understand the difference. Do you mean something like this? (click on the information icon and then use the mouse wheel to zoom in and out):

https://novonordisklab.com/#!/panorama

If so, this effect has been done using the included neoPanZoom plugin.

Zaqueo has reacted to this post.
Zaqueo

Exactly! I will try your suggestion with the plugin. thanks