> ## Documentation Index
> Fetch the complete documentation index at: https://motionly.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Canvas And Camera

> Configure canvas size, frame rate, duration, background, and camera framing in .motion files.

# Canvas And Camera

The `canvas` block defines the project output surface.

```motion theme={null}
canvas {
  size 1920x1080
  fps 60
  duration 5s
  background #020308
}
```

Use canvas settings as the source of truth for preview and export. Motionly currently reads canvas resolution, aspect ratio, FPS, and duration from `.motion`.

The optional `camera` block controls global framing.

```motion theme={null}
camera {
  zoom 1
  x 0
  y 0
}
```

Camera movement should mark a real focal shift or scene change. Avoid constant random drift.
