# Wait for animations to finish

Source: https://zshot-app.com/help/wait-for-event/
Markdown: https://zshot-app.com/help/wait-for-event/index.md
Section: [Help](https://zshot-app.com/help/) › Screenshots
Kind: Timing

Wait until the page fires a custom event, so you catch the final frame.

Video: [example_2.webm](https://zshot-app.com/media/help/example_2.webm), 0:27

## What to do

1. **Paste it** Paste this into the URL field: `https://zshot-cli.com/example_assets/hello_zshot/`
2. **Set the wait** Click the wait button in the URL bar, then the JS event tab, and enter the event to wait for: `animation:complete`
3. **Capture It** Click Capture. The shot lands on the settled final frame, not mid-animation.

Do this from the command line: https://zshot-cli.com/examples/wait-for-event/
Reference: [--wait-for](https://zshot-cli.com/reference/flags/common/wait-for/)

## Related

- [Screenshot a page to PNG](https://zshot-app.com/help/hello-from-zshot/) — Capture a page exactly as it renders.
- [Record a page to WebM](https://zshot-app.com/help/webm-video/) — Capture an animation to a WebM clip.

## Navigation

- [ZShot](https://zshot-app.com/)
- [Help](https://zshot-app.com/help/)
- [Download ZShot](https://zshot-app.com/download.html)
- [CLI documentation](https://zshot-cli.com/)

Site index: https://zshot-app.com/llms.txt

