Zoom In , zoom Out on GUI

Hello , i need to show on image with GUI and make a zoom in and zoom out to make the image bigger or smaller , is that possible with babylon ?


Yes you can control the size of the image element with width and height

If you want to keep the image element unchanged then you can use the sourceXXX properties:

Any exemple in the playground please ?

here we are:

1 Like

Thanks for the xemple , but it is not connected to the mousse ? i need to zoom in zoom out with the mousse scroll

Yeah sure but this is pure JS :slight_smile: just handle mouse wheel event (onwheel Event)