Fit Modes
The fit parameter determines how an asset scales to match the timeline resolution.Fit.crop (default)
- Scales asset to fill viewport while maintaining aspect ratio
- Edges are cropped if aspect ratios differ
Fit.contain
- Scales asset to fit entirely within viewport while maintaining aspect ratio
- May add letterboxing (black bars) if aspect ratios differ
Fit.cover
- Stretches asset to fill viewport, ignoring aspect ratio
- May cause distortion
Fit.none
- Preserves original pixel dimensions
- No scaling applied
Code Example
Fit.none.
Position
The position parameter places the asset in one of 9 preset zones on the viewport. Think of your screen divided into a 3x3 grid - you can anchor your content to any of these zones, from corners to edges to dead center.Position.left
Code Example
Offset
The offset parameter provides fine-grained position control using relative coordinates. Sometimes the 9 preset zones aren’t quite right - maybe you want something centered but nudged slightly to the left, or positioned with a specific margin. That’s where offset comes in, letting you tweak positions with precision. ExampleOffset(x=-0.25)
Code Example
x: Horizontal shift (-1.0to1.0)- Positive values move right
- Negative values move left
y: Vertical shift (-1.0to1.0)- Positive values move down
- Negative values move up
- Values are relative to viewport dimensions
offset=Offset(x=0.1, y=0) on a 1080px wide viewport moves the clip 108px to the right.
Parameter Reference
| Parameter | Type | Description |
|---|---|---|
| fit | Fit | Scaling behavior: Fit.crop, Fit.contain, Fit.cover, Fit.none |
| position | Position | Anchor point: Position.top_left, Position.center, etc. (9 options) |
| offset | Offset | Fine-tuning position with x/y coordinates |
What You Can Build
TikTok Lyric Videos
Create vertical 9:16 videos optimized for TikTok and Reels
Brand Elements
Position logos and overlays precisely using fit and offset
Faceless Video Creator
Control aspect ratios for multi-platform content
Next Steps
Fit, Position & Aspect Ratios
Hands-on experimentation with all fit modes, 9-zone positioning, and aspect ratio handling.