Push in

Moves the camera slowly towards one thing, telling the viewer where to look.

Rendered video, with motion blur.

0.00 / 2.00 s

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

What it does

The camera pushes slowly towards one focal point.

Curve

Quint in-out

Values

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

FactValue
Purpose
Emphasis, idle
Acts on
Screen
Typical length
2 s (60 frames at 30 fps), directed; Creep runs the whole scene
Caution
Never pan or scroll at the same time.
PropertyValue
Speed
Directed or Creep
Directed
Scale 1 to 1.1 over 2 s, quint in-out
Creep
Scale 1 to 1.02 to 1.035 over the whole scene
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 dollyPush = (t: number, amount = 0.1, dur = 2) => 1 + amount * io(seg(t, 0, dur));

export function creep(t: number, duration: number, amount = 0.025) {
  return { scale: 1 + amount * easeInOut(phase(t, 0, duration)) };
}

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)})`;

Rejected variants

TriedVerdict
Camera push plus a scroll
Rejected

Best practices

Use it forAvoidRejected before
One focal item
A simultaneous pan
Camera push plus a scroll
A slow push
A simultaneous scroll
Readable holds
Stopping within a hold

Reduced motion: a simple opacity fade over 0.2 s.