Cursor click
Shows a person using the product, with one clear click on one target.
Rendered video, with motion blur.
0.00 / 1.10 s
Live preview, driven by the code below. No motion blur.
What it does
A pointer arcs to a target, pauses and presses.
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.
| Fact | Value |
|---|---|
Purpose | Emphasis |
Acts on | Pointer |
Typical length | 1.1 s (33 frames at 30 fps) |
Caution | One click at a time, in ink, never in the accent. |
| Property | Value |
|---|---|
Arc rise | 5.6% S (60 px) |
Pause | 0.2 s |
Press scale | 0.86 |
Press duration | 0.14 s |
Pointer | 5.9% S (64 px) |
Colour | Ink with Ground outline |
Travel duration | 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 cursorClick(t: number, fromX: number, fromY: number, toX: number, toY: number, travelDuration = 0.65) {
const p = phase(t, 0, travelDuration);
const k = easeInOut(p);
const press = t + 1e-9 >= travelDuration + 0.2 && t + 1e-9 < travelDuration + 0.34;
return { x: lerp(fromX, toX, k), y: lerp(fromY, toY, k) - 60 * Math.sin(Math.PI * p), scale: press ? 0.86 : 1, size: 64 };
}Rejected variants
| Tried | Verdict |
|---|---|
Accent on the end of every sentence, accent cursor | Rejected |
Best practices
| Use it for | Avoid | Rejected before |
|---|---|---|
One visible click | Accent cursor | Accent on the end of every sentence, accent cursor |
A clear UI target | Several simultaneous clicks |
Reduced motion: a simple opacity fade over 0.2 s.