motionary 10.0.0 → 10.2.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/AGENTS.md +61 -0
- package/CHANGELOG.md +36 -0
- package/README.md +82 -0
- package/bin/create-motionary-plugin.mjs +124 -0
- package/dist/chunks/keyframes-W-474DMc.js +183 -0
- package/dist/chunks/keyframes-W-474DMc.js.map +1 -0
- package/dist/chunks/keyframes-ZheOkpt0.cjs +187 -0
- package/dist/chunks/keyframes-ZheOkpt0.cjs.map +1 -0
- package/dist/chunks/registry-BIEjKngP.js +69 -0
- package/dist/chunks/registry-BIEjKngP.js.map +1 -0
- package/dist/chunks/registry-eJgpFAzI.cjs +81 -0
- package/dist/chunks/registry-eJgpFAzI.cjs.map +1 -0
- package/dist/chunks/ticker-CM_56oVy.js +70 -0
- package/dist/chunks/ticker-CM_56oVy.js.map +1 -0
- package/dist/chunks/ticker-D4o6enH0.cjs +72 -0
- package/dist/chunks/ticker-D4o6enH0.cjs.map +1 -0
- package/dist/chunks/tween-CBuWYpI-.cjs +487 -0
- package/dist/chunks/tween-CBuWYpI-.cjs.map +1 -0
- package/dist/chunks/tween-CqX1JBuj.js +476 -0
- package/dist/chunks/tween-CqX1JBuj.js.map +1 -0
- package/dist/components/core.cjs +106 -0
- package/dist/components/core.cjs.map +1 -1
- package/dist/components/core.d.cts +44 -2
- package/dist/components/core.d.ts +44 -2
- package/dist/components/core.js +105 -1
- package/dist/components/core.js.map +1 -1
- package/dist/components/marketplace.cjs +104 -0
- package/dist/components/marketplace.cjs.map +1 -1
- package/dist/components/marketplace.d.cts +33 -2
- package/dist/components/marketplace.d.ts +33 -2
- package/dist/components/marketplace.js +101 -1
- package/dist/components/marketplace.js.map +1 -1
- package/dist/components/widgets.cjs +623 -199
- package/dist/components/widgets.cjs.map +1 -1
- package/dist/components/widgets.d.cts +186 -2
- package/dist/components/widgets.d.ts +186 -2
- package/dist/components/widgets.js +620 -201
- package/dist/components/widgets.js.map +1 -1
- package/dist/llms-full.txt +3115 -0
- package/dist/llms.txt +211 -0
- package/dist/manifest.json +7820 -0
- package/dist/manifest.schema.json +85 -0
- package/dist/runtime/format-css.cjs +185 -0
- package/dist/runtime/format-css.cjs.map +1 -0
- package/dist/runtime/format-css.d.cts +174 -0
- package/dist/runtime/format-css.d.ts +174 -0
- package/dist/runtime/format-css.iife.js +2 -0
- package/dist/runtime/format-css.iife.js.map +1 -0
- package/dist/runtime/format-css.js +177 -0
- package/dist/runtime/format-css.js.map +1 -0
- package/dist/runtime/format-motion.cjs +139 -0
- package/dist/runtime/format-motion.cjs.map +1 -0
- package/dist/runtime/format-motion.d.cts +208 -0
- package/dist/runtime/format-motion.d.ts +208 -0
- package/dist/runtime/format-motion.iife.js +2 -0
- package/dist/runtime/format-motion.iife.js.map +1 -0
- package/dist/runtime/format-motion.js +133 -0
- package/dist/runtime/format-motion.js.map +1 -0
- package/dist/runtime/format-svg.cjs +457 -0
- package/dist/runtime/format-svg.cjs.map +1 -0
- package/dist/runtime/format-svg.d.cts +214 -0
- package/dist/runtime/format-svg.d.ts +214 -0
- package/dist/runtime/format-svg.iife.js +2 -0
- package/dist/runtime/format-svg.iife.js.map +1 -0
- package/dist/runtime/format-svg.js +446 -0
- package/dist/runtime/format-svg.js.map +1 -0
- package/dist/runtime/scroll.cjs +301 -0
- package/dist/runtime/scroll.cjs.map +1 -0
- package/dist/runtime/scroll.d.cts +236 -0
- package/dist/runtime/scroll.d.ts +236 -0
- package/dist/runtime/scroll.iife.js +2 -0
- package/dist/runtime/scroll.iife.js.map +1 -0
- package/dist/runtime/scroll.js +292 -0
- package/dist/runtime/scroll.js.map +1 -0
- package/dist/runtime.cjs +79 -0
- package/dist/runtime.cjs.map +1 -0
- package/dist/runtime.d.cts +236 -0
- package/dist/runtime.d.ts +236 -0
- package/dist/runtime.iife.js +2 -0
- package/dist/runtime.iife.js.map +1 -0
- package/dist/runtime.js +55 -0
- package/dist/runtime.js.map +1 -0
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/docs/ROADMAP.md +69 -38
- package/docs/ai-prompt-guide.md +54 -0
- package/docs/components/README.md +253 -0
- package/docs/components/usa-accordion.md +38 -0
- package/docs/components/usa-acrylic.md +38 -0
- package/docs/components/usa-add-to-cart.md +40 -0
- package/docs/components/usa-ambient.md +32 -0
- package/docs/components/usa-anim-icon.md +34 -0
- package/docs/components/usa-audio.md +38 -0
- package/docs/components/usa-aurora.md +36 -0
- package/docs/components/usa-auto-animate.md +44 -0
- package/docs/components/usa-auto-skeleton.md +38 -0
- package/docs/components/usa-avatar-stack.md +38 -0
- package/docs/components/usa-back-to-top.md +32 -0
- package/docs/components/usa-badge-wall.md +39 -0
- package/docs/components/usa-badge.md +36 -0
- package/docs/components/usa-bar-chart.md +33 -0
- package/docs/components/usa-bg-generator.md +32 -0
- package/docs/components/usa-blobs.md +32 -0
- package/docs/components/usa-bottom-sheet.md +32 -0
- package/docs/components/usa-button.md +78 -0
- package/docs/components/usa-card-stack.md +40 -0
- package/docs/components/usa-card.md +94 -0
- package/docs/components/usa-carousel-3d.md +40 -0
- package/docs/components/usa-carousel.md +40 -0
- package/docs/components/usa-cart-drawer.md +33 -0
- package/docs/components/usa-chapter-nav.md +40 -0
- package/docs/components/usa-chat-composer.md +33 -0
- package/docs/components/usa-check.md +32 -0
- package/docs/components/usa-checkbox.md +32 -0
- package/docs/components/usa-click.md +36 -0
- package/docs/components/usa-clock-control.md +37 -0
- package/docs/components/usa-code-export.md +36 -0
- package/docs/components/usa-color-picker.md +32 -0
- package/docs/components/usa-command-palette.md +39 -0
- package/docs/components/usa-compare.md +38 -0
- package/docs/components/usa-countdown.md +32 -0
- package/docs/components/usa-counter.md +32 -0
- package/docs/components/usa-cube-gallery.md +40 -0
- package/docs/components/usa-cube.md +36 -0
- package/docs/components/usa-cursor.md +32 -0
- package/docs/components/usa-date-picker.md +32 -0
- package/docs/components/usa-depth.md +44 -0
- package/docs/components/usa-dialog.md +40 -0
- package/docs/components/usa-disclosure.md +38 -0
- package/docs/components/usa-distort.md +36 -0
- package/docs/components/usa-dock.md +40 -0
- package/docs/components/usa-dot-network.md +32 -0
- package/docs/components/usa-double-tap.md +36 -0
- package/docs/components/usa-draggable.md +38 -0
- package/docs/components/usa-draw.md +36 -0
- package/docs/components/usa-drawer.md +34 -0
- package/docs/components/usa-equalizer.md +33 -0
- package/docs/components/usa-fab.md +40 -0
- package/docs/components/usa-festival-banner.md +32 -0
- package/docs/components/usa-field.md +34 -0
- package/docs/components/usa-file-drop.md +35 -0
- package/docs/components/usa-fullpage.md +38 -0
- package/docs/components/usa-fx.md +851 -0
- package/docs/components/usa-gauge.md +32 -0
- package/docs/components/usa-gen-art.md +32 -0
- package/docs/components/usa-gesture-fx.md +36 -0
- package/docs/components/usa-gesture-sticker.md +36 -0
- package/docs/components/usa-glitch.md +32 -0
- package/docs/components/usa-globe.md +33 -0
- package/docs/components/usa-gradient-text.md +32 -0
- package/docs/components/usa-grain.md +36 -0
- package/docs/components/usa-grid-glow.md +36 -0
- package/docs/components/usa-gyro-card.md +38 -0
- package/docs/components/usa-handwriting.md +32 -0
- package/docs/components/usa-hero-video.md +38 -0
- package/docs/components/usa-hold.md +32 -0
- package/docs/components/usa-hud-panel.md +38 -0
- package/docs/components/usa-hydrate.md +42 -0
- package/docs/components/usa-icon-morph.md +34 -0
- package/docs/components/usa-install-button.md +32 -0
- package/docs/components/usa-kanban.md +46 -0
- package/docs/components/usa-keyframe-editor.md +37 -0
- package/docs/components/usa-kpi.md +32 -0
- package/docs/components/usa-leaderboard.md +41 -0
- package/docs/components/usa-like.md +32 -0
- package/docs/components/usa-liquid-nav.md +36 -0
- package/docs/components/usa-liquid.md +36 -0
- package/docs/components/usa-loading-bar.md +35 -0
- package/docs/components/usa-location-card.md +34 -0
- package/docs/components/usa-lottie-icon.md +34 -0
- package/docs/components/usa-lottie.md +32 -0
- package/docs/components/usa-lyrics.md +38 -0
- package/docs/components/usa-magnetic.md +32 -0
- package/docs/components/usa-marquee.md +38 -0
- package/docs/components/usa-mask-reveal.md +36 -0
- package/docs/components/usa-masonry-flow.md +42 -0
- package/docs/components/usa-masonry.md +38 -0
- package/docs/components/usa-menu-toggle.md +34 -0
- package/docs/components/usa-menu.md +44 -0
- package/docs/components/usa-message-list.md +39 -0
- package/docs/components/usa-milestones.md +40 -0
- package/docs/components/usa-modal.md +42 -0
- package/docs/components/usa-morph.md +34 -0
- package/docs/components/usa-motion-inspector.md +32 -0
- package/docs/components/usa-motion-prefs.md +32 -0
- package/docs/components/usa-motion-spec.md +32 -0
- package/docs/components/usa-motion-switch.md +34 -0
- package/docs/components/usa-motion-theme.md +40 -0
- package/docs/components/usa-motion.md +42 -0
- package/docs/components/usa-music-player.md +36 -0
- package/docs/components/usa-native-preview.md +36 -0
- package/docs/components/usa-nav-morph.md +40 -0
- package/docs/components/usa-navbar.md +36 -0
- package/docs/components/usa-notification-bell.md +37 -0
- package/docs/components/usa-odometer.md +34 -0
- package/docs/components/usa-organic-card.md +36 -0
- package/docs/components/usa-otp.md +33 -0
- package/docs/components/usa-overscroll.md +36 -0
- package/docs/components/usa-pack.md +111 -0
- package/docs/components/usa-pagination.md +32 -0
- package/docs/components/usa-panorama.md +32 -0
- package/docs/components/usa-particles.md +32 -0
- package/docs/components/usa-pause-all.md +32 -0
- package/docs/components/usa-perf-monitor.md +32 -0
- package/docs/components/usa-pinch-zoom.md +36 -0
- package/docs/components/usa-player.md +38 -0
- package/docs/components/usa-plugin-card.md +61 -0
- package/docs/components/usa-plugin-store.md +36 -0
- package/docs/components/usa-popover.md +38 -0
- package/docs/components/usa-post-fx.md +36 -0
- package/docs/components/usa-presence.md +36 -0
- package/docs/components/usa-press.md +32 -0
- package/docs/components/usa-prize-wheel.md +32 -0
- package/docs/components/usa-product-gallery.md +40 -0
- package/docs/components/usa-progress-ring.md +38 -0
- package/docs/components/usa-progress.md +34 -0
- package/docs/components/usa-prop-panel.md +34 -0
- package/docs/components/usa-pull-cord.md +32 -0
- package/docs/components/usa-pull-refresh.md +37 -0
- package/docs/components/usa-radar.md +32 -0
- package/docs/components/usa-reactions.md +32 -0
- package/docs/components/usa-red-envelope.md +32 -0
- package/docs/components/usa-retro-button.md +34 -0
- package/docs/components/usa-reveal.md +36 -0
- package/docs/components/usa-ripple.md +32 -0
- package/docs/components/usa-scene.md +38 -0
- package/docs/components/usa-scramble.md +32 -0
- package/docs/components/usa-scroll-highlight.md +34 -0
- package/docs/components/usa-scroll-progress.md +36 -0
- package/docs/components/usa-scroll-scene.md +66 -0
- package/docs/components/usa-scrolly.md +40 -0
- package/docs/components/usa-segmented.md +40 -0
- package/docs/components/usa-shader.md +74 -0
- package/docs/components/usa-sheet.md +42 -0
- package/docs/components/usa-shimmer-text.md +32 -0
- package/docs/components/usa-shortcut.md +34 -0
- package/docs/components/usa-skeleton-reveal.md +42 -0
- package/docs/components/usa-skeleton.md +36 -0
- package/docs/components/usa-sketch-chart.md +32 -0
- package/docs/components/usa-slider.md +32 -0
- package/docs/components/usa-sparkline.md +32 -0
- package/docs/components/usa-spatial-card.md +40 -0
- package/docs/components/usa-spinner.md +34 -0
- package/docs/components/usa-splash.md +36 -0
- package/docs/components/usa-split-text.md +32 -0
- package/docs/components/usa-spotlight.md +40 -0
- package/docs/components/usa-spring.md +42 -0
- package/docs/components/usa-stagger.md +40 -0
- package/docs/components/usa-star-rating.md +34 -0
- package/docs/components/usa-stepper.md +42 -0
- package/docs/components/usa-sticky-stack.md +40 -0
- package/docs/components/usa-sticky-wall.md +40 -0
- package/docs/components/usa-stories.md +38 -0
- package/docs/components/usa-story.md +80 -0
- package/docs/components/usa-suggestion-chips.md +32 -0
- package/docs/components/usa-swipe-deck.md +40 -0
- package/docs/components/usa-swipeable.md +36 -0
- package/docs/components/usa-switch.md +32 -0
- package/docs/components/usa-tab-bar.md +46 -0
- package/docs/components/usa-tabs.md +40 -0
- package/docs/components/usa-terminal.md +38 -0
- package/docs/components/usa-text-rotate.md +32 -0
- package/docs/components/usa-theme-surface.md +36 -0
- package/docs/components/usa-theme-switcher.md +32 -0
- package/docs/components/usa-tilt.md +36 -0
- package/docs/components/usa-timeline.md +40 -0
- package/docs/components/usa-tip.md +44 -0
- package/docs/components/usa-toast-stack.md +36 -0
- package/docs/components/usa-toaster.md +36 -0
- package/docs/components/usa-typewriter.md +32 -0
- package/docs/components/usa-upload-progress.md +33 -0
- package/docs/components/usa-video-card.md +40 -0
- package/docs/components/usa-view-switch.md +38 -0
- package/docs/components/usa-voice-button.md +33 -0
- package/docs/components/usa-volume-knob.md +32 -0
- package/docs/components/usa-water-ripple.md +36 -0
- package/docs/components/usa-wave-text.md +32 -0
- package/docs/components/usa-weather-card.md +32 -0
- package/docs/components/usa-worker-canvas.md +32 -0
- package/docs/components/usa-xp-bar.md +33 -0
- package/docs/components.md +105 -0
- package/docs/runtime/core.md +55 -0
- package/docs/runtime/format-css.md +59 -0
- package/docs/runtime/format-motion.md +56 -0
- package/docs/runtime/format-svg.md +62 -0
- package/docs/runtime/scroll.md +61 -0
- package/package.json +71 -7
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# `<usa-worker-canvas>` — Worker canvas
|
|
2
|
+
|
|
3
|
+
> Generated from the source and the gallery catalog by `scripts/gen-component-docs.mjs` (same data as [components.json](https://harrisoncn.github.io/Motionary/components.json) and [llms-full.txt](https://harrisoncn.github.io/Motionary/llms-full.txt)).
|
|
4
|
+
|
|
5
|
+
9.6: a canvas animation rendered in a Web Worker on an OffscreenCanvas — the main thread stays free for input — with a main-thread fallback; particles, orbits, starfield or your own draw program.
|
|
6
|
+
|
|
7
|
+
- **Category:** ui · **since** 9.6
|
|
8
|
+
- **Import:** `import { defineWorkerCanvas } from 'motionary/components/widgets'` then `defineWorkerCanvas();`
|
|
9
|
+
- **CDN:** `<script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>`
|
|
10
|
+
- **Attributes:** `scene`, `label`
|
|
11
|
+
- **Events:** `usa:backend`
|
|
12
|
+
- **Slots:** —
|
|
13
|
+
- **Methods:** —
|
|
14
|
+
- **Source:** [src/components/widgets/worker-canvas.ts](../../src/components/widgets/worker-canvas.ts)
|
|
15
|
+
|
|
16
|
+
## Minimal example
|
|
17
|
+
|
|
18
|
+
```html
|
|
19
|
+
<usa-worker-canvas scene="starfield" style="height:240px"></usa-worker-canvas>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## ES module
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
import { defineWorkerCanvas } from 'motionary/components/widgets';
|
|
26
|
+
|
|
27
|
+
defineWorkerCanvas(); // registers <usa-worker-canvas>
|
|
28
|
+
|
|
29
|
+
/* then use it in your HTML:
|
|
30
|
+
<usa-worker-canvas scene="starfield" style="height:240px"></usa-worker-canvas>
|
|
31
|
+
*/
|
|
32
|
+
```
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# `<usa-xp-bar>` — XP bar
|
|
2
|
+
|
|
3
|
+
> Generated from the source and the gallery catalog by `scripts/gen-component-docs.mjs` (same data as [components.json](https://harrisoncn.github.io/Motionary/components.json) and [llms-full.txt](https://harrisoncn.github.io/Motionary/llms-full.txt)).
|
|
4
|
+
|
|
5
|
+
7.5: an experience bar — add(n) fills it smoothly; overflowing fills to the end, the level badge pops and the bar restarts with the remainder (several levels if needed).
|
|
6
|
+
|
|
7
|
+
- **Category:** ui · **since** 7.5
|
|
8
|
+
- **Import:** `import { defineXpBar } from 'motionary/components/widgets'` then `defineXpBar();`
|
|
9
|
+
- **CDN:** `<script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>`
|
|
10
|
+
- **Attributes:** `level`, `xp`, `per`
|
|
11
|
+
- **Events:** `usa:levelup`, `usa:xp`
|
|
12
|
+
- **Slots:** —
|
|
13
|
+
- **Methods:** `add()`
|
|
14
|
+
- **Source:** [src/components/widgets/xp-bar.ts](../../src/components/widgets/xp-bar.ts)
|
|
15
|
+
|
|
16
|
+
## Minimal example
|
|
17
|
+
|
|
18
|
+
```html
|
|
19
|
+
<usa-xp-bar level="3" xp="40" per="100"></usa-xp-bar>
|
|
20
|
+
<script>bar.add(75); // → level 4, 15 XP</script>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## ES module
|
|
24
|
+
|
|
25
|
+
```js
|
|
26
|
+
import { defineXpBar } from 'motionary/components/widgets';
|
|
27
|
+
|
|
28
|
+
defineXpBar(); // registers <usa-xp-bar>
|
|
29
|
+
|
|
30
|
+
/* then use it in your HTML:
|
|
31
|
+
<usa-xp-bar level="3" xp="40" per="100"></usa-xp-bar>
|
|
32
|
+
*/
|
|
33
|
+
```
|
package/docs/components.md
CHANGED
|
@@ -1321,6 +1321,111 @@ motion.bind(button, 'vhs-glitch', { trigger: 'click' });
|
|
|
1321
1321
|
```
|
|
1322
1322
|
- Zero dependencies, ≈ 2 KB gzip; every effect pack is a plugin; WebGPU is the default GPU backend. `registerEffectPacks()` is removed → `registerAllPlugins()` (`npx usa-codemod-10 --write src`). See docs/core.md and docs/upgrading-10.md.
|
|
1323
1323
|
|
|
1324
|
+
### v10.1 Runtime (`motionary/runtime`) + AI manifest: `<usa-plugin-card>`, `<usa-install-button>` (`components/widgets`)
|
|
1325
|
+
|
|
1326
|
+
`motionary/runtime` is Motionary's own zero-dependency animation runtime (ticker, tween + timeline, easing, module registry) with one tree-shakable module per feature / format — see [docs/runtime/](runtime/). Components that need a module carry a **Requires** badge and list their prerequisites below.
|
|
1327
|
+
|
|
1328
|
+
```html
|
|
1329
|
+
<usa-plugin-card name="retro" title="Retro" version="1.2.0" author="Motionary" engine="^10.0.0" downloads="12400">
|
|
1330
|
+
<p>Pixel, CRT, VHS and Y2K effects.</p>
|
|
1331
|
+
</usa-plugin-card>
|
|
1332
|
+
<usa-install-button package="motionary" managers="npm pnpm yarn bun cdn" cdn="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></usa-install-button>
|
|
1333
|
+
```
|
|
1334
|
+
|
|
1335
|
+
| Element | Attributes | Methods / events |
|
|
1336
|
+
|---|---|---|
|
|
1337
|
+
| `<usa-plugin-card>` (Requires: motionary/runtime) | `name`, `title`, `version`, `author`, `engine` (semver), `downloads`, `integrity`, `src` | `toggle(open?)`, `verify()`, `compat()`; `usa:toggle`, `usa:verified`, `usa:runtime-missing` |
|
|
1338
|
+
| `<usa-install-button>` | `package`, `managers`, `cdn`, `dev`, `manager` | `command(manager)`, `copy()`; `usa:copy` |
|
|
1339
|
+
|
|
1340
|
+
AI manifest: `motionary/manifest.json` (Pages: `/components.json`, `/llms.txt`, `/llms-full.txt`).
|
|
1341
|
+
|
|
1342
|
+
<!-- prereqs:start -->
|
|
1343
|
+
## Prerequisites of runtime-powered components
|
|
1344
|
+
|
|
1345
|
+
Generated from `showcase/catalog/prereqs.js`. Runtime modules: see [docs/runtime/](runtime/).
|
|
1346
|
+
|
|
1347
|
+
### `<usa-plugin-card>` — Requires: motionary/runtime
|
|
1348
|
+
|
|
1349
|
+
- **Install:** `npm i motionary`
|
|
1350
|
+
- **Import order & registration:** Import motionary/runtime and call use() once at start-up, before any runtime-powered component mounts. CDN: the IIFE registers itself (window.MotionaryRuntime).
|
|
1351
|
+
|
|
1352
|
+
```js
|
|
1353
|
+
import { use } from 'motionary/runtime';
|
|
1354
|
+
import { definePluginCard } from 'motionary/components/widgets';
|
|
1355
|
+
|
|
1356
|
+
use();
|
|
1357
|
+
definePluginCard(); // registers <usa-plugin-card> — after the prerequisites
|
|
1358
|
+
```
|
|
1359
|
+
|
|
1360
|
+
- **CDN:**
|
|
1361
|
+
|
|
1362
|
+
```html
|
|
1363
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
|
|
1364
|
+
<!-- then the component bundles -->
|
|
1365
|
+
<script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>
|
|
1366
|
+
<script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>
|
|
1367
|
+
```
|
|
1368
|
+
|
|
1369
|
+
- **Minimal example:**
|
|
1370
|
+
|
|
1371
|
+
```html
|
|
1372
|
+
<usa-plugin-card name="retro" title="Retro" version="1.2.0" author="Motionary" engine="^10.0.0" downloads="12400">
|
|
1373
|
+
<p>Pixel, CRT, VHS and Y2K effects.</p>
|
|
1374
|
+
</usa-plugin-card>
|
|
1375
|
+
```
|
|
1376
|
+
|
|
1377
|
+
### `<usa-scroll-scene>` — Requires: motionary/runtime/scroll
|
|
1378
|
+
|
|
1379
|
+
- **Install:** `npm i motionary`
|
|
1380
|
+
- **Import order & registration:** Register the core first, then the module: use(scroll) also registers the core. CDN: load runtime.iife.js, then runtime/scroll.iife.js (it registers itself).
|
|
1381
|
+
|
|
1382
|
+
```js
|
|
1383
|
+
import { use } from 'motionary/runtime';
|
|
1384
|
+
import { scroll } from 'motionary/runtime/scroll';
|
|
1385
|
+
import { defineScrollScene } from 'motionary/components/widgets';
|
|
1386
|
+
|
|
1387
|
+
use(scroll);
|
|
1388
|
+
defineScrollScene(); // registers <usa-scroll-scene> — after the prerequisites
|
|
1389
|
+
```
|
|
1390
|
+
|
|
1391
|
+
- **CDN:**
|
|
1392
|
+
|
|
1393
|
+
```html
|
|
1394
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
|
|
1395
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/scroll.iife.js"></script>
|
|
1396
|
+
<!-- then the component bundles -->
|
|
1397
|
+
<script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>
|
|
1398
|
+
<script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>
|
|
1399
|
+
```
|
|
1400
|
+
|
|
1401
|
+
- **Minimal example:**
|
|
1402
|
+
|
|
1403
|
+
```html
|
|
1404
|
+
<usa-scroll-scene start="top 80%" end="bottom 20%" scrub="120" stagger="120">
|
|
1405
|
+
<h2 data-scrub="x: -80 -> 0; opacity: 0 -> 1">Scroll</h2>
|
|
1406
|
+
<p data-scrub="y: 40 -> 0; opacity: 0 -> 1">and it follows.</p>
|
|
1407
|
+
</usa-scroll-scene>
|
|
1408
|
+
```
|
|
1409
|
+
|
|
1410
|
+
<!-- prereqs:end -->
|
|
1411
|
+
|
|
1412
|
+
### v10.2 Scroll scenes (`motionary/runtime/scroll`) + SVG loader + `data-motion` in core: `<usa-scroll-scene>`, `<usa-motion-inspector>` (`components/widgets`)
|
|
1413
|
+
|
|
1414
|
+
```html
|
|
1415
|
+
<usa-scroll-scene start="top 80%" end="bottom 20%" scrub="120" stagger="120">
|
|
1416
|
+
<h2 data-scrub="x: -80 -> 0; opacity: 0 -> 1">Scroll</h2>
|
|
1417
|
+
<p data-scrub="y: 40 -> 0; opacity: 0 -> 1">and it follows.</p>
|
|
1418
|
+
</usa-scroll-scene>
|
|
1419
|
+
<usa-motion-inspector scope="#app"></usa-motion-inspector>
|
|
1420
|
+
```
|
|
1421
|
+
|
|
1422
|
+
| Element | Attributes | Methods / events |
|
|
1423
|
+
|---|---|---|
|
|
1424
|
+
| `<usa-scroll-scene>` (Requires: motionary/runtime/scroll) | `start`, `end`, `scrub` (`true` or ms), `pin`, `markers`, `stagger`, `toggle-class`, `preview`; children `data-scrub="prop: from -> to; …"` | `progress`, `refresh()`, `timeline()`; `usa:progress`, `usa:enter`, `usa:leave`, `usa:runtime-missing` |
|
|
1425
|
+
| `<usa-motion-inspector>` | `scope`, `interval` | `refresh()`, `pauseAll()`, `playAll()`, `setRate(rate)`, `animations()`; `usa:change` |
|
|
1426
|
+
|
|
1427
|
+
Declarative motion with just the core: `applyMotionAttributes(createMotion())` + `data-motion="enter: fade-up 600ms"`.
|
|
1428
|
+
|
|
1324
1429
|
## Frameworks
|
|
1325
1430
|
|
|
1326
1431
|
Custom elements work in every framework. Register once (e.g. in your entry file), then use the tags.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# motionary/runtime — Runtime core
|
|
2
|
+
|
|
3
|
+
> Generated from `showcase/catalog/prereqs.js` by `scripts/gen-runtime-docs.mjs` — edit the data, not this page.
|
|
4
|
+
|
|
5
|
+
Shared ticker (one rAF loop), tween + timeline engine with easing, module registry with clear errors.
|
|
6
|
+
|
|
7
|
+
Part of Motionary's own zero-dependency runtime. Size budget: **5.5 KB gzip** (enforced in CI).
|
|
8
|
+
|
|
9
|
+
## Prerequisites
|
|
10
|
+
|
|
11
|
+
1. **Install:** `npm i motionary`
|
|
12
|
+
2. **Import path:** `motionary/runtime`
|
|
13
|
+
3. **CDN:**
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
ESM from a CDN: `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.js`
|
|
20
|
+
|
|
21
|
+
4. **Import order & registration:** Import motionary/runtime and call use() once at start-up, before any runtime-powered component mounts. CDN: the IIFE registers itself (window.MotionaryRuntime).
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
import { use } from 'motionary/runtime';
|
|
25
|
+
use();
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Example
|
|
29
|
+
|
|
30
|
+
```js
|
|
31
|
+
import { use, tween, timeline } from 'motionary/runtime';
|
|
32
|
+
use();
|
|
33
|
+
tween('.box', { to: { x: 120, opacity: 1 }, duration: 500, ease: 'back-out' });
|
|
34
|
+
timeline().to('.a', { to: { y: -20 } }).to('.b', { to: { scale: 1.2 } }, '<+=100');
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Exports
|
|
38
|
+
|
|
39
|
+
`use` · `requireModule` · `hasModule` · `getTicker` · `tween` · `timeline` · `Tween` · `Timeline` · `EASES` · `parseEase` · `cubicBezier` · `steps` · `RuntimeModuleError`
|
|
40
|
+
|
|
41
|
+
## Compatibility
|
|
42
|
+
|
|
43
|
+
| Feature | Supported | Notes |
|
|
44
|
+
|---|---|---|
|
|
45
|
+
| Plain objects (numeric props) | ✅ yes | any numeric property |
|
|
46
|
+
| Elements: CSS lengths, %, unitless, colours, custom properties | ✅ yes | hex, rgb(), rgba(), transparent |
|
|
47
|
+
| Transform shorthands x y rotate scale scaleX scaleY skewX skewY | ✅ yes | composed in that order |
|
|
48
|
+
| Timeline positions (<, >, +=, -=, labels) | ✅ yes | |
|
|
49
|
+
| repeat / yoyo / reverse / seek / timeScale | ✅ yes | |
|
|
50
|
+
| SSR / Node import | ✅ yes | no window access at import |
|
|
51
|
+
| Web Workers | ✅ yes | ticker falls back to setTimeout without rAF |
|
|
52
|
+
|
|
53
|
+
## Components that need it
|
|
54
|
+
|
|
55
|
+
- `<usa-plugin-card>` — Plugin detail card
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# motionary/runtime/format-css — CSS @keyframes & WAAPI keyframes loader
|
|
2
|
+
|
|
3
|
+
> Generated from `showcase/catalog/prereqs.js` by `scripts/gen-runtime-docs.mjs` — edit the data, not this page.
|
|
4
|
+
|
|
5
|
+
Import CSS @keyframes text or live CSSKeyframesRule objects and Web Animations API keyframes (array or property-indexed) into a runtime timeline.
|
|
6
|
+
|
|
7
|
+
Part of Motionary's own zero-dependency runtime. Size budget: **2.5 KB gzip** (enforced in CI).
|
|
8
|
+
|
|
9
|
+
## Prerequisites
|
|
10
|
+
|
|
11
|
+
1. **Install:** `npm i motionary`
|
|
12
|
+
2. **Import path:** `motionary/runtime/format-css`
|
|
13
|
+
3. **CDN:**
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
|
|
17
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-css.iife.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
ESM from a CDN: `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-css.js`
|
|
21
|
+
|
|
22
|
+
4. **Import order & registration:** Register the core first, then the module: use(formatCss) also registers the core. CDN: load runtime.iife.js, then runtime/format-css.iife.js (it registers itself).
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
import { use } from 'motionary/runtime';
|
|
26
|
+
import { formatCss } from 'motionary/runtime/format-css';
|
|
27
|
+
use(formatCss);
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Example
|
|
31
|
+
|
|
32
|
+
```js
|
|
33
|
+
import { use } from 'motionary/runtime';
|
|
34
|
+
import { formatCss, parseKeyframes, playKeyframes } from 'motionary/runtime/format-css';
|
|
35
|
+
use(formatCss);
|
|
36
|
+
const [pulse] = parseKeyframes('@keyframes pulse { from { opacity: .4 } 50% { opacity: 1; transform: scale(1.1) } to { opacity: .4 } }');
|
|
37
|
+
playKeyframes(document.querySelector('.dot'), pulse, { duration: 1200, repeat: -1 });
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Exports
|
|
41
|
+
|
|
42
|
+
`formatCss` · `parseKeyframes` · `fromCssRule` · `fromWaapi` · `toWaapi` · `playKeyframes`
|
|
43
|
+
|
|
44
|
+
## Compatibility
|
|
45
|
+
|
|
46
|
+
| Feature | Supported | Notes |
|
|
47
|
+
|---|---|---|
|
|
48
|
+
| @keyframes from / to / percentages / selector lists | ✅ yes | duplicate offsets merged, later wins |
|
|
49
|
+
| -webkit- / -moz- prefixed @keyframes | ✅ yes | |
|
|
50
|
+
| animation-timing-function per keyframe | ✅ yes | names, cubic-bezier(), steps() |
|
|
51
|
+
| transform lists (translate / rotate / scale / skew) | ✅ yes | tweened as shorthands |
|
|
52
|
+
| matrix() / 3D transforms | ◐ partial | switch discretely at the segment midpoint |
|
|
53
|
+
| WAAPI array + property-indexed keyframes, offsets, easing | ✅ yes | offsets distributed like the WAAPI |
|
|
54
|
+
| composite: add / accumulate | ✕ no | ignored (replace) |
|
|
55
|
+
| @property typed interpolation | ✕ no | non-numeric values switch discretely |
|
|
56
|
+
|
|
57
|
+
## Components that need it
|
|
58
|
+
|
|
59
|
+
_None yet._
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# motionary/runtime/format-motion — Motion / Framer keyframe JSON loader
|
|
2
|
+
|
|
3
|
+
> Generated from `showcase/catalog/prereqs.js` by `scripts/gen-runtime-docs.mjs` — edit the data, not this page.
|
|
4
|
+
|
|
5
|
+
Play Motion / Framer-style { initial, animate, transition } JSON (arrays as keyframes, times, repeatType, springs) with the runtime.
|
|
6
|
+
|
|
7
|
+
Part of Motionary's own zero-dependency runtime. Size budget: **2.5 KB gzip** (enforced in CI).
|
|
8
|
+
|
|
9
|
+
## Prerequisites
|
|
10
|
+
|
|
11
|
+
1. **Install:** `npm i motionary`
|
|
12
|
+
2. **Import path:** `motionary/runtime/format-motion`
|
|
13
|
+
3. **CDN:**
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
|
|
17
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-motion.iife.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
ESM from a CDN: `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-motion.js`
|
|
21
|
+
|
|
22
|
+
4. **Import order & registration:** Register the core first, then the module: use(formatMotion) also registers the core. CDN: load runtime.iife.js, then runtime/format-motion.iife.js (it registers itself).
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
import { use } from 'motionary/runtime';
|
|
26
|
+
import { formatMotion } from 'motionary/runtime/format-motion';
|
|
27
|
+
use(formatMotion);
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Example
|
|
31
|
+
|
|
32
|
+
```js
|
|
33
|
+
import { use } from 'motionary/runtime';
|
|
34
|
+
import { formatMotion, playMotion } from 'motionary/runtime/format-motion';
|
|
35
|
+
use(formatMotion);
|
|
36
|
+
playMotion(document.querySelector('.card'), { initial: { opacity: 0, y: 40 }, animate: { opacity: 1, y: 0 }, transition: { type: 'spring', stiffness: 180, damping: 14 } });
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Exports
|
|
40
|
+
|
|
41
|
+
`formatMotion` · `fromMotion` · `playMotion` · `springEase` · `motionEase`
|
|
42
|
+
|
|
43
|
+
## Compatibility
|
|
44
|
+
|
|
45
|
+
| Feature | Supported | Notes |
|
|
46
|
+
|---|---|---|
|
|
47
|
+
| initial / animate, arrays as keyframes, times | ✅ yes | |
|
|
48
|
+
| transition duration / delay (s), ease names + cubic arrays | ✅ yes | easeIn/Out/InOut, circ*, back*, anticipate≈back-in-out |
|
|
49
|
+
| repeat (Infinity), repeatType loop / reverse / mirror | ✅ yes | mirror = reverse |
|
|
50
|
+
| per-property transitions | ✅ yes | |
|
|
51
|
+
| type: "spring" (stiffness, damping, mass, bounce + duration) | ✅ yes | simulated into an easing curve |
|
|
52
|
+
| variants, gestures (whileHover…), layout animations | ✕ no | out of scope |
|
|
53
|
+
|
|
54
|
+
## Components that need it
|
|
55
|
+
|
|
56
|
+
_None yet._
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# motionary/runtime/format-svg — SVG loader: SMIL playback + path morphing
|
|
2
|
+
|
|
3
|
+
> Generated from `showcase/catalog/prereqs.js` by `scripts/gen-runtime-docs.mjs` — edit the data, not this page.
|
|
4
|
+
|
|
5
|
+
Replay SVG SMIL animations (animate, set, animateTransform, animateMotion) on the runtime timeline, morph between any two paths, and measure paths without the DOM.
|
|
6
|
+
|
|
7
|
+
Part of Motionary's own zero-dependency runtime. Size budget: **5.0 KB gzip** (enforced in CI).
|
|
8
|
+
|
|
9
|
+
## Prerequisites
|
|
10
|
+
|
|
11
|
+
1. **Install:** `npm i motionary`
|
|
12
|
+
2. **Import path:** `motionary/runtime/format-svg`
|
|
13
|
+
3. **CDN:**
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
|
|
17
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-svg.iife.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
ESM from a CDN: `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-svg.js`
|
|
21
|
+
|
|
22
|
+
4. **Import order & registration:** Register the core first, then the module: use(formatSvg) also registers the core. CDN: load runtime.iife.js, then runtime/format-svg.iife.js (it registers itself).
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
import { use } from 'motionary/runtime';
|
|
26
|
+
import { formatSvg } from 'motionary/runtime/format-svg';
|
|
27
|
+
use(formatSvg);
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Example
|
|
31
|
+
|
|
32
|
+
```js
|
|
33
|
+
import { use } from 'motionary/runtime';
|
|
34
|
+
import { formatSvg, playSmil, morphPath } from 'motionary/runtime/format-svg';
|
|
35
|
+
use(formatSvg);
|
|
36
|
+
const player = playSmil(document.querySelector('svg'));
|
|
37
|
+
player.timeline.timeScale = 0.5; // scrub / slow down / reverse like any runtime timeline
|
|
38
|
+
const f = morphPath('M0 0 L100 0 L50 80 Z', 'M50 0 A40 40 0 1 1 49.9 0 Z');
|
|
39
|
+
path.setAttribute('d', f(0.5));
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Exports
|
|
43
|
+
|
|
44
|
+
`formatSvg` · `playSmil` · `readSmil` · `morphPath` · `parsePath` · `flattenPath` · `pathLength` · `pointAtLength` · `samplePath` · `smilTime`
|
|
45
|
+
|
|
46
|
+
## Compatibility
|
|
47
|
+
|
|
48
|
+
| Feature | Supported | Notes |
|
|
49
|
+
|---|---|---|
|
|
50
|
+
| <animate> from / to / by / values, keyTimes, calcMode linear / discrete / spline + keySplines | ✅ yes | |
|
|
51
|
+
| <set> | ✅ yes | |
|
|
52
|
+
| <animateTransform> translate / scale / rotate / skewX / skewY | ✅ yes | |
|
|
53
|
+
| <animateMotion> path / <mpath>, rotate auto / auto-reverse / angle | ✅ yes | paced along the path |
|
|
54
|
+
| dur, numeric begin offsets, repeatCount (incl. indefinite), repeatDur, fill freeze | ✅ yes | |
|
|
55
|
+
| path morphing between any two paths (d attribute or morphPath()) | ✅ yes | resampled to N points, start points aligned |
|
|
56
|
+
| path parsing incl. relative commands, S/T reflections, arcs | ✅ yes | no DOM needed (SSR / workers) |
|
|
57
|
+
| event / syncbase begin (click, a.end), accumulate, additive="sum" | ✕ no | documented gap |
|
|
58
|
+
| CSS-animated SVG | ✅ yes | via motionary/runtime/format-css |
|
|
59
|
+
|
|
60
|
+
## Components that need it
|
|
61
|
+
|
|
62
|
+
_None yet._
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# motionary/runtime/scroll — Scroll scenes
|
|
2
|
+
|
|
3
|
+
> Generated from `showcase/catalog/prereqs.js` by `scripts/gen-runtime-docs.mjs` — edit the data, not this page.
|
|
4
|
+
|
|
5
|
+
Scroll-linked scenes: start / end rules, scrub (direct or smoothed), pin, markers, enter / leave callbacks and per-edge actions for a runtime tween or timeline.
|
|
6
|
+
|
|
7
|
+
Part of Motionary's own zero-dependency runtime. Size budget: **4.5 KB gzip** (enforced in CI).
|
|
8
|
+
|
|
9
|
+
## Prerequisites
|
|
10
|
+
|
|
11
|
+
1. **Install:** `npm i motionary`
|
|
12
|
+
2. **Import path:** `motionary/runtime/scroll`
|
|
13
|
+
3. **CDN:**
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
|
|
17
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/scroll.iife.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
ESM from a CDN: `https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/scroll.js`
|
|
21
|
+
|
|
22
|
+
4. **Import order & registration:** Register the core first, then the module: use(scroll) also registers the core. CDN: load runtime.iife.js, then runtime/scroll.iife.js (it registers itself).
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
import { use } from 'motionary/runtime';
|
|
26
|
+
import { scroll } from 'motionary/runtime/scroll';
|
|
27
|
+
use(scroll);
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Example
|
|
31
|
+
|
|
32
|
+
```js
|
|
33
|
+
import { use, timeline } from 'motionary/runtime';
|
|
34
|
+
import { scroll, scrollScene } from 'motionary/runtime/scroll';
|
|
35
|
+
use(scroll);
|
|
36
|
+
const tl = timeline({ paused: true }).to('.card', { to: { x: 200, rotate: 8 } });
|
|
37
|
+
scrollScene({ trigger: '.section', start: 'top 80%', end: 'bottom 20%', scrub: 120, pin: true, markers: true, animation: tl });
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Exports
|
|
41
|
+
|
|
42
|
+
`scroll` · `scrollScene` · `ScrollScene` · `refreshScenes` · `killScenes` · `allScenes` · `parseEdge` · `resolveRule`
|
|
43
|
+
|
|
44
|
+
## Compatibility
|
|
45
|
+
|
|
46
|
+
| Feature | Supported | Notes |
|
|
47
|
+
|---|---|---|
|
|
48
|
+
| start / end rules ("top 80%", "center center", "top top+=80", end "+=600") | ✅ yes | keywords, %, px, +=/-= offsets |
|
|
49
|
+
| scrub: direct (true) or smoothed (ms) | ✅ yes | drives any runtime tween / timeline |
|
|
50
|
+
| pin (fixed in the window, transform inside a scroll container) | ✅ yes | spacer keeps the layout |
|
|
51
|
+
| markers | ✅ yes | start / end + viewport lines |
|
|
52
|
+
| onEnter / onLeave / onEnterBack / onLeaveBack / onUpdate / onToggle | ✅ yes | |
|
|
53
|
+
| actions per edge (play pause resume reverse restart reset complete none) | ✅ yes | default "play none none reverse" |
|
|
54
|
+
| horizontal scenes, custom scroll containers | ✅ yes | |
|
|
55
|
+
| snap, nested pins, pinned scroll containers | ✕ no | planned with the smooth module (10.4) |
|
|
56
|
+
| SSR | ✅ yes | safe to import; scenes need a window |
|
|
57
|
+
| Web Workers | ✕ no | needs the DOM |
|
|
58
|
+
|
|
59
|
+
## Components that need it
|
|
60
|
+
|
|
61
|
+
- `<usa-scroll-scene>` — Scroll scene
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "motionary",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.2.0",
|
|
4
4
|
"description": "Motionary (formerly use-scroll-animate): dependency-free scroll animations + 94 animated Web Components — 214 scroll-reveal presets, card/click/button morphs, physics, page transitions, generative & sound-reactive backgrounds, cursor/gesture effects, themes, micro-interactions, <usa-player>, WebGL. React, Vue, Svelte, Solid, Angular or plain HTML.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -1208,6 +1208,58 @@
|
|
|
1208
1208
|
"default": "./dist/components/lite.cjs"
|
|
1209
1209
|
}
|
|
1210
1210
|
},
|
|
1211
|
+
"./runtime": {
|
|
1212
|
+
"import": {
|
|
1213
|
+
"types": "./dist/runtime.d.ts",
|
|
1214
|
+
"default": "./dist/runtime.js"
|
|
1215
|
+
},
|
|
1216
|
+
"require": {
|
|
1217
|
+
"types": "./dist/runtime.d.cts",
|
|
1218
|
+
"default": "./dist/runtime.cjs"
|
|
1219
|
+
}
|
|
1220
|
+
},
|
|
1221
|
+
"./runtime/format-css": {
|
|
1222
|
+
"import": {
|
|
1223
|
+
"types": "./dist/runtime/format-css.d.ts",
|
|
1224
|
+
"default": "./dist/runtime/format-css.js"
|
|
1225
|
+
},
|
|
1226
|
+
"require": {
|
|
1227
|
+
"types": "./dist/runtime/format-css.d.cts",
|
|
1228
|
+
"default": "./dist/runtime/format-css.cjs"
|
|
1229
|
+
}
|
|
1230
|
+
},
|
|
1231
|
+
"./runtime/format-motion": {
|
|
1232
|
+
"import": {
|
|
1233
|
+
"types": "./dist/runtime/format-motion.d.ts",
|
|
1234
|
+
"default": "./dist/runtime/format-motion.js"
|
|
1235
|
+
},
|
|
1236
|
+
"require": {
|
|
1237
|
+
"types": "./dist/runtime/format-motion.d.cts",
|
|
1238
|
+
"default": "./dist/runtime/format-motion.cjs"
|
|
1239
|
+
}
|
|
1240
|
+
},
|
|
1241
|
+
"./runtime/scroll": {
|
|
1242
|
+
"import": {
|
|
1243
|
+
"types": "./dist/runtime/scroll.d.ts",
|
|
1244
|
+
"default": "./dist/runtime/scroll.js"
|
|
1245
|
+
},
|
|
1246
|
+
"require": {
|
|
1247
|
+
"types": "./dist/runtime/scroll.d.cts",
|
|
1248
|
+
"default": "./dist/runtime/scroll.cjs"
|
|
1249
|
+
}
|
|
1250
|
+
},
|
|
1251
|
+
"./runtime/format-svg": {
|
|
1252
|
+
"import": {
|
|
1253
|
+
"types": "./dist/runtime/format-svg.d.ts",
|
|
1254
|
+
"default": "./dist/runtime/format-svg.js"
|
|
1255
|
+
},
|
|
1256
|
+
"require": {
|
|
1257
|
+
"types": "./dist/runtime/format-svg.d.cts",
|
|
1258
|
+
"default": "./dist/runtime/format-svg.cjs"
|
|
1259
|
+
}
|
|
1260
|
+
},
|
|
1261
|
+
"./manifest.json": "./dist/manifest.json",
|
|
1262
|
+
"./manifest.schema.json": "./dist/manifest.schema.json",
|
|
1211
1263
|
"./components.css": "./dist/components.css",
|
|
1212
1264
|
"./components/reveal.css": "./dist/components/reveal.css",
|
|
1213
1265
|
"./components/text.css": "./dist/components/text.css",
|
|
@@ -1239,7 +1291,8 @@
|
|
|
1239
1291
|
"README_ja.md",
|
|
1240
1292
|
"LICENSE",
|
|
1241
1293
|
"CHANGELOG.md",
|
|
1242
|
-
"figma-plugin"
|
|
1294
|
+
"figma-plugin",
|
|
1295
|
+
"AGENTS.md"
|
|
1243
1296
|
],
|
|
1244
1297
|
"sideEffects": [
|
|
1245
1298
|
"*.css",
|
|
@@ -1248,18 +1301,22 @@
|
|
|
1248
1301
|
"./dist/presets-extended.umd.js"
|
|
1249
1302
|
],
|
|
1250
1303
|
"scripts": {
|
|
1251
|
-
"build": "npm run clean && node --max-old-space-size=6144 ./node_modules/rollup/dist/bin/rollup -c rollup.config.mjs",
|
|
1304
|
+
"build": "npm run clean && node --max-old-space-size=6144 ./node_modules/rollup/dist/bin/rollup -c rollup.config.mjs && node scripts/gen-manifest.mjs",
|
|
1252
1305
|
"dev": "rollup -c rollup.config.mjs -w",
|
|
1253
1306
|
"typecheck": "tsc --noEmit -p .",
|
|
1254
1307
|
"test": "vitest run",
|
|
1255
1308
|
"check:exports": "node scripts/check-exports.mjs",
|
|
1256
|
-
"lint:package": "publint && attw --pack . --profile node16 --exclude-entrypoints ./components.css ./components/reveal.css ./components/text.css ./components/interaction.css ./components/feedback.css ./components/background.css ./components/transitions.css ./components/physics.css ./components/cards.css ./components/click.css ./components/ui.css ./components/page.css ./components/timeline.css ./components/gesture.css ./components/svg.css ./components/webgl.css ./components/depth.css ./components/layout.css ./components/packs.css ./components/fx.css",
|
|
1309
|
+
"lint:package": "publint && attw --pack . --profile node16 --exclude-entrypoints ./manifest.json ./manifest.schema.json ./components.css ./components/reveal.css ./components/text.css ./components/interaction.css ./components/feedback.css ./components/background.css ./components/transitions.css ./components/physics.css ./components/cards.css ./components/click.css ./components/ui.css ./components/page.css ./components/timeline.css ./components/gesture.css ./components/svg.css ./components/webgl.css ./components/depth.css ./components/layout.css ./components/packs.css ./components/fx.css",
|
|
1257
1310
|
"size": "node scripts/size.mjs",
|
|
1258
1311
|
"prepublishOnly": "npm run typecheck && npm test && npm run build && npm run check:exports",
|
|
1259
1312
|
"size:check": "node scripts/size.mjs --check",
|
|
1260
1313
|
"sync:exports": "node scripts/sync-exports.mjs",
|
|
1261
1314
|
"bench": "node scripts/bench.mjs",
|
|
1262
|
-
"clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\""
|
|
1315
|
+
"clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
1316
|
+
"manifest": "node scripts/gen-manifest.mjs",
|
|
1317
|
+
"docs:runtime": "node scripts/gen-runtime-docs.mjs",
|
|
1318
|
+
"check:peer-docs": "node scripts/check-peer-docs.mjs",
|
|
1319
|
+
"docs:components": "node scripts/gen-component-docs.mjs"
|
|
1263
1320
|
},
|
|
1264
1321
|
"keywords": [
|
|
1265
1322
|
"motionary",
|
|
@@ -1287,7 +1344,13 @@
|
|
|
1287
1344
|
"typescript",
|
|
1288
1345
|
"reduced-motion",
|
|
1289
1346
|
"electron",
|
|
1290
|
-
"webview2"
|
|
1347
|
+
"webview2",
|
|
1348
|
+
"tween",
|
|
1349
|
+
"timeline",
|
|
1350
|
+
"animation-runtime",
|
|
1351
|
+
"lottie-alternative",
|
|
1352
|
+
"llms-txt",
|
|
1353
|
+
"ai-manifest"
|
|
1291
1354
|
],
|
|
1292
1355
|
"author": "HarrisonCN",
|
|
1293
1356
|
"license": "MIT",
|
|
@@ -1334,6 +1397,7 @@
|
|
|
1334
1397
|
"usa-codemod-7": "./bin/usa-codemod-7.mjs",
|
|
1335
1398
|
"usa-codemod-8": "./bin/usa-codemod-8.mjs",
|
|
1336
1399
|
"usa-codemod-9": "./bin/usa-codemod-9.mjs",
|
|
1337
|
-
"usa-codemod-10": "./bin/usa-codemod-10.mjs"
|
|
1400
|
+
"usa-codemod-10": "./bin/usa-codemod-10.mjs",
|
|
1401
|
+
"create-motionary-plugin": "./bin/create-motionary-plugin.mjs"
|
|
1338
1402
|
}
|
|
1339
1403
|
}
|