use-scroll-animate 6.3.0 → 6.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +19 -2
  2. package/README.md +2 -2
  3. package/README_ja.md +2 -2
  4. package/README_zh.md +2 -2
  5. package/dist/chunks/{generative-BRUZaIsX.js → generative-2LhxG5BJ.js} +2 -2
  6. package/dist/chunks/{generative-BRUZaIsX.js.map → generative-2LhxG5BJ.js.map} +1 -1
  7. package/dist/chunks/{gpu-XHWzeNb5.js → gpu-EjV49FQk.js} +3 -3
  8. package/dist/chunks/{gpu-XHWzeNb5.js.map → gpu-EjV49FQk.js.map} +1 -1
  9. package/dist/chunks/{shared-eweTlzxv.js → shared-CkKHWrtJ.js} +2 -2
  10. package/dist/chunks/{shared-eweTlzxv.js.map → shared-CkKHWrtJ.js.map} +1 -1
  11. package/dist/components/effects.js +3 -3
  12. package/dist/components/fx-gpu.js +3 -3
  13. package/dist/components/fx-light.cjs +221 -0
  14. package/dist/components/fx-light.cjs.map +1 -0
  15. package/dist/components/fx-light.d.cts +72 -0
  16. package/dist/components/fx-light.d.ts +72 -0
  17. package/dist/components/fx-light.js +217 -0
  18. package/dist/components/fx-light.js.map +1 -0
  19. package/dist/components/fx-text.js +1 -1
  20. package/dist/components/fx2.cjs +6 -0
  21. package/dist/components/fx2.cjs.map +1 -1
  22. package/dist/components/fx2.d.cts +29 -1
  23. package/dist/components/fx2.d.ts +29 -1
  24. package/dist/components/fx2.js +9 -5
  25. package/dist/components/fx2.js.map +1 -1
  26. package/dist/components/widgets.cjs +519 -14
  27. package/dist/components/widgets.cjs.map +1 -1
  28. package/dist/components/widgets.d.cts +67 -2
  29. package/dist/components/widgets.d.ts +67 -2
  30. package/dist/components/widgets.js +514 -15
  31. package/dist/components/widgets.js.map +1 -1
  32. package/dist/index.cjs +1 -1
  33. package/dist/index.cjs.map +1 -1
  34. package/dist/index.js +1 -1
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.umd.js +1 -1
  37. package/dist/index.umd.js.map +1 -1
  38. package/dist/widgets.umd.js +1 -1
  39. package/dist/widgets.umd.js.map +1 -1
  40. package/docs/ROADMAP.md +1 -1
  41. package/docs/components.md +29 -1
  42. package/package.json +14 -4
package/docs/ROADMAP.md CHANGED
@@ -5,7 +5,7 @@
5
5
  - **v6.1** ✅ — 滚动预设 2.0(Scroll presets 2.0,已发布):新增 181 个滚动入场预设(总计 214 个),独立入口 `motionary/presets/extended`(导入即注册,UMD `dist/presets-extended.umd.js`),核心包体积不变;预设支持中间关键帧 `frames`,新增 `registerPresets()` / `reversePreset()`;动画商店扩展到 227 个条目、14 个预设分类(含随滚动 `scrub-*` 与错峰 `stagger-*`)。
6
6
  - ✅ **v6.2** — 粒子与流体 2.0 + 组件:GPU 流体、烟雾、火焰、墨滴扩散、萤火虫、樱花与落叶、点击水花(WebGL2,自动降级 Canvas 2D);新组件 轮播 / 滑块、动画指示器标签页、手风琴 2.0、快拍浏览器(独立入口 `motionary/components/widgets`)。
7
7
  - ✅ **v6.3** — 文字特效 3.0 + 组件:液态文字、霓虹书写、文字粒子聚散、故障字、光标拖影、可变字体呼吸、逐字 3D 翻转;新组件 通知 / Toast 堆叠、模态对话框、抽屉 / 底部面板。
8
- - **v6.4** — 光影与材质 + 组件:动态光源、玻璃折射、金属拉丝、珠光 / 镭射、体积光、指针实时阴影;新组件 进度条 / 进度环、计数器 / 里程表、骨架屏闪光、评分星。
8
+ - ✅ **v6.4** — 光影与材质 + 组件:动态光源、玻璃折射、金属拉丝、珠光 / 镭射、体积光、指针实时阴影;新组件 进度条 / 进度环、计数器 / 里程表、骨架屏闪光、评分星。
9
9
  - **v6.5** — 3D 场景卡片 + 组件:景深层叠卡、可旋转商品展示、立方体画廊、折纸展开、轨道相机叙事;新组件 时间轴、瀑布流(布局动画)、图片对比滑块。
10
10
  - **v6.6** — 形变与 SVG 2.0 + 组件:路径补间、液态 blob 按钮、描边绘制、SVG 滤镜转场、图标变形;新组件 Dock 栏(macOS 放大)、形变下划线导航、汉堡 → 关闭图标、提示 / 气泡。
11
11
  - **v6.7** — 转场大全 + 组件:涟漪溶解、碎片爆裂、马赛克翻牌、液体擦除、卷页、镜头推拉(View Transitions 优先,MPA 可用);新组件 步骤条 / 向导、分页、分段控件、开关变体。
@@ -5,7 +5,7 @@ Since **v2.2** (now **v3**) the package ships **30 animated UI components** as s
5
5
  - in any modern browser (Chrome, Edge, Firefox, Safari), and with React, Vue, Svelte, Solid, Angular or no framework;
