use-scroll-animate 6.6.0 → 6.7.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 +14 -0
- package/dist/chunks/{gpu-EjV49FQk.js → gpu-CsP2ZB3x.js} +2 -2
- package/dist/chunks/{gpu-EjV49FQk.js.map → gpu-CsP2ZB3x.js.map} +1 -1
- package/dist/chunks/{registry-Bu5NrAyA.js → registry-D23neB4M.js} +2 -2
- package/dist/chunks/{registry-Bu5NrAyA.js.map → registry-D23neB4M.js.map} +1 -1
- package/dist/components/angular.js +1 -1
- package/dist/components/effects.js +1 -1
- package/dist/components/fx-3d.js +1 -1
- package/dist/components/fx-gpu.js +2 -2
- package/dist/components/fx-light.js +1 -1
- package/dist/components/fx-morph.js +1 -1
- package/dist/components/fx-text.js +1 -1
- package/dist/components/fx-transitions.cjs +249 -0
- package/dist/components/fx-transitions.cjs.map +1 -0
- package/dist/components/fx-transitions.d.cts +77 -0
- package/dist/components/fx-transitions.d.ts +77 -0
- package/dist/components/fx-transitions.js +244 -0
- package/dist/components/fx-transitions.js.map +1 -0
- package/dist/components/fx.js +2 -2
- package/dist/components/fx2.cjs +7 -0
- package/dist/components/fx2.cjs.map +1 -1
- package/dist/components/fx2.d.cts +34 -1
- package/dist/components/fx2.d.ts +34 -1
- package/dist/components/fx2.js +8 -4
- package/dist/components/fx2.js.map +1 -1
- package/dist/components/solid.js +1 -1
- package/dist/components/svelte.js +1 -1
- package/dist/components/vue.js +1 -1
- package/dist/components/widgets.cjs +458 -37
- package/dist/components/widgets.cjs.map +1 -1
- package/dist/components/widgets.d.cts +72 -2
- package/dist/components/widgets.d.ts +72 -2
- package/dist/components/widgets.js +452 -38
- package/dist/components/widgets.js.map +1 -1
- package/dist/components.js +1 -1
- package/dist/widgets.umd.js +1 -1
- package/dist/widgets.umd.js.map +1 -1
- package/docs/ROADMAP.md +1 -1
- package/docs/components.md +23 -0
- package/package.json +11 -1
package/docs/ROADMAP.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
- ✅ **v6.4** — 光影与材质 + 组件:动态光源、玻璃折射、金属拉丝、珠光 / 镭射、体积光、指针实时阴影;新组件 进度条 / 进度环、计数器 / 里程表、骨架屏闪光、评分星。
|
|
9
9
|
- ✅ **v6.5** — 3D 场景卡片 + 组件:景深层叠卡、可旋转商品展示、立方体画廊、折纸展开、轨道相机叙事;新组件 时间轴、瀑布流(布局动画)、图片对比滑块。
|
|
10
10
|
- ✅ **v6.6** — 形变与 SVG 2.0 + 组件:路径补间、液态 blob 按钮、描边绘制、SVG 滤镜转场、图标变形;新组件 Dock 栏(macOS 放大)、形变下划线导航、汉堡 → 关闭图标、提示 / 气泡。
|
|
11
|
-
- **v6.7** — 转场大全 + 组件:涟漪溶解、碎片爆裂、马赛克翻牌、液体擦除、卷页、镜头推拉(View Transitions 优先,MPA 可用);新组件 步骤条 / 向导、分页、分段控件、开关变体。
|
|
11
|
+
- ✅ **v6.7** — 转场大全 + 组件:涟漪溶解、碎片爆裂、马赛克翻牌、液体擦除、卷页、镜头推拉(View Transitions 优先,MPA 可用);新组件 步骤条 / 向导、分页、分段控件、开关变体。
|
|
12
12
|
- **v6.8** — 天气与氛围 + 交互物理 2.0 + 组件:玻璃雨滴、积雪、安全闪电、雾、极光、昼夜光照;软体、布料、绳索、磁吸、弹球、重力翻转(Verlet);新组件 看板 / 拖拽排序、滑动卡片、下拉刷新。
|
|
13
13
|
- **v6.9** — 7.0 预备 + 组件:动画编辑器 2.0、效果市场清单格式、7.0 弃用警告、`upgrading-7.md` 与 `usa-codemod-7`;新组件 日期选择器、取色器、文件拖放区动画。
|
|
14
14
|
- **v7.0** — 破坏性清理:移除 6.9 弃用的 API,效果包与组件按需拆分入口,WebGPU 渲染后端(WebGL2 回退),npm `latest`。
|
package/docs/components.md
CHANGED
|
@@ -639,6 +639,29 @@ defineWidgets(); defineFx(); registerMorphEffects2();
|
|
|
639
639
|
- `<usa-tip text placement trigger="hover | click" delay>`: spring-out tooltip / popover with arrow, viewport flip + shift, Esc, rich `[slot="tip"]` content.
|
|
640
640
|
- Morph & SVG 2.0: `path-morph` (loop) · `blob-button` (hover) · `stroke-draw` · `noise-reveal` (enter) · `icon-swap` (click); helpers `samplePath()`, `pointsToPath()`. Reduced motion: no magnification / stretch / morph loops; reveals and swaps fade.
|
|
641
641
|
|
|
642
|
+
### v6.7 Widgets: stepper, pagination, segmented control, switch (`components/widgets`) + Transitions 2.0 (`components/fx-transitions`)
|
|
643
|
+
|
|
644
|
+
```html
|
|
645
|
+
<usa-stepper value="1"><span>Cart</span><span>Shipping</span><span>Payment</span></usa-stepper>
|
|
646
|
+
<usa-pagination total="20" page="1" siblings="1"></usa-pagination>
|
|
647
|
+
<usa-segmented variant="ios"><button>Day</button><button>Week</button><button>Month</button></usa-segmented>
|
|
648
|
+
<usa-switch variant="daynight" name="dark" label="Dark mode"></usa-switch>
|
|
649
|
+
|
|
650
|
+
<usa-fx effect="ripple-dissolve" trigger="click" options='{"mode":"in"}'><section>…</section></usa-fx>
|
|
651
|
+
```
|
|
652
|
+
```js
|
|
653
|
+
import { defineWidgets } from 'motionary/components/widgets';
|
|
654
|
+
import { registerTransitionEffects2, pageTransition, crossDocumentTransitions } from 'motionary/components/fx-transitions';
|
|
655
|
+
defineWidgets(); registerTransitionEffects2();
|
|
656
|
+
await pageTransition(() => renderNextView(), 'liquid-wipe'); // SPA: View Transitions API, fallback = update + effect
|
|
657
|
+
crossDocumentTransitions('camera-dolly'); // MPA: @view-transition { navigation: auto }
|
|
658
|
+
```
|
|
659
|
+
- `<usa-stepper value orientation clickable>`: `next()`, `prev()`, `value`; `usa:change`.
|
|
660
|
+
- `<usa-pagination total page siblings>`: `page`; `usa:change` (`{ page }`); `pageWindow(page, total, siblings)`.
|
|
661
|
+
- `<usa-segmented variant="ios | pill | outline" value>`: radio group; `usa:change` (`{ value, label }`).
|
|
662
|
+
- `<usa-switch variant="ios | daynight | bounce | liquid" checked disabled name value>`: `checked`, `toggle()`; `usa:change`.
|
|
663
|
+
- Transitions 2.0 (`mode: "in" | "out"`): `ripple-dissolve` (`x`, `y`, from the pointer on click) · `shatter` (`pieces`) · `mosaic-flip` (`cols`, `rows`) · `liquid-wipe` (`direction`, `waves`) · `page-curl` · `camera-dolly` (`scale`). Reduced motion: short fades.
|
|
664
|
+
|
|
642
665
|
## Frameworks
|
|
643
666
|
|
|
644
667
|
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": "6.
|
|
3
|
+
"version": "6.7.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",
|
|
@@ -468,6 +468,16 @@
|
|
|
468
468
|
"default": "./dist/components/fx-morph.cjs"
|
|
469
469
|
}
|
|
470
470
|
},
|
|
471
|
+
"./components/fx-transitions": {
|
|
472
|
+
"import": {
|
|
473
|
+
"types": "./dist/components/fx-transitions.d.ts",
|
|
474
|
+
"default": "./dist/components/fx-transitions.js"
|
|
475
|
+
},
|
|
476
|
+
"require": {
|
|
477
|
+
"types": "./dist/components/fx-transitions.d.cts",
|
|
478
|
+
"default": "./dist/components/fx-transitions.cjs"
|
|
479
|
+
}
|
|
480
|
+
},
|
|
471
481
|
"./components/lite": {
|
|
472
482
|
"import": {
|
|
473
483
|
"types": "./dist/components/lite.d.ts",
|