Lift out

Pulls one part out of a screen so the viewer sees it large, without the rest of the interface.

Rendered video, with motion blur.

0.00 / 0.60 s

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

What it does

A part lifts out of its screen and grows onto the canvas. It works from a screen or from a chart item.

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
Exit, join
Acts on
Card
Typical length
0.6 s (18 frames at 30 fps)
Caution
Lift one part at a time, never several.
PropertyValue
From
A screen or a chart item
Duration
0.6 s
Shadow
Grows with the lift
Rise and scale
Caller supplied; not measured
From a chart item: Rise, duration
Caller supplied; not measured
From a chart item: Shadow
Grows with the lift
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 function liftOut(t: number, rise: number, toScale: number) {
  const k = out(phase(t, 0, 0.6));
  return { y: -rise * k, scale: lerp(1, toScale, k), shadow: k };
}

export function liftOff(t: number, duration: number, rise: number) {
  const k = out(phase(t, 0, duration));
  return { y: -rise * k, shadow: k };
}

Best practices

Use it forAvoid
One focal component
Multiple extractions
A screen-to-canvas handover
An unrelated card
One chart item

Reduced motion: a simple opacity fade over 0.2 s.