6
6
  - in **Windows desktop software** that renders its UI with a web view — Electron, Tauri (WebView2), WinUI 3 / WPF / WinForms with WebView2, and installed PWAs. See **[Windows apps guide](./windows-apps.md)**.
7
7
 
8
- Live gallery: <https://harrisoncn.github.io/motionary/showcase/components.html>
8
+ Live gallery: <https://harrisoncn.github.io/Motionary/showcase/components.html>
9
9
 
10
10
  ## Principles
11
11
 
@@ -560,6 +560,34 @@ document.querySelector('usa-modal').show();
560
560
  - `<usa-menu placement effect="scale | fold | slide">`: ARIA menu, cascade-in items, arrows / Home / End / Esc / Tab; `usa:select`.
561
561
  - Text effects 3.0: `liquid-text` · `neon-write` · `particle-text` · `glitch-text` · `text-trail` (cursor) · `font-breathe` · `flip-chars`; split text keeps a screen-reader copy. Reduced motion: overlays fade, loops / trail / particles are skipped, one-shots show their final state.
562
562
 
563
+ ### v6.4 Widgets: progress ring, odometer, skeleton reveal, star rating (`components/widgets`) + light & materials (`components/fx-light`)
564
+
565
+ ```html
566
+ <usa-progress-ring value="72" gradient="#7c5cff,#22d3ee"></usa-progress-ring>
567
+ <usa-progress-ring variant="semi" value="88"></usa-progress-ring>
568
+ <usa-odometer value="1284" locale="en-US" prefix="$"></usa-odometer>
569
+ <usa-skeleton-reveal loading variant="wave">
570
+ <img src="avatar.jpg" alt="" data-skeleton="circle"><h3>Ada Lovelace</h3><p>…</p>
571
+ </usa-skeleton-reveal>
572
+ <usa-star-rating value="3.5" step="0.5" label="Your rating"></usa-star-rating>
573
+
574
+ <usa-fx effect="light-follow" trigger="load"><div class="card">…</div></usa-fx>
575
+ <usa-fx effect="god-rays" trigger="load" self class="hero"><h1>Dawn</h1></usa-fx>
576
+ ```
577
+ ```js
578
+ import { defineWidgets } from 'motionary/components/widgets';
579
+ import { defineFx } from 'motionary/components/fx';
580
+ import { registerLightEffects } from 'motionary/components/fx-light';
581
+ defineWidgets(); defineFx(); registerLightEffects();
582
+ document.querySelector('usa-odometer').value = 2048; // every digit rolls
583
+ document.querySelector('usa-skeleton-reveal').loading = false; // dissolve → content
584
+ ```
585
+ - `<usa-progress-ring variant="ring | bar | semi">`: eased arc with overshoot, counting label, gradient, indeterminate without `value`; `role="progressbar"`, `usa:complete`.
586
+ - `<usa-odometer>`: rolling digit wheels (always forward), new digits slide in, `locale` / `decimals` / `prefix` / `suffix`; the formatted number is the accessible name.
587
+ - `<usa-skeleton-reveal loading variant="wave | pulse | glow">`: placeholders measured from the real content (text lines via Range rects, images, `[data-skeleton]`), synchronized shimmer, top-to-bottom dissolve; `aria-busy`, `reveal()`, `usa:reveal`.
588
+ - `<usa-star-rating max step icon="star | heart" readonly>`: hover preview, half stars, pop + sparkle burst, `role="slider"` keyboard, `usa:change`.
589
+ - Light & materials: `light-follow` · `refraction` · `pointer-shadow` (hover) · `brushed-metal` · `pearlescent` (card) · `god-rays` (background). Helper `trackPointer()`. Reduced motion: fixed lighting, one still frame, values switch instantly.
590
+
563
591
  ## Frameworks
564
592
 
565
593
  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.0",
3
+ "version": "6.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",
@@ -438,6 +438,16 @@
438
438
  "default": "./dist/components/fx-text.cjs"
439
439
  }
440
440
  },
441
+ "./components/fx-light": {
442
+ "import": {
443
+ "types": "./dist/components/fx-light.d.ts",
444
+ "default": "./dist/components/fx-light.js"
445
+ },
446
+ "require": {
447
+ "types": "./dist/components/fx-light.d.cts",
448
+ "default": "./dist/components/fx-light.cjs"
449
+ }
450
+ },
441
451
  "./components/lite": {
442
452
  "import": {
443
453
  "types": "./dist/components/lite.d.ts",
@@ -532,12 +542,12 @@
532
542
  "license": "MIT",
533
543
  "repository": {
534
544
  "type": "git",
535
- "url": "git+https://github.com/HarrisonCN/motionary.git"
545
+ "url": "git+https://github.com/HarrisonCN/Motionary.git"
536
546
  },
537
547
  "bugs": {
538
- "url": "https://github.com/HarrisonCN/motionary/issues"
548
+ "url": "https://github.com/HarrisonCN/Motionary/issues"
539
549
  },
540
- "homepage": "https://harrisoncn.github.io/motionary/showcase/",
550
+ "homepage": "https://harrisoncn.github.io/Motionary/showcase/",
541
551
  "devDependencies": {
542
552
  "@arethetypeswrong/cli": "^0.18.5",
543
553
  "@rollup/plugin-node-resolve": "^16.0.3",