zshot/cliDownload

--video-selector

CLI
--video-selector
ValueSELECTOR
LicenseStandard

Records only the element matching this CSS selector. The element’s box is measured once when recording starts and crops every frame.

A selector that is empty or matches nothing is an error. It applies to WebM, MP4 and MKV output, and is rejected with any other output type or --full-page.

Example

Run locally
zshot -f tiger.webm --video-selector ".stage svg" https://zshot-cli.com/example_assets/tiger/