motionary 10.4.0 → 10.5.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/CHANGELOG.md +18 -0
- package/README.md +37 -0
- package/dist/chunks/{anim-image-DDdb9q3X.js → anim-image-BlNPv4JG.js} +2 -2
- package/dist/chunks/{anim-image-DDdb9q3X.js.map → anim-image-BlNPv4JG.js.map} +1 -1
- package/dist/chunks/{anim-image-blQgPFFS.cjs → anim-image-DuxvYhq6.cjs} +2 -2
- package/dist/chunks/{anim-image-blQgPFFS.cjs.map → anim-image-DuxvYhq6.cjs.map} +1 -1
- package/dist/chunks/{keyframes-B5PWe5bU.js → keyframes-B8ITIAVa.js} +2 -2
- package/dist/chunks/{keyframes-B5PWe5bU.js.map → keyframes-B8ITIAVa.js.map} +1 -1
- package/dist/chunks/{keyframes-tC3I7anQ.cjs → keyframes-Ce1s05n3.cjs} +2 -2
- package/dist/chunks/{keyframes-tC3I7anQ.cjs.map → keyframes-Ce1s05n3.cjs.map} +1 -1
- package/dist/chunks/{registry-CT-TT_bx.js → registry-DXdFb2fJ.js} +2 -2
- package/dist/chunks/{registry-CT-TT_bx.js.map → registry-DXdFb2fJ.js.map} +1 -1
- package/dist/chunks/{registry-tzwKkldE.cjs → registry-VhfPSI0v.cjs} +2 -2
- package/dist/chunks/{registry-tzwKkldE.cjs.map → registry-VhfPSI0v.cjs.map} +1 -1
- package/dist/chunks/{ticker-C8lSGml9.js → ticker-C5RMHMW7.js} +2 -2
- package/dist/chunks/{ticker-C8lSGml9.js.map → ticker-C5RMHMW7.js.map} +1 -1
- package/dist/chunks/{ticker-Un0bvTWR.cjs → ticker-DvmC6WLS.cjs} +2 -2
- package/dist/chunks/{ticker-Un0bvTWR.cjs.map → ticker-DvmC6WLS.cjs.map} +1 -1
- package/dist/chunks/{tween-BcejKpsx.js → tween-CPtm-EdT.js} +2 -2
- package/dist/chunks/{tween-BcejKpsx.js.map → tween-CPtm-EdT.js.map} +1 -1
- package/dist/chunks/{tween-CwLLC3Ko.cjs → tween-_BGIl6hK.cjs} +2 -2
- package/dist/chunks/{tween-CwLLC3Ko.cjs.map → tween-_BGIl6hK.cjs.map} +1 -1
- package/dist/components/widgets.cjs +745 -212
- package/dist/components/widgets.cjs.map +1 -1
- package/dist/components/widgets.d.cts +202 -2
- package/dist/components/widgets.d.ts +202 -2
- package/dist/components/widgets.js +738 -213
- package/dist/components/widgets.js.map +1 -1
- package/dist/llms-full.txt +150 -1
- package/dist/llms.txt +9 -2
- package/dist/manifest.json +394 -1
- package/dist/runtime/format-apng.cjs +4 -4
- package/dist/runtime/format-apng.js +4 -4
- package/dist/runtime/format-css.cjs +4 -4
- package/dist/runtime/format-css.js +4 -4
- package/dist/runtime/format-gif.cjs +4 -4
- package/dist/runtime/format-gif.js +4 -4
- package/dist/runtime/format-gltf.cjs +207 -0
- package/dist/runtime/format-gltf.cjs.map +1 -0
- package/dist/runtime/format-gltf.d.cts +251 -0
- package/dist/runtime/format-gltf.d.ts +251 -0
- package/dist/runtime/format-gltf.iife.js +2 -0
- package/dist/runtime/format-gltf.iife.js.map +1 -0
- package/dist/runtime/format-gltf.js +200 -0
- package/dist/runtime/format-gltf.js.map +1 -0
- package/dist/runtime/format-motion.cjs +4 -4
- package/dist/runtime/format-motion.js +4 -4
- package/dist/runtime/format-obj.cjs +181 -0
- package/dist/runtime/format-obj.cjs.map +1 -0
- package/dist/runtime/format-obj.d.cts +176 -0
- package/dist/runtime/format-obj.d.ts +176 -0
- package/dist/runtime/format-obj.iife.js +2 -0
- package/dist/runtime/format-obj.iife.js.map +1 -0
- package/dist/runtime/format-obj.js +174 -0
- package/dist/runtime/format-obj.js.map +1 -0
- package/dist/runtime/format-sprite.cjs +3 -3
- package/dist/runtime/format-sprite.js +3 -3
- package/dist/runtime/format-svg.cjs +3 -3
- package/dist/runtime/format-svg.js +3 -3
- package/dist/runtime/format-webp.cjs +4 -4
- package/dist/runtime/format-webp.js +4 -4
- package/dist/runtime/gl.cjs +763 -0
- package/dist/runtime/gl.cjs.map +1 -0
- package/dist/runtime/gl.d.cts +260 -0
- package/dist/runtime/gl.d.ts +260 -0
- package/dist/runtime/gl.iife.js +2 -0
- package/dist/runtime/gl.iife.js.map +1 -0
- package/dist/runtime/gl.js +739 -0
- package/dist/runtime/gl.js.map +1 -0
- package/dist/runtime/scroll.cjs +2 -2
- package/dist/runtime/scroll.js +2 -2
- package/dist/runtime/smooth.cjs +1 -1
- package/dist/runtime/smooth.js +1 -1
- package/dist/runtime/text.cjs +1 -1
- package/dist/runtime/text.js +1 -1
- package/dist/runtime.cjs +3 -3
- package/dist/runtime.d.cts +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.iife.js +1 -1
- package/dist/runtime.iife.js.map +1 -1
- package/dist/runtime.js +5 -5
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/docs/ROADMAP.md +1 -1
- package/docs/components/README.md +8 -1
- package/docs/components/usa-gl-scene.md +66 -0
- package/docs/components/usa-gpu-particles.md +32 -0
- package/docs/components/usa-shader-backdrop.md +36 -0
- package/docs/components/usa-three-scene.md +20 -0
- package/docs/components.md +48 -0
- package/docs/runtime/format-gltf.md +63 -0
- package/docs/runtime/format-obj.md +59 -0
- package/docs/runtime/gl.md +62 -0
- package/package.json +32 -2
package/dist/llms-full.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Motionary 10.
|
|
1
|
+
# Motionary 10.5.0 — full component reference
|
|
2
2
|
|
|
3
3
|
Generated from the source. Machine-readable version: https://harrisoncn.github.io/Motionary/components.json (schema https://harrisoncn.github.io/Motionary/components.schema.json).
|
|
4
4
|
|
|
@@ -247,6 +247,78 @@ const anim = await loadWebp('/hero.webp');
|
|
|
247
247
|
const p = animatedImagePlayer(document.querySelector('canvas'), anim, { speed: 0.5 });
|
|
248
248
|
```
|
|
249
249
|
|
|
250
|
+
### motionary/runtime/gl — WebGL2 scene renderer
|
|
251
|
+
|
|
252
|
+
A small WebGL2 renderer with its own API: scene graph, camera, lights, box / plane / sphere / torus, PBR-style materials, shader materials, image and video textures, orbit controls — not a Three.js clone.
|
|
253
|
+
|
|
254
|
+
- Install: `npm i motionary`
|
|
255
|
+
- Import: `motionary/runtime/gl`
|
|
256
|
+
- Register: `use(gl);` — Register the core first, then the module: use(gl) also registers the core. CDN: load runtime.iife.js, then runtime/gl.iife.js (it registers itself).
|
|
257
|
+
- CDN:
|
|
258
|
+
|
|
259
|
+
```html
|
|
260
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
|
|
261
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/gl.iife.js"></script>
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
```js
|
|
265
|
+
import { use } from 'motionary/runtime';
|
|
266
|
+
import { gl, createRenderer, Scene, Camera, GlNode, torus, standardMaterial } from 'motionary/runtime/gl';
|
|
267
|
+
use(gl);
|
|
268
|
+
const r = createRenderer(canvas);
|
|
269
|
+
const scene = new Scene();
|
|
270
|
+
scene.add(new GlNode('donut', { geometry: torus(), material: standardMaterial({ color: [0.5, 0.55, 1, 1] }) }));
|
|
271
|
+
r.resize(); r.render(scene, new Camera({ position: [0, 0.5, 3] }));
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### motionary/runtime/format-gltf — glTF 2.0 / GLB loader
|
|
275
|
+
|
|
276
|
+
Load glTF 2.0 (.gltf with external or data: buffers, .glb) into motionary/runtime/gl nodes: node hierarchy, meshes, PBR metallic-roughness materials, embedded / external images.
|
|
277
|
+
|
|
278
|
+
- Install: `npm i motionary`
|
|
279
|
+
- Import: `motionary/runtime/format-gltf`
|
|
280
|
+
- Register: `use(formatGltf);` — Register the core first, then the module: use(formatGltf) also registers the core. CDN: load runtime.iife.js, then runtime/format-gltf.iife.js (it registers itself).
|
|
281
|
+
- CDN:
|
|
282
|
+
|
|
283
|
+
```html
|
|
284
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
|
|
285
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-gltf.iife.js"></script>
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
```js
|
|
289
|
+
import { use } from 'motionary/runtime';
|
|
290
|
+
import { gl, createRenderer, Scene, Camera, frameNode } from 'motionary/runtime/gl';
|
|
291
|
+
import { formatGltf, loadGltf } from 'motionary/runtime/format-gltf';
|
|
292
|
+
use(gl, formatGltf);
|
|
293
|
+
const model = await loadGltf('/models/chair.glb');
|
|
294
|
+
const scene = new Scene().add(model), cam = new Camera();
|
|
295
|
+
frameNode(cam, model);
|
|
296
|
+
const r = createRenderer(canvas); r.resize(); r.render(scene, cam);
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
### motionary/runtime/format-obj — OBJ / MTL loader
|
|
300
|
+
|
|
301
|
+
Load Wavefront OBJ (+ MTL materials and diffuse textures) into motionary/runtime/gl nodes: polygons triangulated, groups, per-material meshes.
|
|
302
|
+
|
|
303
|
+
- Install: `npm i motionary`
|
|
304
|
+
- Import: `motionary/runtime/format-obj`
|
|
305
|
+
- Register: `use(formatObj);` — Register the core first, then the module: use(formatObj) also registers the core. CDN: load runtime.iife.js, then runtime/format-obj.iife.js (it registers itself).
|
|
306
|
+
- CDN:
|
|
307
|
+
|
|
308
|
+
```html
|
|
309
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
|
|
310
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-obj.iife.js"></script>
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
```js
|
|
314
|
+
import { use } from 'motionary/runtime';
|
|
315
|
+
import { gl, Scene } from 'motionary/runtime/gl';
|
|
316
|
+
import { formatObj, loadObj } from 'motionary/runtime/format-obj';
|
|
317
|
+
use(gl, formatObj);
|
|
318
|
+
const cube = await loadObj('/models/cube.obj'); // + cube.mtl + textures next to it
|
|
319
|
+
new Scene().add(cube);
|
|
320
|
+
```
|
|
321
|
+
|
|
250
322
|
## Components
|
|
251
323
|
|
|
252
324
|
### <usa-accordion> — Accordion
|
|
@@ -1175,6 +1247,44 @@ Full-screen sections that snap one at a time, with keyboard paging, dot navigati
|
|
|
1175
1247
|
</usa-gesture-sticker>
|
|
1176
1248
|
```
|
|
1177
1249
|
|
|
1250
|
+
### <usa-gl-scene> — 3D scene (glTF / OBJ)
|
|
1251
|
+
|
|
1252
|
+
10.5: a WebGL2 3D viewer on Motionary’s own renderer — glTF 2.0 / GLB and OBJ / MTL models or built-in shapes, PBR-style materials, orbit controls (drag, wheel, pinch, arrow keys), auto-rotate and video textures. Requires motionary/runtime/gl (+ format-gltf for .gltf / .glb, format-obj for .obj) — npm i motionary, then use(gl, formatGltf, formatObj) before it mounts. Alias: <usa-three-scene>.
|
|
1253
|
+
|
|
1254
|
+
- Import: `import { defineGlScene } from 'motionary/components/widgets'; defineGlScene();`
|
|
1255
|
+
- CDN: https://unpkg.com/motionary@10/dist/widgets.umd.js
|
|
1256
|
+
- Attributes: `src`, `shape`, `color`, `metallic`, `roughness`, `background`, `exposure`, `controls`, `auto-rotate`, `video`, `video-scrub`, `label`
|
|
1257
|
+
- Events: `usa:error`, `usa:load`, `usa:runtime-missing`
|
|
1258
|
+
- Methods: `reload()`
|
|
1259
|
+
- Requires: motionary/runtime/gl + motionary/runtime/format-gltf + motionary/runtime/format-obj
|
|
1260
|
+
- Install: `npm i motionary`
|
|
1261
|
+
- Order: Register the core first, then the module: use(gl) also registers the core. CDN: load runtime.iife.js, then runtime/gl.iife.js (it registers itself). Register the core first, then the module: use(formatGltf) also registers the core. CDN: load runtime.iife.js, then runtime/format-gltf.iife.js (it registers itself). Register the core first, then the module: use(formatObj) also registers the core. CDN: load runtime.iife.js, then runtime/format-obj.iife.js (it registers itself).
|
|
1262
|
+
|
|
1263
|
+
```js
|
|
1264
|
+
import { use } from 'motionary/runtime';
|
|
1265
|
+
import { gl } from 'motionary/runtime/gl';
|
|
1266
|
+
import { formatGltf } from 'motionary/runtime/format-gltf';
|
|
1267
|
+
import { formatObj } from 'motionary/runtime/format-obj';
|
|
1268
|
+
import { defineGlScene } from 'motionary/components/widgets';
|
|
1269
|
+
|
|
1270
|
+
use(gl, formatGltf, formatObj);
|
|
1271
|
+
defineGlScene(); // registers <usa-gl-scene> — after the prerequisites
|
|
1272
|
+
```
|
|
1273
|
+
|
|
1274
|
+
```html
|
|
1275
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js"></script>
|
|
1276
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/gl.iife.js"></script>
|
|
1277
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-gltf.iife.js"></script>
|
|
1278
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-obj.iife.js"></script>
|
|
1279
|
+
<!-- then the component bundles -->
|
|
1280
|
+
<script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>
|
|
1281
|
+
<script src="https://unpkg.com/motionary@10/dist/widgets.umd.js"></script>
|
|
1282
|
+
```
|
|
1283
|
+
|
|
1284
|
+
```html
|
|
1285
|
+
<usa-gl-scene src="/models/chair.glb" controls auto-rotate="20" label="Chair"></usa-gl-scene>
|
|
1286
|
+
```
|
|
1287
|
+
|
|
1178
1288
|
### <usa-glitch> — Glitch text
|
|
1179
1289
|
|
|
1180
1290
|
An RGB-split, sliced glitch — always on or on hover.
|
|
@@ -1203,6 +1313,19 @@ An RGB-split, sliced glitch — always on or on hover.
|
|
|
1203
1313
|
<script>globe.flyTo('London');</script>
|
|
1204
1314
|
```
|
|
1205
1315
|
|
|
1316
|
+
### <usa-gpu-particles> — GPU particle canvas
|
|
1317
|
+
|
|
1318
|
+
10.5 (WebGPU effects 2.0): tens of thousands of particles simulated by a WebGPU compute shader and drawn as instanced quads — swirl, galaxy or fountain, pointer repulsion, trails; Canvas 2D fallback where WebGPU is missing.
|
|
1319
|
+
|
|
1320
|
+
- Import: `import { defineGpuParticles } from 'motionary/components/widgets'; defineGpuParticles();`
|
|
1321
|
+
- CDN: https://unpkg.com/motionary@10/dist/widgets.umd.js
|
|
1322
|
+
- Attributes: `count`, `mode`, `colors`, `size`, `speed`, `trail`, `pointer`, `label`
|
|
1323
|
+
- Events: `usa:backend`
|
|
1324
|
+
|
|
1325
|
+
```html
|
|
1326
|
+
<usa-gpu-particles count="30000" mode="galaxy" colors="#818cf8,#f472b6" pointer></usa-gpu-particles>
|
|
1327
|
+
```
|
|
1328
|
+
|
|
1206
1329
|
### <usa-gradient-text> — Gradient flow
|
|
1207
1330
|
|
|
1208
1331
|
Text filled with a multi-colour gradient that keeps flowing.
|
|
@@ -2565,6 +2688,21 @@ A GPU shader behind your content: gradient, plasma, waves or aurora presets —
|
|
|
2565
2688
|
</usa-shader>
|
|
2566
2689
|
```
|
|
2567
2690
|
|
|
2691
|
+
### <usa-shader-backdrop> — Shader backdrop + post chain
|
|
2692
|
+
|
|
2693
|
+
10.5 (WebGPU effects 2.0): an animated shader background (aurora, plasma, waves, nebula or your own GLSL) run through a post-processing chain — bloom, vignette, grain, chromatic aberration, pixelate, scanlines — in any order; CSS gradient fallback.
|
|
2694
|
+
|
|
2695
|
+
- Import: `import { defineShaderBackdrop } from 'motionary/components/widgets'; defineShaderBackdrop();`
|
|
2696
|
+
- CDN: https://unpkg.com/motionary@10/dist/widgets.umd.js
|
|
2697
|
+
- Attributes: `preset`, `post`, `colors`, `speed`, `intensity`, `label`
|
|
2698
|
+
- Events: `usa:backend`
|
|
2699
|
+
|
|
2700
|
+
```html
|
|
2701
|
+
<usa-shader-backdrop preset="aurora" post="bloom,vignette,grain">
|
|
2702
|
+
<h1>Hello</h1>
|
|
2703
|
+
</usa-shader-backdrop>
|
|
2704
|
+
```
|
|
2705
|
+
|
|
2568
2706
|
### <usa-sheet> — Drawer / bottom sheet
|
|
2569
2707
|
|
|
2570
2708
|
6.3: a side sheet from the right, left, top or bottom with a blurred backdrop; the bottom sheet can be dragged down to dismiss and springs back otherwise. Native <dialog> underneath.
|
|
@@ -3121,6 +3259,17 @@ defineTextSplitter(); // registers <usa-text-splitter> — after the prerequisit
|
|
|
3121
3259
|
<usa-theme-switcher themes="light,dark,neon,glass,neu" persist></usa-theme-switcher>
|
|
3122
3260
|
```
|
|
3123
3261
|
|
|
3262
|
+
### <usa-three-scene> — <usa-three-scene>
|
|
3263
|
+
|
|
3264
|
+
`<usa-three-scene>` — alias of `<usa-gl-scene>` (same attributes, events and methods; no Three.js involved).
|
|
3265
|
+
|
|
3266
|
+
- Import: `import { defineThreeScene } from 'motionary/components/widgets'; defineThreeScene();`
|
|
3267
|
+
- CDN: https://unpkg.com/motionary@10/dist/widgets.umd.js
|
|
3268
|
+
|
|
3269
|
+
```html
|
|
3270
|
+
<usa-three-scene></usa-three-scene>
|
|
3271
|
+
```
|
|
3272
|
+
|
|
3124
3273
|
### <usa-tilt> — 3D tilt card
|
|
3125
3274
|
|
|
3126
3275
|
Tilts toward the pointer in 3D with an optional glare; exposes --usa-tilt-x/y for parallax layers inside.
|
package/dist/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Motionary 10.
|
|
1
|
+
# Motionary 10.5.0
|
|
2
2
|
|
|
3
|
-
> Motionary is a zero-dependency motion library: scroll animations, 200+ presets and
|
|
3
|
+
> Motionary is a zero-dependency motion library: scroll animations, 200+ presets and 202 animated Web Components (<usa-*>) that work in plain HTML and every framework, plus motionary/runtime — its own tween/timeline engine and format loaders.
|
|
4
4
|
|
|
5
5
|
Install: `npm i motionary` · CDN: https://unpkg.com/motionary@10/dist/components.umd.js (+ https://unpkg.com/motionary@10/dist/widgets.umd.js for 6.x+ widgets) · Manifest: https://harrisoncn.github.io/Motionary/components.json · Full text: https://harrisoncn.github.io/Motionary/llms-full.txt
|
|
6
6
|
|
|
@@ -19,6 +19,9 @@ Rules for using a component: (1) import its define function from `import.path` a
|
|
|
19
19
|
- [motionary/runtime/format-gif](https://github.com/HarrisonCN/Motionary/blob/main/docs/runtime/format-gif.md): Decode animated GIFs (own LZW decoder, no DOM) into composited RGBA frames and play / scrub / reverse them on a canvas as a runtime timeline.
|
|
20
20
|
- [motionary/runtime/format-apng](https://github.com/HarrisonCN/Motionary/blob/main/docs/runtime/format-apng.md): Split animated PNGs into standalone frame PNGs (decoded by the browser), composite them (dispose / blend) and play them on a canvas as a runtime timeline.
|
|
21
21
|
- [motionary/runtime/format-webp](https://github.com/HarrisonCN/Motionary/blob/main/docs/runtime/format-webp.md): Split animated WebP files (ANIM / ANMF) into standalone frames (decoded by the browser), composite them (blend / dispose) and play them on a canvas as a runtime timeline.
|
|
22
|
+
- [motionary/runtime/gl](https://github.com/HarrisonCN/Motionary/blob/main/docs/runtime/gl.md): A small WebGL2 renderer with its own API: scene graph, camera, lights, box / plane / sphere / torus, PBR-style materials, shader materials, image and video textures, orbit controls — not a Three.js clone.
|
|
23
|
+
- [motionary/runtime/format-gltf](https://github.com/HarrisonCN/Motionary/blob/main/docs/runtime/format-gltf.md): Load glTF 2.0 (.gltf with external or data: buffers, .glb) into motionary/runtime/gl nodes: node hierarchy, meshes, PBR metallic-roughness materials, embedded / external images.
|
|
24
|
+
- [motionary/runtime/format-obj](https://github.com/HarrisonCN/Motionary/blob/main/docs/runtime/format-obj.md): Load Wavefront OBJ (+ MTL materials and diffuse textures) into motionary/runtime/gl nodes: polygons triangulated, groups, per-material meshes.
|
|
22
25
|
|
|
23
26
|
## Components
|
|
24
27
|
|
|
@@ -82,8 +85,10 @@ Rules for using a component: (1) import its define function from `import.path` a
|
|
|
82
85
|
- `<usa-gen-art>` (motionary/components/widgets): 9.3: seeded generative art on a canvas — flow fields, circle packing, Truchet tiles or layered waves in curated palettes; it draws itself in on screen and a tap
|
|
83
86
|
- `<usa-gesture-fx>` (motionary/components/effects): 5.7: <usa-gesture-fx> plays any registered effect on a fling (fast release), a two-finger twist or a long press that charges --usa-charge 0 → 1. JS: bindGesture
|
|
84
87
|
- `<usa-gesture-sticker>` (motionary/components/widgets): 8.7: a multi-touch sticker — drag with one finger, pinch with two to scale and twist to rotate, all at once, with a lifted shadow while held (wheel / Shift + wh
|
|
88
|
+
- `<usa-gl-scene>` (motionary/components/widgets; requires motionary/runtime/gl + motionary/runtime/format-gltf + motionary/runtime/format-obj): 10.5: a WebGL2 3D viewer on Motionary’s own renderer — glTF 2.0 / GLB and OBJ / MTL models or built-in shapes, PBR-style materials, orbit controls (drag, wheel,
|
|
85
89
|
- `<usa-glitch>` (motionary/components/text): An RGB-split, sliced glitch — always on or on hover.
|
|
86
90
|
- `<usa-globe>` (motionary/components/widgets): 7.6: an SVG globe in orthographic projection — graticule, pulsing markers, spins while on screen, drag to turn it, flyTo(name) brings a city round to the front.
|
|
91
|
+
- `<usa-gpu-particles>` (motionary/components/widgets): 10.5 (WebGPU effects 2.0): tens of thousands of particles simulated by a WebGPU compute shader and drawn as instanced quads — swirl, galaxy or fountain, pointer
|
|
87
92
|
- `<usa-gradient-text>` (motionary/components/text): Text filled with a multi-colour gradient that keeps flowing.
|
|
88
93
|
- `<usa-grain>` (motionary/components/background): An SVG-noise grain overlay — no image to ship. animated makes it jitter like film.
|
|
89
94
|
- `<usa-grid-glow>` (motionary/components/background): A line grid behind the content that lights up around the pointer.
|
|
@@ -171,6 +176,7 @@ Rules for using a component: (1) import its define function from `import.path` a
|
|
|
171
176
|
- `<usa-scrolly>` (motionary/components/reveal): A pinned graphic while [data-step] blocks scroll past; the active step drives the graphic via attributes, a CSS variable and events.
|
|
172
177
|
- `<usa-segmented>` (motionary/components/widgets): 6.7: an iOS-style thumb slides under the chosen segment with a spring and stretches while it travels. A real radio group: arrow keys, Home / End. iOS, pill or o
|
|
173
178
|
- `<usa-shader>` (motionary/components/webgl): A GPU shader behind your content: gradient, plasma, waves or aurora presets — or your own fragment shader in a <script type="x-shader/x-fragment">. Falls back t
|
|
179
|
+
- `<usa-shader-backdrop>` (motionary/components/widgets): 10.5 (WebGPU effects 2.0): an animated shader background (aurora, plasma, waves, nebula or your own GLSL) run through a post-processing chain — bloom, vignette,
|
|
174
180
|
- `<usa-sheet>` (motionary/components/widgets): 6.3: a side sheet from the right, left, top or bottom with a blurred backdrop; the bottom sheet can be dragged down to dismiss and springs back otherwise. Nativ
|
|
175
181
|
- `<usa-shimmer-text>` (motionary/components/text): A light sweep across gradient-filled text. CSS only; colours and speed via attributes or custom properties.
|
|
176
182
|
- `<usa-shortcut>` (motionary/components/widgets): 7.9: keyboard-shortcut hints as keycaps (⌘ on Apple, Ctrl elsewhere); press the combination anywhere and the caps press down one after another and usa:trigger f
|
|
@@ -204,6 +210,7 @@ Rules for using a component: (1) import its define function from `import.path` a
|
|
|
204
210
|
- `<usa-text-splitter>` (motionary/components/widgets; requires motionary/runtime/text): 10.3: splits its text into characters, words or lines and animates them in with a stagger (rise, fade, blur, flip, wave) when it scrolls into view — accessible,
|
|
205
211
|
- `<usa-theme-surface>` (motionary/components/widgets): 8.6: a themeable card that follows the nearest theme — light, dark, neon (pulsing glow edge), glass (frosted backdrop with a sheen) or soft neumorphic relief —
|
|
206
212
|
- `<usa-theme-switcher>` (motionary/components/widgets): 8.6: a segmented switcher for the 8.6 theme system — light, dark, neon, glass and soft (neumorphism); a pill slides under the active option and the page change
|
|
213
|
+
- `<usa-three-scene>` (motionary/components/widgets): `<usa-three-scene>` — alias of `<usa-gl-scene>` (same attributes, events and methods; no Three.js involved).
|
|
207
214
|
- `<usa-tilt>` (motionary/components/interaction): Tilts toward the pointer in 3D with an optional glare; exposes --usa-tilt-x/y for parallax layers inside.
|
|
208
215
|
- `<usa-timeline>` (motionary/components/timeline): Every data-tl child becomes a step in document order. data-at ('-=200', '<', 'label+=100') overlaps or aligns steps; scrub ties progress to scroll; trigger view
|
|
209
216
|
- `<usa-tip>` (motionary/components/widgets): 6.6: springs out of its trigger with an arrow, flips to stay inside the viewport and shifts along the edge; hover + keyboard focus (Esc closes) or click popover
|