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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
use *;
/// Configuration for a `TransitionState`.
///
/// Both fields are reactive (the underlying state holds a
/// `Signal<TransitionConfig>`), so consumers can adjust
/// the durations at runtime via `change_config` and any
/// pending timers driven by the old config will continue
/// using the old values until they next read the config
/// signal.
/// The aggregate transition state.
///
/// Constructed once per animated element via
/// `App::use_transition(...)`. Cheap to `Clone` (each
/// internal signal is `Copy`-by-pointer). Drives the
/// state machine forward via `tick(elapsed_ms)` and
/// exposes the current phase / progress as reactive
/// signals so the consuming component's render closure
/// re-runs whenever either changes.