Skip to main content

Zoom

zoom: true applies a center-based zoom effect during the element's visible duration.

zoom?: boolean;

zoom is supported for IMAGE, VIDEO, and GIF elements. It is not part of the SVG API schema.

Example

{
"type": "IMAGE",
"src": "https://cdn.example.com/photo.jpg",
"width": 1280,
"height": 720,
"zoom": true
}

Used By