@fusion.dev/helix-docs 0.249.2 → 0.250.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/content/metrics.mdx +284 -284
- package/content/motion.mdx +11 -3
- package/dist/sources.generated.js +295 -287
- package/package.json +12 -12
package/content/motion.mdx
CHANGED
|
@@ -16,6 +16,7 @@ title: Motion
|
|
|
16
16
|
| `--helix-duration-fast` | `120ms` |
|
|
17
17
|
| `--helix-duration-normal` | `200ms` |
|
|
18
18
|
| `--helix-duration-slow` | `320ms` |
|
|
19
|
+
| `--helix-duration-feedback` | `calc(var(--helix-duration-fast) * 2 / 3)` |
|
|
19
20
|
| `--helix-duration-turn` | `0.8s` |
|
|
20
21
|
| `--helix-duration-crawl` | `4s` |
|
|
21
22
|
| `--helix-duration-fade` | `120ms` |
|
|
@@ -30,14 +31,17 @@ title: Motion
|
|
|
30
31
|
| `--helix-easing-emphasized` | `cubic-bezier(0.3, 0, 0, 1.2)` |
|
|
31
32
|
| `--helix-easing-decelerate` | `cubic-bezier(0, 0, 0, 1)` |
|
|
32
33
|
| `--helix-easing-accelerate` | `cubic-bezier(0.3, 0, 1, 1)` |
|
|
34
|
+
| `--helix-easing-feedback` | `var(--helix-easing-decelerate)` |
|
|
33
35
|
| `--helix-easing-cycle` | `cubic-bezier(0.42, 0, 0.58, 1)` |
|
|
34
36
|
| `--helix-easing-spring` | `linear(0, 0.006, 0.025, 0.101, 0.539, 0.826, 0.976, 1.037, 1.043, 1.026, 1.006, 0.997, 1)` |
|
|
35
37
|
|
|
36
38
|
[//]: # (/tokens)
|
|
37
39
|
|
|
38
|
-
Helix has
|
|
39
|
-
`slow` time a change that answers a
|
|
40
|
-
|
|
40
|
+
Helix has eight durations and seven curves. `instant`, `fast`, `normal`, and
|
|
41
|
+
`slow` time movement. `feedback` times a change that answers a pointer, a key,
|
|
42
|
+
or focus, such as a hover color, a press, or a field taking focus. It is two
|
|
43
|
+
thirds of `fast`, so it follows the theme engine's pace. `fade` is the fade a
|
|
44
|
+
panel keeps while motion is reduced. `turn` is one revolution of a spinner, and `crawl` is
|
|
41
45
|
the same revolution while motion is reduced, so a busy ring still turns
|
|
42
46
|
slowly.
|
|
43
47
|
|
|
@@ -45,6 +49,10 @@ Use each curve for one kind of movement:
|
|
|
45
49
|
|
|
46
50
|
- `standard` for most movement
|
|
47
51
|
- `decelerate` for something arriving, such as a Dialog, a Drawer, or a Toast
|
|
52
|
+
- `feedback` for a change that answers a pointer, a key, or focus. It is
|
|
53
|
+
`decelerate`, which starts at full speed, so a control under a moving pointer
|
|
54
|
+
changes in the first frame. A hover wash that glides from item to item, and
|
|
55
|
+
the focus ring that travels along a toolbar, use it over `fast`
|
|
48
56
|
- `accelerate` for something leaving
|
|
49
57
|
- `cycle` for a loop that repeats, such as a pulse or a loading sweep
|
|
50
58
|
- `emphasized` for a floating panel opening from its trigger, such as a
|