@joy-ride/joy-ride 0.2.1 → 0.2.3
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 -1
- package/npm/bookmarklet.js +1 -1
- package/npm/embed-chunks/{Documentation-ph9sr7BT.js → Documentation-DRBCOvgw.js} +2 -2
- package/npm/embed-chunks/{bookmarklet-Bek8gyOY.js → bookmarklet-DlL5EMxG.js} +2 -2
- package/npm/embed-chunks/src-BH3xIhRK.js +53 -0
- package/npm/embed.js +1 -1
- package/npm/index.d.ts +7 -5
- package/npm/index.js +1 -1
- package/package.json +1 -1
- package/npm/embed-chunks/src-UqbaZg21.js +0 -53
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ The script starts Joy Ride on the page. For custom vehicles, liquid recipes, con
|
|
|
24
24
|
|
|
25
25
|
Install the root package with `npm install @joy-ride/joy-ride` and import `JoyRide from '@joy-ride/joy-ride'` in a client-side entry point. The script above loads the same runtime through unpkg and starts it automatically. For a client application that does not install the runtime, dynamically import `https://unpkg.com/@joy-ride/joy-ride@latest/npm/index.js` when needed and call `JoyRide.mount(options)`.
|
|
26
26
|
|
|
27
|
-
Mark an initial destination with `data-jr-arrive-to` to have the car fade in and skid to that element automatically.
|
|
27
|
+
Mark an initial destination with `data-jr-arrive-to` to have the car fade in and skid to that element automatically. Add `data-jr-arrive-to-delay-ms="1000"` to start the entrance one second after mount. Without a marker, the embed skids into the viewport center from a random direction. Call `ride.arriveAt({ ...options, delayMs: 1000 })` for a later entrance.
|
|
28
28
|
|
|
29
29
|
For a quieter embed, start with `JoyRide.mount(JoyRide.options.presets.sfw({ workMode: { brandName: 'Drive' } }))`. Override only the settings you need; the preset supplies the rest.
|
|
30
30
|
|
package/npm/bookmarklet.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{t as asyncEmbedCode,n as bookmarkletUrl,r as fullEmbedCode,i as npmEmbedCode}from"./embed-chunks/bookmarklet-
|
|
1
|
+
export{t as asyncEmbedCode,n as bookmarkletUrl,r as fullEmbedCode,i as npmEmbedCode}from"./embed-chunks/bookmarklet-DlL5EMxG.js";
|