Done bounce
Marks a task as done with a small lift, quieter than a tick icon.
Rendered video, with motion blur.
Your headline
0.00 / 0.40 s
Live preview, driven by the code below. No motion blur.
What it does
A card lifts slightly and returns with a thin positive outline.
Curve
Sine: out and back
Values
S is the frame's short side, 1080 px at 1080p. Unmeasured inputs in the preview are illustrations, not rules.
| Fact | Value |
|---|---|
Purpose | Emphasis |
Acts on | Card |
Typical length | 0.4 s (12 frames at 30 fps) |
Caution | Bounce once with an outline; never add a tick icon. |
| Property | Value |
|---|---|
Lift | 2.4% S (26 px) |
Scale | 1 to 1.05 and back |
Duration | 0.4 s |
Outline | Positive, 0.28% S (3 px) |
Tick icon | None |
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 doneBounce(t: number) {
const k = Math.sin(Math.PI * phase(t, 0, 0.4));
return { y: -26 * k, scale: 1 + 0.05 * k, outline: 3 };
}Rejected variants
| Tried | Verdict |
|---|---|
Done state shown as a tick icon | Rejected: small bounce and a thin outline in the positive slot |
Best practices
| Use it for | Avoid | Rejected before |
|---|---|---|
A completed card | A tick icon | Done state shown as a tick icon |
A quiet done state | Repeated bouncing |
Reduced motion: a simple opacity fade over 0.2 s.