# zoom_in
Apply a linear zoom-in effect to a Video.
## Call shape
```text
zoom_in(video: Video, by?: Number) -> Video
```
This is call-shape notation for lookup, not ClipAsm declaration syntax.
## Graph inputs
| `video` | `Video` | exactly one |
## Parameters and defaults
| `by` | `Number` | optional | 8% |
## Result and stack behavior
Outputs: `Video`.
Default stack access is **owned**. See [stack binding](../language/stack-binding.md) for ownership and visibility rules.
## Timeline and markers
Keeps the duration and addressable markers from `video`.
## Example
```clipasm
clipasm 1
config {
video {
fps = 30
}
}
image("assets/card.png", 2s)
zoom_in(12%)
```
Expected validation result: `Video` with exactly 60 project frames at the example's explicit `fps = 30`.
This exact example is parsed and compiled by the reference checks; compilation does not inspect the named media files.
## Behavior
- For a multi-frame Video, scale increases linearly from 100% on the first frame to exactly 100% + by on the last frame.
- The Video timeline and attached meaningful-Audio state are preserved.
## Requirements
- by must be positive.
## Common diagnostics
These are the diagnostics most specific to this program.
- [`E_INVALID_ZOOM_AMOUNT`](https://nikitamgrimm.github.io/clipasm/diagnostics/#e_invalid_zoom_amount) — Invalid zoom amount
## See also
- [Statements and calls](../language/statements-and-calls.md)
- [Stack binding](../language/stack-binding.md)