-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.ts
More file actions
27 lines (21 loc) · 918 Bytes
/
Copy pathconstants.ts
File metadata and controls
27 lines (21 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Phase 4 motion constants. Keep all timings in one place so a design pass
// only needs to edit here. Durations are ms; transitions are typed for
// motion/react's `transition` prop.
import type { Transition } from 'motion/react';
// Spring used when a pill/card morphs between status variants.
export const STATUS_SPRING: Transition = {
type: 'spring',
stiffness: 260,
damping: 24,
mass: 0.9,
};
// Progress bar tween — 400ms ease-out per the v2 plan.
export const PROGRESS_TWEEN_MS = 400;
// Cross-bracket label swap ("Just now" → "1 min ago").
export const TIMESTAMP_FADE_MS = 180;
// Card-level enter/exit when the status variant flips.
export const CARD_MORPH_MS = 280;
// Connection pill: duration of one pulse and the minimum gap between pulses.
// Gap enforces the 4 Hz ceiling called out in the plan.
export const CONNECTION_PULSE_MS = 150;
export const CONNECTION_PULSE_MIN_GAP_MS = 250;