Pull back

Opens close and widens, revealing the whole composition.

Rendered video, with motion blur.

0.00 / 0.70 s

Live preview, driven by the code below. No motion blur.

What it does

The shot starts close and eases out.

Curve

Expo out

Values

S is the frame's short side, 1080 px at 1080p. Unmeasured inputs in the preview are illustrations, not rules.

FactValue
Purpose
Enter
Acts on
Screen
Typical length
0.7 s (21 frames at 30 fps)
Caution
Never pull back twice in a row.
PropertyValue
Scale
1.28 to 1
Duration
0.7 s
Scale path
Linear for small changes, log space for large zooms (exp(lerp(ln a, ln b, easeInOut(p))))
Export samples
12; 1 when still

Code

ts
export const seg = (t: number, a: number, b: number) => Math.max(0, Math.min(1, (t - a) / (b - a)));

export const lerp = (a: number, b: number, k: number) => a + (b - a) * k;

export const out = (k: number) => (k >= 1 ? 1 : 1 - Math.pow(2, -10 * k));

export const io = (k: number) => (k < 0.5 ? 16 * k ** 5 : 1 - Math.pow(-2 * k + 2, 5) / 2);

export const inn = (k: number) => k * k * k;

export const cubicOut = (k: number) => 1 - Math.pow(1 - k, 3);

export const h = (i: number, j: number) => { const x = Math.sin(i * 127.1 + j * 311.7) * 43758.5453; return x - Math.floor(x); };

export const phase = (t: number, start = 0, duration = 0.6) => seg(t, start, start + duration);

export const easeInOut = (p: number) => p < 0.5 ? 4 * p ** 3 : 1 - (-2 * p + 2) ** 3 / 2;

export const pullBack = (t: number, from = 1.28, dur = 0.7) => lerp(from, 1, out(seg(t, 0, dur)));

export const cam = (s: number, fx: number, fy: number) => `translate(${(fx - fx * s).toFixed(2)}px, ${(fy - fy * s).toFixed(2)}px) scale(${s.toFixed(4)})`;

export function logPullBack(t: number) {
  const p = easeInOut(phase(t, 0, 1.15));
  return { scale: Math.exp(lerp(Math.log(1.45), Math.log(0.13), p)) };
}

Best practices

Use it forAvoid
Opening a scene
Scaling one element only
Revealing the full composition
Pulling back twice in a row
A large change in scale

Reduced motion: a simple opacity fade over 0.2 s.