Files
entscheidomat/lib/motion.ts
2026-07-23 21:59:15 +02:00

18 lines
491 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* Zentrale Motion-Tokens (aus dem Landing-Page-Animations-Skill).
* Micro: 120220ms · UI: 300600ms · Story: 8001400ms
*/
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);