use-scroll-animate 8.3.0 → 8.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 +33 -0
- package/dist/components/fx-cyber.cjs +140 -0
- package/dist/components/fx-cyber.cjs.map +1 -0
- package/dist/components/fx-cyber.d.cts +66 -0
- package/dist/components/fx-cyber.d.ts +66 -0
- package/dist/components/fx-cyber.js +136 -0
- package/dist/components/fx-cyber.js.map +1 -0
- package/dist/components/fx-paper.cjs +108 -0
- package/dist/components/fx-paper.cjs.map +1 -0
- package/dist/components/fx-paper.d.cts +68 -0
- package/dist/components/fx-paper.d.ts +68 -0
- package/dist/components/fx-paper.js +103 -0
- package/dist/components/fx-paper.js.map +1 -0
- package/dist/components/fx2.cjs +13 -0
- package/dist/components/fx2.cjs.map +1 -1
- package/dist/components/fx2.d.cts +47 -1
- package/dist/components/fx2.d.ts +47 -1
- package/dist/components/fx2.js +9 -1
- package/dist/components/fx2.js.map +1 -1
- package/dist/components/widgets.cjs +478 -162
- package/dist/components/widgets.cjs.map +1 -1
- package/dist/components/widgets.d.cts +71 -2
- package/dist/components/widgets.d.ts +71 -2
- package/dist/components/widgets.js +474 -163
- package/dist/components/widgets.js.map +1 -1
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/docs/ROADMAP.md +2 -2
- package/docs/components.md +44 -0
- package/package.json +41 -1
package/docs/ROADMAP.md
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
- ✅ **v8.1** — 节日特效包:烟花、新春(灯笼、福字、鞭炮)、圣诞飘雪、万圣节;新组件 节日横幅、红包。
|
|
6
6
|
- ✅ **v8.2** — 复古风:像素化、CRT 显示器、VHS 噪点、Y2K;新组件 复古按钮、终端窗口。
|
|
7
7
|
- ✅ **v8.3** — 自然有机:水波涟漪、藤蔓生长、花朵绽放;新组件 有机卡片、液态导航。
|
|
8
|
-
- **v8.4** — 赛博 / 科幻:HUD 线框、扫描线、全息投影;新组件 HUD 面板、雷达扫描。
|
|
9
|
-
- **v8.5** — 纸张与手绘:折纸、铅笔素描、水彩晕染;新组件 便利贴墙、手绘图表。
|
|
8
|
+
- ✅ **v8.4** — 赛博 / 科幻:HUD 线框、扫描线、全息投影;新组件 HUD 面板、雷达扫描。
|
|
9
|
+
- ✅ **v8.5** — 纸张与手绘:折纸、铅笔素描、水彩晕染;新组件 便利贴墙、手绘图表。
|
|
10
10
|
- **v8.6** — 霓虹 / 玻璃 / 新拟态主题系统;新组件 主题切换器。
|
|
11
11
|
- **v8.7** — 手势 3.0:多点触控、陀螺仪;新组件 陀螺仪 3D 卡片。
|
|
12
12
|
- **v8.8** — XR / 空间界面:WebXR 预览、空间卡片;新组件 全景查看器。
|
package/docs/components.md
CHANGED
|
@@ -1024,6 +1024,50 @@ nav.addEventListener('usa:change', (e) => route(e.detail.index));
|
|
|
1024
1024
|
- `<usa-liquid-nav label value>`: `value`; `usa:change` { index, item }.
|
|
1025
1025
|
- Organic: `vine-grow` · `bloom` (`stagger`) · `water-drop` (`rings`, `color`) · `breathe`; `blobRadius(seed)`.
|
|
1026
1026
|
|
|
1027
|
+
### v8.4 Widgets: HUD panel, radar (`components/widgets`) + cyber pack (`motionary/fx/cyber`)
|
|
1028
|
+
|
|
1029
|
+
```html
|
|
1030
|
+
<usa-hud-panel title="SHIP STATUS" status="ONLINE">
|
|
1031
|
+
<p data-value="82">Shields</p><p data-value="47">Fuel</p>
|
|
1032
|
+
</usa-hud-panel>
|
|
1033
|
+
<usa-radar targets="Alpha:40,0.6; Bravo:200,0.35" speed="4"></usa-radar>
|
|
1034
|
+
|
|
1035
|
+
<usa-fx effect="hud-frame" trigger="enter"><div class="card">Target</div></usa-fx>
|
|
1036
|
+
<usa-fx effect="data-decode" trigger="enter"><h2>ACCESS GRANTED</h2></usa-fx>
|
|
1037
|
+
```
|
|
1038
|
+
```js
|
|
1039
|
+
import { defineWidgets } from 'motionary/components/widgets';
|
|
1040
|
+
import { registerCyberPack } from 'motionary/fx/cyber';
|
|
1041
|
+
defineWidgets(); registerCyberPack();
|
|
1042
|
+
radar.setTargets([{ name: 'Delta', bearing: 90, distance: 0.5 }]);
|
|
1043
|
+
radar.addEventListener('usa:ping', (e) => console.log(e.detail.name));
|
|
1044
|
+
```
|
|
1045
|
+
- `<usa-hud-panel title status color>`: `boot()`; `usa:boot`.
|
|
1046
|
+
- `<usa-radar targets rings speed label>`: `targets`, `setTargets(list)`; `usa:ping` { name }; `parseTargets(str)`.
|
|
1047
|
+
- Cyber: `hud-frame` (`color`) · `scanline-sweep` (`color`, `passes`) · `hologram` (`color`) · `data-decode` (`speed`, `frames`); `decodeFrame(text, k, n)`.
|
|
1048
|
+
|
|
1049
|
+
### v8.5 Widgets: sticky-note wall, sketch chart (`components/widgets`) + paper pack (`motionary/fx/paper`)
|
|
1050
|
+
|
|
1051
|
+
```html
|
|
1052
|
+
<usa-sticky-wall label="Ideas">
|
|
1053
|
+
<p>Ship 8.5</p><p data-color="pink">Call Mia</p><p data-color="blue">Buy paper</p>
|
|
1054
|
+
</usa-sticky-wall>
|
|
1055
|
+
<usa-sketch-chart values="3,7,5,9" labels="Q1,Q2,Q3,Q4" label="Revenue"></usa-sketch-chart>
|
|
1056
|
+
|
|
1057
|
+
<usa-fx effect="paper-unfold" trigger="enter"><div class="letter">Dear reader…</div></usa-fx>
|
|
1058
|
+
<usa-fx effect="pencil-sketch" trigger="enter"><svg viewBox="0 0 100 60"><path d="M5 55 L50 5 L95 55 Z"/></svg></usa-fx>
|
|
1059
|
+
```
|
|
1060
|
+
```js
|
|
1061
|
+
import { defineWidgets } from 'motionary/components/widgets';
|
|
1062
|
+
import { registerPaperPack } from 'motionary/fx/paper';
|
|
1063
|
+
defineWidgets(); registerPaperPack();
|
|
1064
|
+
chart.setValues([4, 8, 6, 10]);
|
|
1065
|
+
wall.addEventListener('usa:pick', (e) => console.log(e.detail.index));
|
|
1066
|
+
```
|
|
1067
|
+
- `<usa-sticky-wall seed label>`: `notes`, `pick(index)`; `usa:pick` { index }.
|
|
1068
|
+
- `<usa-sketch-chart values labels type color label>`: `values`, `setValues(list)`; `usa:drawn`.
|
|
1069
|
+
- Paper: `paper-unfold` (`folds`) · `pencil-sketch` (`stagger`) · `watercolor` · `crumple`; `roughLine(x1, y1, x2, y2, seed, amp)`, `paperRandom(seed)`.
|
|
1070
|
+
|
|
1027
1071
|
## Frameworks
|
|
1028
1072
|
|
|
1029
1073
|
Custom elements work in every framework. Register once (e.g. in your entry file), then use the tags.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "use-scroll-animate",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.5.0",
|
|
4
4
|
"description": "Compatibility alias of motionary (same build). The project was renamed to Motionary — install `motionary` instead. 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",
|
|
@@ -318,6 +318,26 @@
|
|
|
318
318
|
"default": "./dist/components/fx-organic.cjs"
|
|
319
319
|
}
|
|
320
320
|
},
|
|
321
|
+
"./fx/cyber": {
|
|
322
|
+
"import": {
|
|
323
|
+
"types": "./dist/components/fx-cyber.d.ts",
|
|
324
|
+
"default": "./dist/components/fx-cyber.js"
|
|
325
|
+
},
|
|
326
|
+
"require": {
|
|
327
|
+
"types": "./dist/components/fx-cyber.d.cts",
|
|
328
|
+
"default": "./dist/components/fx-cyber.cjs"
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
"./fx/paper": {
|
|
332
|
+
"import": {
|
|
333
|
+
"types": "./dist/components/fx-paper.d.ts",
|
|
334
|
+
"default": "./dist/components/fx-paper.js"
|
|
335
|
+
},
|
|
336
|
+
"require": {
|
|
337
|
+
"types": "./dist/components/fx-paper.d.cts",
|
|
338
|
+
"default": "./dist/components/fx-paper.cjs"
|
|
339
|
+
}
|
|
340
|
+
},
|
|
321
341
|
"./components/reveal": {
|
|
322
342
|
"import": {
|
|
323
343
|
"types": "./dist/components/reveal.d.ts",
|
|
@@ -868,6 +888,26 @@
|
|
|
868
888
|
"default": "./dist/components/fx-organic.cjs"
|
|
869
889
|
}
|
|
870
890
|
},
|
|
891
|
+
"./components/fx-cyber": {
|
|
892
|
+
"import": {
|
|
893
|
+
"types": "./dist/components/fx-cyber.d.ts",
|
|
894
|
+
"default": "./dist/components/fx-cyber.js"
|
|
895
|
+
},
|
|
896
|
+
"require": {
|
|
897
|
+
"types": "./dist/components/fx-cyber.d.cts",
|
|
898
|
+
"default": "./dist/components/fx-cyber.cjs"
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
"./components/fx-paper": {
|
|
902
|
+
"import": {
|
|
903
|
+
"types": "./dist/components/fx-paper.d.ts",
|
|
904
|
+
"default": "./dist/components/fx-paper.js"
|
|
905
|
+
},
|
|
906
|
+
"require": {
|
|
907
|
+
"types": "./dist/components/fx-paper.d.cts",
|
|
908
|
+
"default": "./dist/components/fx-paper.cjs"
|
|
909
|
+
}
|
|
910
|
+
},
|
|
871
911
|
"./components/lite": {
|
|
872
912
|
"import": {
|
|
873
913
|
"types": "./dist/components/lite.d.ts",
|