Initialisieren
This commit is contained in:
17
lib/motion.ts
Normal file
17
lib/motion.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* 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);
|
||||
Reference in New Issue
Block a user