Light pool

Signature

Adds a soft, drifting glow behind content, for brands that use light. A signature look. Use it only when the brand's style calls for it, never as a default.

Optional: use only if it suits the brand. Never on top of content.

Rendered video, with motion blur.

0.00 / 3.00 s

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

What it does

An edgeless radial glow drifts slowly.

Curve

Ease in-out cubic

Values

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

FactValue
Purpose
Idle, loop
Acts on
Background
Typical length
3 s (90 frames at 30 fps), preview; drifts the whole scene
Caution
Keep it edgeless and behind content.
PropertyValue
Option
Drift, or Rise from below
Alpha
0.12 to 0.25
Colour
Light or Accent tint
Drift and timing
Caller supplied; not measured
Rise from below: Radii X
70% to 150% of frame
Rise from below: Radii Y
55% to 130% of frame
Rise from below: Timing
Caller supplied; not measured
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 lightPool(t: number, duration: number, drift: number) {
  const p = phase(t, 0, duration);
  return { x: drift * easeInOut(p), alpha: lerp(0.12, 0.25, p) };
}

export function bloom(t: number, duration: number) {
  const k = phase(t, 0, duration);
  return { radiusX: lerp(0.7, 1.5, k), radiusY: lerp(0.55, 1.3, k) };
}

Rejected variants

TriedVerdict
Glow over content
Rejected

Best practices

Use it forAvoidRejected before
A quiet background
Edges around the glow
Glow over content
A brand-suited light field
Light over content

Reduced motion: a simple opacity fade over 0.2 s.