18 lines
491 B
TypeScript
18 lines
491 B
TypeScript
/**
|
||
* Zentrale Motion-Tokens (aus dem Landing-Page-Animations-Skill).
|
||
* Micro: 120–220ms · UI: 300–600ms · Story: 800–1400ms
|
||
*/
|
||
export const DUR = {
|
||
micro: 0.18,
|
||
ui: 0.45,
|
||
story: 1.1,
|
||
} as const;
|
||
|
||
export const EASE = "power3.out";
|
||
|
||
/** Langer, physikalisch wirkender Auslauf (Glücksrad). */
|
||
export const wheelEase = (t: number) => 1 - Math.pow(1 - t, 5);
|
||
|
||
/** Münz-Auslauf: dramatisches Slow-down am Ende. */
|
||
export const coinEase = (t: number) => 1 - Math.pow(1 - t, 4);
|