Horizon

Signature

Gives a background a glowing edge of light, 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 / 1.20 s

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

What it does

The rim of a vast sphere rises along the bottom of the frame.

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
Idle
Acts on
Background
Typical length
1.2 s (36 frames at 30 fps)
Caution
Optional; never over content.
PropertyValue
Sphere radius
2.4 S (2592 px)
Rise
Caller supplied in % S
Colour
Light or Accent tint
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 horizon(t: number, duration: number, rise: number) {
  return { radius: 2592, y: rise * (1 - out(phase(t, 0, duration))) };
}

Rejected variants

TriedVerdict
Glow over content
Rejected

Best practices

Use it forAvoidRejected before
A brand-suited background
Light over content
Glow over content
A low glowing rim
A mandatory light effect

Reduced motion: a simple opacity fade over 0.2 s.