marquee-content 7.0.0-dev.8 → 7.0.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/README.md +1 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ Calling a registration helper is only needed for an additional tag or global sty
|
|
|
67
67
|
| Option (HTML / JavaScript) | Type | Default | Description |
|
|
68
68
|
| --- | --- | --- | --- |
|
|
69
69
|
| `speed` | `number` | `90` | Base speed in px/s, clamped to `10`–`500`. Independent of container width. |
|
|
70
|
-
| `mode` | `'auto' \| 'scroll'` | `'auto'` | `'auto'` for constant movement; `'scroll'`
|
|
70
|
+
| `mode` | `'auto' \| 'scroll'` | `'auto'` | `'auto'` for constant movement; `'scroll'` follows page scrolling, with a speed boost on fine-pointer devices and constant speed on touch devices. |
|
|
71
71
|
| `direction` | `'rtl' \| 'ltr'` | `'rtl'` | Base direction: right to left or left to right. |
|
|
72
72
|
| `pause-on-hover` / `pauseOnHover` | `boolean` | `false` | Pauses movement while the pointer is over the host. Items remain decorative and inert. |
|
|
73
73
|
|
|
@@ -110,8 +110,6 @@ On touch devices matching `(hover: none) and (pointer: coarse)`, `scroll` follow
|
|
|
110
110
|
|
|
111
111
|
Elastic rebound after scrolling beyond a page edge does not reverse the marquee. A deliberate reverse gesture can change direction during rebound. Moving a finger or scrolling a nested container without page movement does not change the marquee direction.
|
|
112
112
|
|
|
113
|
-
For touch gestures that start at the bottom edge, viewport resizing after release preserves the gesture direction. Scrolling away from the top or starting inside the page continues to follow page movement during viewport changes. A new touch gesture resumes normal direction changes immediately.
|
|
114
|
-
|
|
115
113
|
While speed is changing on a fine-pointer device, `scroll` updates the track's transform on animation frames. Once speed settles, it returns to the Web Animations API and stops the JavaScript frame loop.
|
|
116
114
|
|
|
117
115
|
## Vue 3 with Vite
|