@fusion.dev/helix-docs 0.250.0 → 0.251.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 +282 -282
- package/content/motion.mdx +9 -6
- package/dist/sources.generated.js +291 -288
- package/package.json +12 -12
package/content/motion.mdx
CHANGED
|
@@ -232,8 +232,9 @@ once and the two sides crossfade over `--helix-duration-fade`.
|
|
|
232
232
|
|
|
233
233
|
## Swipes that carry through
|
|
234
234
|
|
|
235
|
-
A touch or a pen drags a `Toast` toward the edge its stack sits at,
|
|
236
|
-
`Drawer` toward the edge it came from
|
|
235
|
+
A touch or a pen drags a `Toast` toward the edge its stack sits at, a
|
|
236
|
+
`Drawer` toward the edge it came from, and a `Menu` that opened as a sheet down
|
|
237
|
+
toward the bottom of the window. The surface follows the finger, and past
|
|
237
238
|
its open end it gives less and less. On release it keeps the speed it had. A
|
|
238
239
|
quick flick dismisses from any distance and carries the surface off the window
|
|
239
240
|
at that speed. A slow drag past halfway dismisses too, and the surface gathers
|
|
@@ -241,12 +242,14 @@ pace as it goes. A shorter drag springs back to rest along
|
|
|
241
242
|
`--helix-easing-spring`, with its speed carried in. A dismissal goes through
|
|
242
243
|
the component's own close, so a page that cancels `helix-before-close` or
|
|
243
244
|
`helix-dismiss` sends the surface back to rest. While a drag and its release
|
|
244
|
-
run, the component has `:state(dragging)
|
|
245
|
-
`--drawer-drag-progress
|
|
246
|
-
finger, and then goes or returns
|
|
245
|
+
run, the component has `:state(dragging)`. A drawer's backdrop fades with
|
|
246
|
+
`--drawer-drag-progress`, and a menu's scrim with `--menu-drag-progress`. Under
|
|
247
|
+
reduced motion the surface still follows the finger, and then goes or returns
|
|
248
|
+
at once. `--drawer-release-duration`, `--menu-release-duration`, and
|
|
247
249
|
`--toast-release-duration` set the longest a release takes, and `0ms` ends it
|
|
248
250
|
at once. `DragDismissController` in `@fusion.dev/helix-core` gives a component
|
|
249
|
-
of your own the same gesture
|
|
251
|
+
of your own the same gesture, and `SheetController` gives a floating surface of
|
|
252
|
+
your own the whole sheet: the scrim, the drag, and the page held still.
|
|
250
253
|
|
|
251
254
|
## Figures that count
|
|
252
255
|
|