Zoom

Zooms the view in on any point of the screen, smoothly or held in place the whole time. Say where to zoom, how close, and whether it repeats back and forth.

Camera, Audio & Sensors

Camera feed, hand and face tracking, touch, tilt, haptics, and sound.

Made with this block

Inputs

durationfloat

Duration on the zoom effect

sizefloat

Zoom intensity - how much to zoom in. Range from 0 to 1 0 means no zoom at all, and at zoom level 1, the view zooms in extremely close - so close that only about 4% of the original image remains visible.

zoomXPositionfloat

Defines where the final zoom point is centered horizontally (X axis), range from 0 to 1, where 0 is right edge of the screen and 1 is left edge of the screen

zoomYPositionfloat

Defines where the final zoom point is centered vertically (Y axis), range from 0 to 1, where 0 is top edge of the screen and 1 is bottom edge of the screen

zoomTypeint

Type of zoom:

2 values
0
Zoom in: The camera starts at the normal view and smoothly moves toward the selected zoom level over the specified duration, creating a zoom-in effect.
1
Zoom out: The camera starts at the chosen zoomed-in state and smoothly moves back to the normal view over the duration, creating a zoom-out effect.
loopOptionsint

Defines how the zoom animation loops: 0 - The zoom restarts from the beginning after each cycle 1 - Ping-pong. The zoom alternates direction (zooms in, then out or vice versa)

infiniteLoopboolean

Enable continuous zoom loop. When enabled, the zoom animation will repeat endlessly

loopCountint

Specifies how many times the zoom animation will repeat. A value of 0 means no repetition, and there's no upper limit.