use-scroll-animate 8.2.0 → 8.4.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 +28 -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-organic.cjs +115 -0
- package/dist/components/fx-organic.cjs.map +1 -0
- package/dist/components/fx-organic.d.cts +66 -0
- package/dist/components/fx-organic.d.ts +66 -0
- package/dist/components/fx-organic.js +111 -0
- package/dist/components/fx-organic.js.map +1 -0
- package/dist/components/fx2.cjs +12 -0
- package/dist/components/fx2.cjs.map +1 -1
- package/dist/components/fx2.d.cts +45 -1
- package/dist/components/fx2.d.ts +45 -1
- package/dist/components/fx2.js +9 -1
- package/dist/components/fx2.js.map +1 -1
- package/dist/components/widgets.cjs +437 -162
- package/dist/components/widgets.cjs.map +1 -1
- package/dist/components/widgets.d.cts +67 -2
- package/dist/components/widgets.d.ts +67 -2
- package/dist/components/widgets.js +433 -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 +43 -0
- package/package.json +41 -1
package/docs/ROADMAP.md
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
- ✅ **v8.1** — 节日特效包:烟花、新春(灯笼、福字、鞭炮)、圣诞飘雪、万圣节;新组件 节日横幅、红包。
|
|
6
6
|
- ✅ **v8.2** — 复古风:像素化、CRT 显示器、VHS 噪点、Y2K;新组件 复古按钮、终端窗口。
|
|
7
|
-
- **v8.3** — 自然有机:水波涟漪、藤蔓生长、花朵绽放;新组件 有机卡片、液态导航。
|
|
8
|
-
- **v8.4** — 赛博 / 科幻:HUD 线框、扫描线、全息投影;新组件 HUD 面板、雷达扫描。
|
|
7
|
+
- ✅ **v8.3** — 自然有机:水波涟漪、藤蔓生长、花朵绽放;新组件 有机卡片、液态导航。
|
|
8
|
+
- ✅ **v8.4** — 赛博 / 科幻:HUD 线框、扫描线、全息投影;新组件 HUD 面板、雷达扫描。
|
|
9
9
|
- **v8.5** — 纸张与手绘:折纸、铅笔素描、水彩晕染;新组件 便利贴墙、手绘图表。
|
|
10
10
|
- **v8.6** — 霓虹 / 玻璃 / 新拟态主题系统;新组件 主题切换器。
|
|
11
11
|
- **v8.7** — 手势 3.0:多点触控、陀螺仪;新组件 陀螺仪 3D 卡片。
|
package/docs/components.md
CHANGED
|
@@ -1003,6 +1003,49 @@ term.addEventListener('usa:done', () => term.replay());
|
|
|
1003
1003
|
- `<usa-retro-button variant type disabled name value>`: `button`, `variant`; `RETRO_VARIANTS`.
|
|
1004
1004
|
- Retro: `pixelate-in` (`steps`) · `crt-power` · `vhs-glitch` (`intensity`) · `y2k-shine` (`color`); `pixelSteps(steps)`.
|
|
1005
1005
|
|
|
1006
|
+
### v8.3 Widgets: organic card, liquid nav (`components/widgets`) + organic pack (`motionary/fx/organic`)
|
|
1007
|
+
|
|
1008
|
+
```html
|
|
1009
|
+
<usa-organic-card tint="ocean"><h3>Deep sea</h3><p>…</p></usa-organic-card>
|
|
1010
|
+
<usa-liquid-nav label="Main">
|
|
1011
|
+
<a href="/" aria-current="page">Home</a><a href="/shop">Shop</a><a href="/about">About</a>
|
|
1012
|
+
</usa-liquid-nav>
|
|
1013
|
+
|
|
1014
|
+
<usa-fx effect="vine-grow" trigger="enter"><svg viewBox="0 0 200 80"><path d="M5 75 C60 10 120 90 195 10"/><circle data-leaf cx="70" cy="40" r="6"/></svg></usa-fx>
|
|
1015
|
+
<usa-fx effect="water-drop" trigger="click"><button>Drop</button></usa-fx>
|
|
1016
|
+
```
|
|
1017
|
+
```js
|
|
1018
|
+
import { defineWidgets } from 'motionary/components/widgets';
|
|
1019
|
+
import { registerOrganicPack } from 'motionary/fx/organic';
|
|
1020
|
+
defineWidgets(); registerOrganicPack();
|
|
1021
|
+
nav.addEventListener('usa:change', (e) => route(e.detail.index));
|
|
1022
|
+
```
|
|
1023
|
+
- `<usa-organic-card tint seed>`: `morph(seed?)`.
|
|
1024
|
+
- `<usa-liquid-nav label value>`: `value`; `usa:change` { index, item }.
|
|
1025
|
+
- Organic: `vine-grow` · `bloom` (`stagger`) · `water-drop` (`rings`, `color`) · `breathe`; `blobRadius(seed)`.
|
|
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
|
+
|
|
1006
1049
|
## Frameworks
|
|
1007
1050
|
|
|
1008
1051
|
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.4.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",
|
|
@@ -308,6 +308,26 @@
|
|
|
308
308
|
"default": "./dist/components/fx-retro.cjs"
|
|
309
309
|
}
|
|
310
310
|
},
|
|
311
|
+
"./fx/organic": {
|
|
312
|
+
"import": {
|
|
313
|
+
"types": "./dist/components/fx-organic.d.ts",
|
|
314
|
+
"default": "./dist/components/fx-organic.js"
|
|
315
|
+
},
|
|
316
|
+
"require": {
|
|
317
|
+
"types": "./dist/components/fx-organic.d.cts",
|
|
318
|
+
"default": "./dist/components/fx-organic.cjs"
|
|
319
|
+
}
|
|
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
|
+
},
|
|
311
331
|
"./components/reveal": {
|
|
312
332
|
"import": {
|
|
313
333
|
"types": "./dist/components/reveal.d.ts",
|
|
@@ -848,6 +868,26 @@
|
|
|
848
868
|
"default": "./dist/components/fx-retro.cjs"
|
|
849
869
|
}
|
|
850
870
|
},
|
|
871
|
+
"./components/fx-organic": {
|
|
872
|
+
"import": {
|
|
873
|
+
"types": "./dist/components/fx-organic.d.ts",
|
|
874
|
+
"default": "./dist/components/fx-organic.js"
|
|
875
|
+
},
|
|
876
|
+
"require": {
|
|
877
|
+
"types": "./dist/components/fx-organic.d.cts",
|
|
878
|
+
"default": "./dist/components/fx-organic.cjs"
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
"./components/fx-cyber": {
|
|
882
|
+
"import": {
|
|
883
|
+
"types": "./dist/components/fx-cyber.d.ts",
|
|
884
|
+
"default": "./dist/components/fx-cyber.js"
|
|
885
|
+
},
|
|
886
|
+
"require": {
|
|
887
|
+
"types": "./dist/components/fx-cyber.d.cts",
|
|
888
|
+
"default": "./dist/components/fx-cyber.cjs"
|
|
889
|
+
}
|
|
890
|
+
},
|
|
851
891
|
"./components/lite": {
|
|
852
892
|
"import": {
|
|
853
893
|
"types": "./dist/components/lite.d.ts",
|