Focus in

Brings a headline into focus instead of sliding it in, so attention lands on the words, not the movement.

Rendered video, with motion blur.

Your headline
0.00 / 0.45 s

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

What it does

Text arrives soft and muted, then sharpens to ink.

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
Line, card
Typical length
0.45 to 0.8 s (14 to 24 frames at 30 fps)
Caution
Headlines and single reveals only, not body copy.
PropertyValue
Target
text (colour from muted ink to ink, no scale) or object (scale 1.25 to 1)
Text: Blur
0.65% S (7 px) to 0
Text: Colour
Muted ink to Ink
Text: Opacity
min(1, 0.55 + 2k)
Text: Scale
No scale
Text: Duration
0.45 s
Object: Blur
2.2% S (24 px) to 0
Object: Scale
1.25 to 1
Object: Opacity
min(1, 3k)
Object: Duration
0.5 to 0.8 s
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 focusK = (t: number, start = 0) => out(seg(t, start, start + 0.45));

export function focusSlots(t: number, start = 0) {
  const k = focusK(t, start);
  return { inkMix: k, blur: lerp(7, 0, k), opacity: Math.min(1, 0.55 + 2 * k) };
}

export function resolve(t: number, duration = 0.6) {
  const k = out(phase(t, 0, duration));
  return { blur: 24 * (1 - k), scale: lerp(1.25, 1, k), opacity: Math.min(1, 3 * k) };
}

Best practices

Use it forAvoid
Headlines
Body copy
Key lines
A slide combined with the focus
A single reveal
Repeated reveals
One focal item
Overshoot

Reduced motion: a simple opacity fade over 0.2 s.