Sort into bar

Signature

Turns many items into a grouped summary, showing a mess becoming order. A signature look. Use it only when the brand's style calls for it, never as a default.

Rendered video, with motion blur.

1
2
3
4
5
6
7
8
9
10
11
12
0.00 / 3.65 s

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

What it does

Items lose their content as they slide into grouped slots in a bar.

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
Build
Acts on
Group
Typical length
3.65 s (110 frames at 30 fps)
Caution
Arrive in group order and fade the content before the slots get small.
PropertyValue
Start
2.25 s + group × 0.07 s + random up to 0.3 s
Duration
0.9 s
Content
Fades during arrival
Colour
Group colour from brand kit
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 sortIntoBar(t: number, group: number, random: number, fromX: number, fromY: number, toX: number, toY: number) {
  const k = easeInOut(phase(t, 2.25 + group * 0.07 + random * 0.3, 0.9));
  return { x: lerp(fromX, toX, k), y: lerp(fromY, toY, k), contentOpacity: 1 - k, groupMix: k };
}

Best practices

Use it forAvoid
Grouping many items
Unordered arrivals
A grouped summary bar
Content remaining in tiny slots

Reduced motion: a simple opacity fade over 0.2 s.