use-scroll-animate 6.1.0 → 6.1.1

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 (320) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +157 -411
  3. package/README_ja.md +170 -175
  4. package/README_zh.md +169 -198
  5. package/dist/chunks/{base-B5i8qQPR.cjs → base-BaQV-2ha.cjs} +3 -3
  6. package/dist/chunks/base-BaQV-2ha.cjs.map +1 -0
  7. package/dist/chunks/{base-C3Sw9sAO.js → base-Yno7N2eC.js} +3 -3
  8. package/dist/chunks/base-Yno7N2eC.js.map +1 -0
  9. package/dist/chunks/{core-BYLtO0Po.cjs → core-B5T0dhFH.cjs} +3 -3
  10. package/dist/chunks/core-B5T0dhFH.cjs.map +1 -0
  11. package/dist/chunks/{core-BDcszY4L.cjs → core-BGAyaY6L.cjs} +2 -2
  12. package/dist/chunks/{core-BDcszY4L.cjs.map → core-BGAyaY6L.cjs.map} +1 -1
  13. package/dist/chunks/{core-BTf__I-8.js → core-BIOaYdgN.js} +2 -2
  14. package/dist/chunks/{core-BTf__I-8.js.map → core-BIOaYdgN.js.map} +1 -1
  15. package/dist/chunks/{core-DN3hHbHh.js → core-CUGCsMsJ.js} +2 -2
  16. package/dist/chunks/{core-DN3hHbHh.js.map → core-CUGCsMsJ.js.map} +1 -1
  17. package/dist/chunks/{core-BVQW34aX.js → core-D7cVumUu.js} +3 -3
  18. package/dist/chunks/core-D7cVumUu.js.map +1 -0
  19. package/dist/chunks/{core-BjOYKSrV.cjs → core-zq17EeCI.cjs} +2 -2
  20. package/dist/chunks/{core-BjOYKSrV.cjs.map → core-zq17EeCI.cjs.map} +1 -1
  21. package/dist/chunks/{fx-ChjxrMBo.js → fx-BqDeFywO.js} +2 -2
  22. package/dist/chunks/{fx-ChjxrMBo.js.map → fx-BqDeFywO.js.map} +1 -1
  23. package/dist/chunks/{fx-B8hk1Fby.cjs → fx-lBGVtQO1.cjs} +2 -2
  24. package/dist/chunks/{fx-B8hk1Fby.cjs.map → fx-lBGVtQO1.cjs.map} +1 -1
  25. package/dist/chunks/{presets-BJ09NeTo.js → presets-BYBVJVeP.js} +3 -3
  26. package/dist/chunks/presets-BYBVJVeP.js.map +1 -0
  27. package/dist/chunks/{presets-D2ksQNzJ.cjs → presets-CUHys3sK.cjs} +3 -3
  28. package/dist/chunks/presets-CUHys3sK.cjs.map +1 -0
  29. package/dist/chunks/{spring-CckMe3x0.js → spring-DfQO5USi.js} +2 -2
  30. package/dist/chunks/{spring-CckMe3x0.js.map → spring-DfQO5USi.js.map} +1 -1
  31. package/dist/chunks/{spring--oZh55tB.cjs → spring-Dgx187Vh.cjs} +2 -2
  32. package/dist/chunks/{spring--oZh55tB.cjs.map → spring-Dgx187Vh.cjs.map} +1 -1
  33. package/dist/chunks/{stagger-CvhYlKrF.cjs → stagger-CCFyhzSw.cjs} +3 -3
  34. package/dist/chunks/stagger-CCFyhzSw.cjs.map +1 -0
  35. package/dist/chunks/{stagger-Dh4V-OL0.js → stagger-DtMKo2SK.js} +3 -3
  36. package/dist/chunks/stagger-DtMKo2SK.js.map +1 -0
  37. package/dist/chunks/{variants-DxPmgrNX.cjs → variants-BhjyddG8.cjs} +2 -2
  38. package/dist/chunks/{variants-DxPmgrNX.cjs.map → variants-BhjyddG8.cjs.map} +1 -1
  39. package/dist/chunks/{variants-Bsevy6Xm.js → variants-VNscPeTD.js} +2 -2
  40. package/dist/chunks/{variants-Bsevy6Xm.js.map → variants-VNscPeTD.js.map} +1 -1
  41. package/dist/components/a11y.cjs +4 -4
  42. package/dist/components/a11y.cjs.map +1 -1
  43. package/dist/components/a11y.d.cts +2 -2
  44. package/dist/components/a11y.d.ts +2 -2
  45. package/dist/components/a11y.js +5 -5
  46. package/dist/components/a11y.js.map +1 -1
  47. package/dist/components/angular.cjs +8 -8
  48. package/dist/components/angular.cjs.map +1 -1
  49. package/dist/components/angular.d.cts +22 -22
  50. package/dist/components/angular.d.ts +22 -22
  51. package/dist/components/angular.js +8 -8
  52. package/dist/components/angular.js.map +1 -1
  53. package/dist/components/background.cjs +3 -3
  54. package/dist/components/background.cjs.map +1 -1
  55. package/dist/components/background.css +1 -1
  56. package/dist/components/background.d.cts +1 -1
  57. package/dist/components/background.d.ts +1 -1
  58. package/dist/components/background.js +3 -3
  59. package/dist/components/background.js.map +1 -1
  60. package/dist/components/bridge.cjs +2 -2
  61. package/dist/components/bridge.cjs.map +1 -1
  62. package/dist/components/bridge.d.cts +1 -1
  63. package/dist/components/bridge.d.ts +1 -1
  64. package/dist/components/bridge.js +2 -2
  65. package/dist/components/bridge.js.map +1 -1
  66. package/dist/components/cards.cjs +3 -3
  67. package/dist/components/cards.cjs.map +1 -1
  68. package/dist/components/cards.css +1 -1
  69. package/dist/components/cards.d.cts +1 -1
  70. package/dist/components/cards.d.ts +1 -1
  71. package/dist/components/cards.js +3 -3
  72. package/dist/components/cards.js.map +1 -1
  73. package/dist/components/click.cjs +4 -4
  74. package/dist/components/click.cjs.map +1 -1
  75. package/dist/components/click.css +1 -1
  76. package/dist/components/click.d.cts +1 -1
  77. package/dist/components/click.d.ts +1 -1
  78. package/dist/components/click.js +4 -4
  79. package/dist/components/click.js.map +1 -1
  80. package/dist/components/depth.cjs +4 -4
  81. package/dist/components/depth.cjs.map +1 -1
  82. package/dist/components/depth.css +1 -1
  83. package/dist/components/depth.d.cts +1 -1
  84. package/dist/components/depth.d.ts +1 -1
  85. package/dist/components/depth.js +4 -4
  86. package/dist/components/depth.js.map +1 -1
  87. package/dist/components/effects.cjs +13 -13
  88. package/dist/components/effects.cjs.map +1 -1
  89. package/dist/components/effects.d.cts +2 -2
  90. package/dist/components/effects.d.ts +2 -2
  91. package/dist/components/effects.js +13 -13
  92. package/dist/components/effects.js.map +1 -1
  93. package/dist/components/feedback.cjs +2 -2
  94. package/dist/components/feedback.cjs.map +1 -1
  95. package/dist/components/feedback.css +1 -1
  96. package/dist/components/feedback.d.cts +1 -1
  97. package/dist/components/feedback.d.ts +1 -1
  98. package/dist/components/feedback.js +2 -2
  99. package/dist/components/feedback.js.map +1 -1
  100. package/dist/components/fx.cjs +10 -10
  101. package/dist/components/fx.cjs.map +1 -1
  102. package/dist/components/fx.css +1 -1
  103. package/dist/components/fx.d.cts +2 -2
  104. package/dist/components/fx.d.ts +2 -2
  105. package/dist/components/fx.js +10 -10
  106. package/dist/components/fx.js.map +1 -1
  107. package/dist/components/gesture.cjs +4 -4
  108. package/dist/components/gesture.cjs.map +1 -1
  109. package/dist/components/gesture.css +1 -1
  110. package/dist/components/gesture.d.cts +1 -1
  111. package/dist/components/gesture.d.ts +1 -1
  112. package/dist/components/gesture.js +5 -5
  113. package/dist/components/gesture.js.map +1 -1
  114. package/dist/components/interaction.cjs +2 -2
  115. package/dist/components/interaction.cjs.map +1 -1
  116. package/dist/components/interaction.css +1 -1
  117. package/dist/components/interaction.d.cts +1 -1
  118. package/dist/components/interaction.d.ts +1 -1
  119. package/dist/components/interaction.js +2 -2
  120. package/dist/components/interaction.js.map +1 -1
  121. package/dist/components/jsx.d.cts +2 -2
  122. package/dist/components/jsx.d.ts +2 -2
  123. package/dist/components/layout.cjs +2 -2
  124. package/dist/components/layout.cjs.map +1 -1
  125. package/dist/components/layout.css +1 -1
  126. package/dist/components/layout.d.cts +1 -1
  127. package/dist/components/layout.d.ts +1 -1
  128. package/dist/components/layout.js +2 -2
  129. package/dist/components/layout.js.map +1 -1
  130. package/dist/components/lazy.cjs +2 -2
  131. package/dist/components/lazy.cjs.map +1 -1
  132. package/dist/components/lazy.d.cts +2 -2
  133. package/dist/components/lazy.d.ts +2 -2
  134. package/dist/components/lazy.js +2 -2
  135. package/dist/components/lazy.js.map +1 -1
  136. package/dist/components/lite.cjs +41 -41
  137. package/dist/components/lite.cjs.map +1 -1
  138. package/dist/components/lite.js +41 -41
  139. package/dist/components/lite.js.map +1 -1
  140. package/dist/components/packs.cjs +2 -2
  141. package/dist/components/packs.cjs.map +1 -1
  142. package/dist/components/packs.css +1 -1
  143. package/dist/components/packs.d.cts +1 -1
  144. package/dist/components/packs.d.ts +1 -1
  145. package/dist/components/packs.js +2 -2
  146. package/dist/components/packs.js.map +1 -1
  147. package/dist/components/page.cjs +3 -3
  148. package/dist/components/page.cjs.map +1 -1
  149. package/dist/components/page.css +1 -1
  150. package/dist/components/page.d.cts +1 -1
  151. package/dist/components/page.d.ts +1 -1
  152. package/dist/components/page.js +4 -4
  153. package/dist/components/page.js.map +1 -1
  154. package/dist/components/perf.cjs +3 -3
  155. package/dist/components/perf.cjs.map +1 -1
  156. package/dist/components/perf.d.cts +2 -2
  157. package/dist/components/perf.d.ts +2 -2
  158. package/dist/components/perf.js +4 -4
  159. package/dist/components/perf.js.map +1 -1
  160. package/dist/components/physics.cjs +3 -3
  161. package/dist/components/physics.cjs.map +1 -1
  162. package/dist/components/physics.css +1 -1
  163. package/dist/components/physics.d.cts +1 -1
  164. package/dist/components/physics.d.ts +1 -1
  165. package/dist/components/physics.js +4 -4
  166. package/dist/components/physics.js.map +1 -1
  167. package/dist/components/react.cjs +4 -4
  168. package/dist/components/react.cjs.map +1 -1
  169. package/dist/components/react.js +4 -4
  170. package/dist/components/react.js.map +1 -1
  171. package/dist/components/reveal.cjs +2 -2
  172. package/dist/components/reveal.cjs.map +1 -1
  173. package/dist/components/reveal.css +1 -1
  174. package/dist/components/reveal.d.cts +1 -1
  175. package/dist/components/reveal.d.ts +1 -1
  176. package/dist/components/reveal.js +2 -2
  177. package/dist/components/reveal.js.map +1 -1
  178. package/dist/components/solid.cjs +9 -9
  179. package/dist/components/solid.cjs.map +1 -1
  180. package/dist/components/solid.d.cts +22 -22
  181. package/dist/components/solid.d.ts +22 -22
  182. package/dist/components/solid.js +9 -9
  183. package/dist/components/solid.js.map +1 -1
  184. package/dist/components/svelte.cjs +8 -8
  185. package/dist/components/svelte.cjs.map +1 -1
  186. package/dist/components/svelte.d.cts +22 -22
  187. package/dist/components/svelte.d.ts +22 -22
  188. package/dist/components/svelte.js +8 -8
  189. package/dist/components/svelte.js.map +1 -1
  190. package/dist/components/svg.cjs +2 -2
  191. package/dist/components/svg.cjs.map +1 -1
  192. package/dist/components/svg.css +1 -1
  193. package/dist/components/svg.d.cts +1 -1
  194. package/dist/components/svg.d.ts +1 -1
  195. package/dist/components/svg.js +2 -2
  196. package/dist/components/svg.js.map +1 -1
  197. package/dist/components/text.cjs +3 -3
  198. package/dist/components/text.cjs.map +1 -1
  199. package/dist/components/text.css +1 -1
  200. package/dist/components/text.d.cts +1 -1
  201. package/dist/components/text.d.ts +1 -1
  202. package/dist/components/text.js +3 -3
  203. package/dist/components/text.js.map +1 -1
  204. package/dist/components/timeline.cjs +3 -3
  205. package/dist/components/timeline.cjs.map +1 -1
  206. package/dist/components/timeline.css +1 -1
  207. package/dist/components/timeline.d.cts +1 -1
  208. package/dist/components/timeline.d.ts +1 -1
  209. package/dist/components/timeline.js +4 -4
  210. package/dist/components/timeline.js.map +1 -1
  211. package/dist/components/tokens.cjs +2 -2
  212. package/dist/components/tokens.cjs.map +1 -1
  213. package/dist/components/tokens.d.cts +2 -2
  214. package/dist/components/tokens.d.ts +2 -2
  215. package/dist/components/tokens.js +2 -2
  216. package/dist/components/tokens.js.map +1 -1
  217. package/dist/components/transitions.cjs +2 -2
  218. package/dist/components/transitions.cjs.map +1 -1
  219. package/dist/components/transitions.css +1 -1
  220. package/dist/components/transitions.d.cts +1 -1
  221. package/dist/components/transitions.d.ts +1 -1
  222. package/dist/components/transitions.js +2 -2
  223. package/dist/components/transitions.js.map +1 -1
  224. package/dist/components/ui.cjs +4 -4
  225. package/dist/components/ui.cjs.map +1 -1
  226. package/dist/components/ui.css +1 -1
  227. package/dist/components/ui.d.cts +1 -1
  228. package/dist/components/ui.d.ts +1 -1
  229. package/dist/components/ui.js +5 -5
  230. package/dist/components/ui.js.map +1 -1
  231. package/dist/components/vue.cjs +9 -9
  232. package/dist/components/vue.cjs.map +1 -1
  233. package/dist/components/vue.d.cts +23 -23
  234. package/dist/components/vue.d.ts +23 -23
  235. package/dist/components/vue.js +9 -9
  236. package/dist/components/vue.js.map +1 -1
  237. package/dist/components/webgl.cjs +2 -2
  238. package/dist/components/webgl.cjs.map +1 -1
  239. package/dist/components/webgl.css +1 -1
  240. package/dist/components/webgl.d.cts +1 -1
  241. package/dist/components/webgl.d.ts +1 -1
  242. package/dist/components/webgl.js +2 -2
  243. package/dist/components/webgl.js.map +1 -1
  244. package/dist/components.cjs +9 -9
  245. package/dist/components.cjs.map +1 -1
  246. package/dist/components.css +1 -1
  247. package/dist/components.d.cts +30 -30
  248. package/dist/components.d.ts +30 -30
  249. package/dist/components.js +11 -11
  250. package/dist/components.js.map +1 -1
  251. package/dist/components.umd.js +5 -5
  252. package/dist/components.umd.js.map +1 -1
  253. package/dist/element.cjs +4 -4
  254. package/dist/element.cjs.map +1 -1
  255. package/dist/element.d.cts +5 -5
  256. package/dist/element.d.ts +5 -5
  257. package/dist/element.js +4 -4
  258. package/dist/element.js.map +1 -1
  259. package/dist/element.umd.js.map +1 -1
  260. package/dist/index.cjs +10 -10
  261. package/dist/index.cjs.map +1 -1
  262. package/dist/index.d.cts +9 -9
  263. package/dist/index.d.ts +9 -9
  264. package/dist/index.js +11 -11
  265. package/dist/index.js.map +1 -1
  266. package/dist/index.umd.js +3 -3
  267. package/dist/index.umd.js.map +1 -1
  268. package/dist/presets/extended.cjs +3 -3
  269. package/dist/presets/extended.cjs.map +1 -1
  270. package/dist/presets/extended.d.cts +3 -3
  271. package/dist/presets/extended.d.ts +3 -3
  272. package/dist/presets/extended.js +3 -3
  273. package/dist/presets/extended.js.map +1 -1
  274. package/dist/presets-extended.umd.js.map +1 -1
  275. package/dist/react.cjs +4 -4
  276. package/dist/react.cjs.map +1 -1
  277. package/dist/react.d.cts +5 -5
  278. package/dist/react.d.ts +5 -5
  279. package/dist/react.js +4 -4
  280. package/dist/react.js.map +1 -1
  281. package/dist/solid.cjs +5 -5
  282. package/dist/solid.cjs.map +1 -1
  283. package/dist/solid.d.cts +6 -6
  284. package/dist/solid.d.ts +6 -6
  285. package/dist/solid.js +5 -5
  286. package/dist/solid.js.map +1 -1
  287. package/dist/svelte.cjs +5 -5
  288. package/dist/svelte.cjs.map +1 -1
  289. package/dist/svelte.d.cts +6 -6
  290. package/dist/svelte.d.ts +6 -6
  291. package/dist/svelte.js +5 -5
  292. package/dist/svelte.js.map +1 -1
  293. package/dist/vue.cjs +4 -4
  294. package/dist/vue.cjs.map +1 -1
  295. package/dist/vue.d.cts +5 -5
  296. package/dist/vue.d.ts +5 -5
  297. package/dist/vue.js +4 -4
  298. package/dist/vue.js.map +1 -1
  299. package/docs/API.md +13 -13
  300. package/docs/ROADMAP.md +2 -2
  301. package/docs/accessibility.md +2 -2
  302. package/docs/components.md +33 -33
  303. package/docs/frameworks-ssr.md +12 -12
  304. package/docs/hybrid-apps.md +10 -10
  305. package/docs/migration-from-aos.md +5 -5
  306. package/docs/migration-from-gsap-scrolltrigger.md +3 -3
  307. package/docs/motion-tokens.css +1 -1
  308. package/docs/motion-tokens.md +2 -2
  309. package/docs/performance.md +6 -6
  310. package/docs/presets.md +5 -5
  311. package/docs/windows-apps.md +8 -8
  312. package/package.json +26 -25
  313. package/dist/chunks/base-B5i8qQPR.cjs.map +0 -1
  314. package/dist/chunks/base-C3Sw9sAO.js.map +0 -1
  315. package/dist/chunks/core-BVQW34aX.js.map +0 -1
  316. package/dist/chunks/core-BYLtO0Po.cjs.map +0 -1
  317. package/dist/chunks/presets-BJ09NeTo.js.map +0 -1
  318. package/dist/chunks/presets-D2ksQNzJ.cjs.map +0 -1
  319. package/dist/chunks/stagger-CvhYlKrF.cjs.map +0 -1
  320. package/dist/chunks/stagger-Dh4V-OL0.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * use-scroll-animate/components — shared base for the `<usa-*>` custom elements.
2
+ * motionary/components — shared base for the `<usa-*>` custom elements.
3
3
  *
4
4
  * Everything here is lazy: nothing touches `window`, `document`,
5
5
  * `HTMLElement` or `matchMedia` at import time, so the components can be
@@ -11,7 +11,7 @@ interface ComponentsConfig {
11
11
  * Inject each component's CSS when it is defined (default `true`). Uses a
12
12
  * constructable stylesheet (`document.adoptedStyleSheets`, which a strict
13
13
  * `style-src` CSP does not block) and falls back to a `<style>` tag. Set
14
- * to `false` when you load `use-scroll-animate/components.css` yourself.
14
+ * to `false` when you load `motionary/components.css` yourself.
15
15
  */
16
16
  injectStyles?: boolean;
17
17
  /**
@@ -33,7 +33,7 @@ interface ComponentsConfig {
33
33
  * translations and fades only, safe for vestibular disorders) ·
34
34
  * `'minimal'` (fades only; components use their reduced-motion variants) ·
35
35
  * `'static'` (no animation: every component shows its static alternative).
36
- * See `setMotionSensitivity()` in `use-scroll-animate/components/a11y`.
36
+ * See `setMotionSensitivity()` in `motionary/components/a11y`.
37
37
  */
38
38
  motionSensitivity?: MotionSensitivity;
39
39
  }
@@ -171,7 +171,7 @@ interface UsaScrollyElement extends UsaElement {
171
171
  declare function defineScrolly(tag?: string): CustomElementConstructor | undefined;
172
172
 
173
173
  /**
174
- * use-scroll-animate/components/reveal — entrance & scroll reveal components.
174
+ * motionary/components/reveal — entrance & scroll reveal components.
175
175
  * `<usa-reveal>`, `<usa-stagger>`, `<usa-scroll-progress>`, `<usa-scrolly>`.
176
176
  */
177
177
 
@@ -523,7 +523,7 @@ declare function splitTimeline(el: HTMLElement, options?: SplitTimelineOptions):
523
523
  };
524
524
 
525
525
  /**
526
- * use-scroll-animate/components/text — text effects.
526
+ * motionary/components/text — text effects.
527
527
  * `<usa-typewriter>`, `<usa-split-text>`, `<usa-scramble>`, `<usa-counter>`,
528
528
  * `<usa-shimmer-text>`, `<usa-text-rotate>`.
529
529
  */
@@ -631,7 +631,7 @@ interface UsaToggleElement extends UsaElement {
631
631
  declare function defineToggle(tag?: string): CustomElementConstructor | undefined;
632
632
 
633
633
  /**
634
- * use-scroll-animate/components/interaction — micro-interactions.
634
+ * motionary/components/interaction — micro-interactions.
635
635
  * `<usa-ripple>`, `<usa-magnetic>`, `<usa-tilt>`, `<usa-spotlight>`,
636
636
  * `<usa-press>`, `<usa-toggle>`.
637
637
  */
@@ -764,7 +764,7 @@ interface UsaCheckElement extends UsaElement {
764
764
  declare function defineCheck(tag?: string): CustomElementConstructor | undefined;
765
765
 
766
766
  /**
767
- * use-scroll-animate/components/feedback — loading & feedback.
767
+ * motionary/components/feedback — loading & feedback.
768
768
  * `<usa-spinner>`, `<usa-skeleton>`, `<usa-progress>`, `<usa-toaster>` +
769
769
  * `toast()`, `<usa-check>`.
770
770
  */
@@ -914,7 +914,7 @@ interface FluentPresetOptions {
914
914
  declare function fluentPreset(options?: FluentPresetOptions): () => void;
915
915
 
916
916
  /**
917
- * use-scroll-animate/components/background — backgrounds & decoration.
917
+ * motionary/components/background — backgrounds & decoration.
918
918
  * `<usa-aurora>`, `<usa-particles>`, `<usa-grain>`, `<usa-marquee>`,
919
919
  * `<usa-acrylic>`.
920
920
  */
@@ -1033,7 +1033,7 @@ type Targets = Element | Iterable<Element> | ArrayLike<Element>;
1033
1033
  declare function flip(targets: Targets, mutate: () => void | Promise<void>, options?: FlipOptions): Promise<void>;
1034
1034
 
1035
1035
  /**
1036
- * use-scroll-animate/components/transitions — view & layout transitions.
1036
+ * motionary/components/transitions — view & layout transitions.
1037
1037
  * `<usa-dialog>`, `<usa-accordion>`, `<usa-view-switch>`
1038
1038
  * and the `viewTransition()` and `flip()` helpers (4.0: `<usa-flip-list>` → `<usa-auto-animate>`,
1039
1039
  * `connectedAnimation()` → `sharedTransition()`, both in `components/layout`).
@@ -1209,7 +1209,7 @@ declare function snapTo(value: number, to: number | number[] | null | undefined)
1209
1209
  declare function rubberBand(distance: number, dimension: number, constant?: number): number;
1210
1210
 
1211
1211
  /**
1212
- * use-scroll-animate/components/physics — spring & bounce physics (v2.3).
1212
+ * motionary/components/physics — spring & bounce physics (v2.3).
1213
1213
  * `<usa-spring>` (bounce-in, pop, drop, jelly, rubber-band), `<usa-draggable>`
1214
1214
  * (spring-back, inertia, snap) and `<usa-overscroll>` (elastic edges), plus
1215
1215
  * the spring core: `spring()`, `springEasing()`, `createSpring()`,
@@ -1311,7 +1311,7 @@ interface UsaCarousel3dElement extends UsaElement {
1311
1311
  declare function defineCarousel3d(tag?: string): CustomElementConstructor | undefined;
1312
1312
 
1313
1313
  /**
1314
- * use-scroll-animate/components/cards — card effects (v2.4).
1314
+ * motionary/components/cards — card effects (v2.4).
1315
1315
  * `<usa-card effect="flip | holo | glass | border-glow | conic-border | lift |
1316
1316
  * spotlight | sheen | parallax-layers | expand">` (combinable),
1317
1317
  * `<usa-card-stack>` (swipeable deck), `<usa-sticky-stack>` (stacking on
@@ -1512,7 +1512,7 @@ interface ConfettiOptions {
1512
1512
  declare function haptic(pattern?: number | number[]): boolean;
1513
1513
 
1514
1514
  /**
1515
- * use-scroll-animate/components/click — click & tap effects (v2.5).
1515
+ * motionary/components/click — click & tap effects (v2.5).
1516
1516
  * `<usa-click>` (ripple, burst, confetti, squish, press-spring, shake),
1517
1517
  * `<usa-button>` (button click deformation: squash, wobble, gooey, dent;
1518
1518
  * shape morph; submit → loading → success), `<usa-icon-morph>`,
@@ -1720,7 +1720,7 @@ declare function setVariant(variant: Variant | null, root?: Element | null): voi
1720
1720
  type Placement = 'top' | 'bottom' | 'left' | 'right';
1721
1721
 
1722
1722
  /**
1723
- * use-scroll-animate/components/ui — animated UI components + style variants (v2.6).
1723
+ * motionary/components/ui — animated UI components + style variants (v2.6).
1724
1724
  * `<usa-tabs>`, `<usa-drawer>`, `<usa-bottom-sheet>`, `<usa-pull-refresh>`,
1725
1725
  * `<usa-fab>`, `<usa-navbar>`, `<usa-slider>`, `<usa-rating>`,
1726
1726
  * `<usa-tooltip>`, `<usa-popover>`, `<usa-badge>`, `<usa-avatar-stack>`,
@@ -1957,7 +1957,7 @@ declare function scrollToTarget(to: number | Element | string, options?: {
1957
1957
  }): Promise<void>;
1958
1958
 
1959
1959
  /**
1960
- * use-scroll-animate/components/page — page & app-wide effects (v2.7).
1960
+ * motionary/components/page — page & app-wide effects (v2.7).
1961
1961
  * Page transitions (`pageTransition()`, `enableMpaTransitions()`,
1962
1962
  * `themeTransition()`), `<usa-cursor>`, `smoothScroll()` / `scrollToTarget()`,
1963
1963
  * `<usa-fullpage>`, `<usa-loading-bar>` + `loadingBar`, `<usa-back-to-top>`,
@@ -2004,7 +2004,7 @@ interface UsaTimelineElement extends UsaElement {
2004
2004
  declare function defineTimeline(tag?: string): CustomElementConstructor | undefined;
2005
2005
 
2006
2006
  /**
2007
- * use-scroll-animate/components/timeline — choreography (v3.1).
2007
+ * motionary/components/timeline — choreography (v3.1).
2008
2008
  * `timeline()` chains, overlaps, labels, seeks, reverses and scroll-scrubs
2009
2009
  * WAAPI animations on one playhead; `<usa-timeline>` builds one from
2010
2010
  * `data-tl` children.
@@ -2125,7 +2125,7 @@ interface UsaPinchZoomElement extends UsaElement {
2125
2125
  declare function definePinchZoom(tag?: string): CustomElementConstructor | undefined;
2126
2126
 
2127
2127
  /**
2128
- * use-scroll-animate/components/gesture — unified gestures (v3.2).
2128
+ * motionary/components/gesture — unified gestures (v3.2).
2129
2129
  * `gesture()` recognises pan, swipe, pinch, long-press, tap and double-tap
2130
2130
  * with release velocities for springs; `<usa-swipeable>` (swipe-to-dismiss)
2131
2131
  * and `<usa-pinch-zoom>` are built on it.
@@ -2224,7 +2224,7 @@ declare function drawLines(root: Element, o?: {
2224
2224
  }): (progress: number) => void;
2225
2225
 
2226
2226
  /**
2227
- * use-scroll-animate/components/svg — SVG animation (v3.3).
2227
+ * motionary/components/svg — SVG animation (v3.3).
2228
2228
  * `<usa-draw>` (line drawing), `<usa-morph>` (path morph), `<usa-mask-reveal>`
2229
2229
  * (mask / clip-path reveals) and `<usa-anim-icon>` (animated icons), plus
2230
2230
  * `interpolatePath()`, `morphTo()`, `drawLines()`.
@@ -2345,7 +2345,7 @@ interface GLQuad {
2345
2345
  declare function glQuad(canvas: HTMLCanvasElement, frag: string): GLQuad | null;
2346
2346
 
2347
2347
  /**
2348
- * use-scroll-animate/components/webgl — lightweight canvas / WebGL (v3.4).
2348
+ * motionary/components/webgl — lightweight canvas / WebGL (v3.4).
2349
2349
  * `<usa-shader>` (shader backgrounds), `<usa-distort>` (hover image
2350
2350
  * distortion), `<usa-liquid>` (ripple images) on a tiny single-quad runner
2351
2351
  * (`glQuad()`), with graceful fallbacks when WebGL is unavailable.
@@ -2421,7 +2421,7 @@ declare function deviceTilt(cb: (t: TiltReading) => void, o?: {
2421
2421
  }): () => void;
2422
2422
 
2423
2423
  /**
2424
- * use-scroll-animate/components/depth — 3D (v3.5).
2424
+ * motionary/components/depth — 3D (v3.5).
2425
2425
  * `<usa-cube>` (CSS 3D cube), `<usa-depth>` (layered depth parallax driven by
2426
2426
  * pointer, device orientation or scroll) and `deviceTilt()`. The 3D ring
2427
2427
  * carousel is `<usa-carousel-3d>` in `components/cards`.
@@ -2508,7 +2508,7 @@ interface SharedOptions {
2508
2508
  declare function sharedTransition(update: () => void | Promise<void>, root?: ParentNode, o?: SharedOptions): Promise<void>;
2509
2509
 
2510
2510
  /**
2511
- * use-scroll-animate/components/layout — layout animation (v3.6).
2511
+ * motionary/components/layout — layout animation (v3.6).
2512
2512
  * `autoAnimate()` / `<usa-auto-animate>` (list & grid reflow),
2513
2513
  * `<usa-masonry>`, and `sharedTransition()` for shared-element transitions
2514
2514
  * (View Transitions API with a FLIP fallback).
@@ -2568,7 +2568,7 @@ declare function applyPack(name: PackName | string, root?: HTMLElement | Documen
2568
2568
  declare const PACK_PRIMITIVES: string[];
2569
2569
 
2570
2570
  /**
2571
- * use-scroll-animate/components/packs — effect packs (v3.9).
2571
+ * motionary/components/packs — effect packs (v3.9).
2572
2572
  * Ready-made motion for e-commerce, portfolio, dashboard, game UI and
2573
2573
  * landing pages: mark elements with `data-role` and apply a pack with
2574
2574
  * `<usa-pack name="…">` or `applyPack(name, root)`. Includes `flyToCart()`
@@ -2584,7 +2584,7 @@ declare global {
2584
2584
  }
2585
2585
 
2586
2586
  /**
2587
- * use-scroll-animate/components/tokens — motion design tokens (4.2).
2587
+ * motionary/components/tokens — motion design tokens (4.2).
2588
2588
  *
2589
2589
  * One source of truth for durations, easings and springs: as CSS custom
2590
2590
  * properties (`--usa-duration-fast`, `--usa-easing-emphasized`,
@@ -2592,7 +2592,7 @@ declare global {
2592
2592
  * from Figma Tokens (Tokens Studio) or Style Dictionary exports.
2593
2593
  *
2594
2594
  * ```ts
2595
- * import { applyMotionTokens, importMotionTokens, motionToken } from 'use-scroll-animate/components/tokens';
2595
+ * import { applyMotionTokens, importMotionTokens, motionToken } from 'motionary/components/tokens';
2596
2596
  * applyMotionTokens(importMotionTokens(await (await fetch('/tokens.json')).json()));
2597
2597
  * el.animate(frames, { duration: motionToken('duration', 'slow'), easing: motionToken('easing', 'emphasized') });
2598
2598
  * ```
@@ -2690,7 +2690,7 @@ declare function baselineReport(): BaselineFeature[];
2690
2690
  declare function warnBaseline(): string[];
2691
2691
 
2692
2692
  /**
2693
- * use-scroll-animate/components/a11y — accessibility toolkit (4.4).
2693
+ * motionary/components/a11y — accessibility toolkit (4.4).
2694
2694
  *
2695
2695
  * - Motion-sensitivity levels: `setMotionSensitivity('full' | 'gentle' | 'minimal' | 'static')`.
2696
2696
  * - Static alternatives: what every component shows when motion is off, and
@@ -2701,7 +2701,7 @@ declare function warnBaseline(): string[];
2701
2701
  * over every `<usa-*>` element — usable in your own tests too.
2702
2702
  *
2703
2703
  * ```ts
2704
- * import { setMotionSensitivity, announce, auditMotionA11y } from 'use-scroll-animate/components/a11y';
2704
+ * import { setMotionSensitivity, announce, auditMotionA11y } from 'motionary/components/a11y';
2705
2705
  * setMotionSensitivity('gentle', true); // no spins / zooms / parallax, remembered
2706
2706
  * announce('3 items added to cart'); // polite live region
2707
2707
  * expect(auditMotionA11y(document.body).errors).toEqual([]);
@@ -2774,7 +2774,7 @@ declare function auditMotionA11y(root: Element | Document): {
2774
2774
  declare const ALL_TAGS: string[];
2775
2775
 
2776
2776
  /**
2777
- * use-scroll-animate/components/perf — performance toolkit (4.5).
2777
+ * motionary/components/perf — performance toolkit (4.5).
2778
2778
  *
2779
2779
  * - One shared rAF scheduler for every component loop (`onFrame()`, `schedulerStats()`).
2780
2780
  * - Animation budget: `setAnimationBudget(n)` caps concurrent component
@@ -2783,7 +2783,7 @@ declare const ALL_TAGS: string[];
2783
2783
  * down (`low`, then a tighter budget) while the device struggles, restoring
2784
2784
  * it when frames recover.
2785
2785
  * - On-demand CSS: `loadCategoryStyles()` / `onDemandStyles()` — used by
2786
- * `use-scroll-animate/components/lite`, the build without inlined CSS.
2786
+ * `motionary/components/lite`, the build without inlined CSS.
2787
2787
  */
2788
2788
 
2789
2789
  interface AutoDegradeOptions {
@@ -2829,7 +2829,7 @@ declare function onDemandStyles(base: string): () => void;
2829
2829
  declare const loadedStyles: () => string[];
2830
2830
 
2831
2831
  /**
2832
- * use-scroll-animate/components/bridge — native shell bridges (4.7).
2832
+ * motionary/components/bridge — native shell bridges (4.7).
2833
2833
  *
2834
2834
  * Keeps the web UI in sync with the host app's system settings when it runs
2835
2835
  * inside **WinUI 3 / WPF (WebView2)**, **.NET MAUI** (WebView / HybridWebView)
@@ -2969,12 +2969,12 @@ declare function bindEffect(el: HTMLElement, name: string, options?: Record<stri
2969
2969
  declare const BUILTIN_EFFECTS: EffectDefinition[];
2970
2970
 
2971
2971
  /**
2972
- * use-scroll-animate/components/fx — unified plugin-style effects (5.0).
2972
+ * motionary/components/fx — unified plugin-style effects (5.0).
2973
2973
  * `registerEffect({ name, kind, run })`, `playEffect(el, name)`,
2974
2974
  * `bindEffect(el, name, { trigger })`, `<usa-fx effect trigger>`. Built-ins:
2975
2975
  * every timeline preset (`enter`), `pulse` · `pop` · `jelly` · `wiggle` ·
2976
2976
  * `heartbeat` · `bounce` · `flash` · `tada` · `shake` (attention),
2977
- * `burst` · `confetti` · `ripple` (click). More packs: `use-scroll-animate/components/effects`.
2977
+ * `burst` · `confetti` · `ripple` (click). More packs: `motionary/components/effects`.
2978
2978
  */
2979
2979
 
2980
2980
  /** Register the built-in effects (idempotent; `defineFxComponents()` calls it). */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * use-scroll-animate/components — shared base for the `<usa-*>` custom elements.
2
+ * motionary/components — shared base for the `<usa-*>` custom elements.
3
3
  *
4
4
  * Everything here is lazy: nothing touches `window`, `document`,
5
5
  * `HTMLElement` or `matchMedia` at import time, so the components can be
@@ -11,7 +11,7 @@ interface ComponentsConfig {
11
11
  * Inject each component's CSS when it is defined (default `true`). Uses a
12
12
  * constructable stylesheet (`document.adoptedStyleSheets`, which a strict
13
13
  * `style-src` CSP does not block) and falls back to a `<style>` tag. Set
14
- * to `false` when you load `use-scroll-animate/components.css` yourself.
14
+ * to `false` when you load `motionary/components.css` yourself.
15
15
  */
16
16
  injectStyles?: boolean;
17
17
  /**
@@ -33,7 +33,7 @@ interface ComponentsConfig {
33
33
  * translations and fades only, safe for vestibular disorders) ·
34
34
  * `'minimal'` (fades only; components use their reduced-motion variants) ·
35
35
  * `'static'` (no animation: every component shows its static alternative).
36
- * See `setMotionSensitivity()` in `use-scroll-animate/components/a11y`.
36
+ * See `setMotionSensitivity()` in `motionary/components/a11y`.
37
37
  */
38
38
  motionSensitivity?: MotionSensitivity;
39
39
  }
@@ -171,7 +171,7 @@ interface UsaScrollyElement extends UsaElement {
171
171
  declare function defineScrolly(tag?: string): CustomElementConstructor | undefined;
172
172
 
173
173
  /**
174
- * use-scroll-animate/components/reveal — entrance & scroll reveal components.
174
+ * motionary/components/reveal — entrance & scroll reveal components.
175
175
  * `<usa-reveal>`, `<usa-stagger>`, `<usa-scroll-progress>`, `<usa-scrolly>`.
176
176
  */
177
177
 
@@ -523,7 +523,7 @@ declare function splitTimeline(el: HTMLElement, options?: SplitTimelineOptions):
523
523
  };
524
524
 
525
525
  /**
526
- * use-scroll-animate/components/text — text effects.
526
+ * motionary/components/text — text effects.
527
527
  * `<usa-typewriter>`, `<usa-split-text>`, `<usa-scramble>`, `<usa-counter>`,
528
528
  * `<usa-shimmer-text>`, `<usa-text-rotate>`.
529
529
  */
@@ -631,7 +631,7 @@ interface UsaToggleElement extends UsaElement {
631
631
  declare function defineToggle(tag?: string): CustomElementConstructor | undefined;
632
632
 
633
633
  /**
634
- * use-scroll-animate/components/interaction — micro-interactions.
634
+ * motionary/components/interaction — micro-interactions.
635
635
  * `<usa-ripple>`, `<usa-magnetic>`, `<usa-tilt>`, `<usa-spotlight>`,
636
636
  * `<usa-press>`, `<usa-toggle>`.
637
637
  */
@@ -764,7 +764,7 @@ interface UsaCheckElement extends UsaElement {
764
764
  declare function defineCheck(tag?: string): CustomElementConstructor | undefined;
765
765
 
766
766
  /**
767
- * use-scroll-animate/components/feedback — loading & feedback.
767
+ * motionary/components/feedback — loading & feedback.
768
768
  * `<usa-spinner>`, `<usa-skeleton>`, `<usa-progress>`, `<usa-toaster>` +
769
769
  * `toast()`, `<usa-check>`.
770
770
  */
@@ -914,7 +914,7 @@ interface FluentPresetOptions {
914
914
  declare function fluentPreset(options?: FluentPresetOptions): () => void;
915
915
 
916
916
  /**
917
- * use-scroll-animate/components/background — backgrounds & decoration.
917
+ * motionary/components/background — backgrounds & decoration.
918
918
  * `<usa-aurora>`, `<usa-particles>`, `<usa-grain>`, `<usa-marquee>`,
919
919
  * `<usa-acrylic>`.
920
920
  */
@@ -1033,7 +1033,7 @@ type Targets = Element | Iterable<Element> | ArrayLike<Element>;
1033
1033
  declare function flip(targets: Targets, mutate: () => void | Promise<void>, options?: FlipOptions): Promise<void>;
1034
1034
 
1035
1035
  /**
1036
- * use-scroll-animate/components/transitions — view & layout transitions.
1036
+ * motionary/components/transitions — view & layout transitions.
1037
1037
  * `<usa-dialog>`, `<usa-accordion>`, `<usa-view-switch>`
1038
1038
  * and the `viewTransition()` and `flip()` helpers (4.0: `<usa-flip-list>` → `<usa-auto-animate>`,
1039
1039
  * `connectedAnimation()` → `sharedTransition()`, both in `components/layout`).
@@ -1209,7 +1209,7 @@ declare function snapTo(value: number, to: number | number[] | null | undefined)
1209
1209
  declare function rubberBand(distance: number, dimension: number, constant?: number): number;
1210
1210
 
1211
1211
  /**
1212
- * use-scroll-animate/components/physics — spring & bounce physics (v2.3).
1212
+ * motionary/components/physics — spring & bounce physics (v2.3).
1213
1213
  * `<usa-spring>` (bounce-in, pop, drop, jelly, rubber-band), `<usa-draggable>`
1214
1214
  * (spring-back, inertia, snap) and `<usa-overscroll>` (elastic edges), plus
1215
1215
  * the spring core: `spring()`, `springEasing()`, `createSpring()`,
@@ -1311,7 +1311,7 @@ interface UsaCarousel3dElement extends UsaElement {
1311
1311
  declare function defineCarousel3d(tag?: string): CustomElementConstructor | undefined;
1312
1312
 
1313
1313
  /**
1314
- * use-scroll-animate/components/cards — card effects (v2.4).
1314
+ * motionary/components/cards — card effects (v2.4).
1315
1315
  * `<usa-card effect="flip | holo | glass | border-glow | conic-border | lift |
1316
1316
  * spotlight | sheen | parallax-layers | expand">` (combinable),
1317
1317
  * `<usa-card-stack>` (swipeable deck), `<usa-sticky-stack>` (stacking on
@@ -1512,7 +1512,7 @@ interface ConfettiOptions {
1512
1512
  declare function haptic(pattern?: number | number[]): boolean;
1513
1513
 
1514
1514
  /**
1515
- * use-scroll-animate/components/click — click & tap effects (v2.5).
1515
+ * motionary/components/click — click & tap effects (v2.5).
1516
1516
  * `<usa-click>` (ripple, burst, confetti, squish, press-spring, shake),
1517
1517
  * `<usa-button>` (button click deformation: squash, wobble, gooey, dent;
1518
1518
  * shape morph; submit → loading → success), `<usa-icon-morph>`,
@@ -1720,7 +1720,7 @@ declare function setVariant(variant: Variant | null, root?: Element | null): voi
1720
1720
  type Placement = 'top' | 'bottom' | 'left' | 'right';
1721
1721
 
1722
1722
  /**
1723
- * use-scroll-animate/components/ui — animated UI components + style variants (v2.6).
1723
+ * motionary/components/ui — animated UI components + style variants (v2.6).
1724
1724
  * `<usa-tabs>`, `<usa-drawer>`, `<usa-bottom-sheet>`, `<usa-pull-refresh>`,
1725
1725
  * `<usa-fab>`, `<usa-navbar>`, `<usa-slider>`, `<usa-rating>`,
1726
1726
  * `<usa-tooltip>`, `<usa-popover>`, `<usa-badge>`, `<usa-avatar-stack>`,
@@ -1957,7 +1957,7 @@ declare function scrollToTarget(to: number | Element | string, options?: {
1957
1957
  }): Promise<void>;
1958
1958
 
1959
1959
  /**
1960
- * use-scroll-animate/components/page — page & app-wide effects (v2.7).
1960
+ * motionary/components/page — page & app-wide effects (v2.7).
1961
1961
  * Page transitions (`pageTransition()`, `enableMpaTransitions()`,
1962
1962
  * `themeTransition()`), `<usa-cursor>`, `smoothScroll()` / `scrollToTarget()`,
1963
1963
  * `<usa-fullpage>`, `<usa-loading-bar>` + `loadingBar`, `<usa-back-to-top>`,
@@ -2004,7 +2004,7 @@ interface UsaTimelineElement extends UsaElement {
2004
2004
  declare function defineTimeline(tag?: string): CustomElementConstructor | undefined;
2005
2005
 
2006
2006
  /**
2007
- * use-scroll-animate/components/timeline — choreography (v3.1).
2007
+ * motionary/components/timeline — choreography (v3.1).
2008
2008
  * `timeline()` chains, overlaps, labels, seeks, reverses and scroll-scrubs
2009
2009
  * WAAPI animations on one playhead; `<usa-timeline>` builds one from
2010
2010
  * `data-tl` children.
@@ -2125,7 +2125,7 @@ interface UsaPinchZoomElement extends UsaElement {
2125
2125
  declare function definePinchZoom(tag?: string): CustomElementConstructor | undefined;
2126
2126
 
2127
2127
  /**
2128
- * use-scroll-animate/components/gesture — unified gestures (v3.2).
2128
+ * motionary/components/gesture — unified gestures (v3.2).
2129
2129
  * `gesture()` recognises pan, swipe, pinch, long-press, tap and double-tap
2130
2130
  * with release velocities for springs; `<usa-swipeable>` (swipe-to-dismiss)
2131
2131
  * and `<usa-pinch-zoom>` are built on it.
@@ -2224,7 +2224,7 @@ declare function drawLines(root: Element, o?: {
2224
2224
  }): (progress: number) => void;
2225
2225
 
2226
2226
  /**
2227
- * use-scroll-animate/components/svg — SVG animation (v3.3).
2227
+ * motionary/components/svg — SVG animation (v3.3).
2228
2228
  * `<usa-draw>` (line drawing), `<usa-morph>` (path morph), `<usa-mask-reveal>`
2229
2229
  * (mask / clip-path reveals) and `<usa-anim-icon>` (animated icons), plus
2230
2230
  * `interpolatePath()`, `morphTo()`, `drawLines()`.
@@ -2345,7 +2345,7 @@ interface GLQuad {
2345
2345
  declare function glQuad(canvas: HTMLCanvasElement, frag: string): GLQuad | null;
2346
2346
 
2347
2347
  /**
2348
- * use-scroll-animate/components/webgl — lightweight canvas / WebGL (v3.4).
2348
+ * motionary/components/webgl — lightweight canvas / WebGL (v3.4).
2349
2349
  * `<usa-shader>` (shader backgrounds), `<usa-distort>` (hover image
2350
2350
  * distortion), `<usa-liquid>` (ripple images) on a tiny single-quad runner
2351
2351
  * (`glQuad()`), with graceful fallbacks when WebGL is unavailable.
@@ -2421,7 +2421,7 @@ declare function deviceTilt(cb: (t: TiltReading) => void, o?: {
2421
2421
  }): () => void;
2422
2422
 
2423
2423
  /**
2424
- * use-scroll-animate/components/depth — 3D (v3.5).
2424
+ * motionary/components/depth — 3D (v3.5).
2425
2425
  * `<usa-cube>` (CSS 3D cube), `<usa-depth>` (layered depth parallax driven by
2426
2426
  * pointer, device orientation or scroll) and `deviceTilt()`. The 3D ring
2427
2427
  * carousel is `<usa-carousel-3d>` in `components/cards`.
@@ -2508,7 +2508,7 @@ interface SharedOptions {
2508
2508
  declare function sharedTransition(update: () => void | Promise<void>, root?: ParentNode, o?: SharedOptions): Promise<void>;
2509
2509
 
2510
2510
  /**
2511
- * use-scroll-animate/components/layout — layout animation (v3.6).
2511
+ * motionary/components/layout — layout animation (v3.6).
2512
2512
  * `autoAnimate()` / `<usa-auto-animate>` (list & grid reflow),
2513
2513
  * `<usa-masonry>`, and `sharedTransition()` for shared-element transitions
2514
2514
  * (View Transitions API with a FLIP fallback).
@@ -2568,7 +2568,7 @@ declare function applyPack(name: PackName | string, root?: HTMLElement | Documen
2568
2568
  declare const PACK_PRIMITIVES: string[];
2569
2569
 
2570
2570
  /**
2571
- * use-scroll-animate/components/packs — effect packs (v3.9).
2571
+ * motionary/components/packs — effect packs (v3.9).
2572
2572
  * Ready-made motion for e-commerce, portfolio, dashboard, game UI and
2573
2573
  * landing pages: mark elements with `data-role` and apply a pack with
2574
2574
  * `<usa-pack name="…">` or `applyPack(name, root)`. Includes `flyToCart()`
@@ -2584,7 +2584,7 @@ declare global {
2584
2584
  }
2585
2585
 
2586
2586
  /**
2587
- * use-scroll-animate/components/tokens — motion design tokens (4.2).
2587
+ * motionary/components/tokens — motion design tokens (4.2).
2588
2588
  *
2589
2589
  * One source of truth for durations, easings and springs: as CSS custom
2590
2590
  * properties (`--usa-duration-fast`, `--usa-easing-emphasized`,
@@ -2592,7 +2592,7 @@ declare global {
2592
2592
  * from Figma Tokens (Tokens Studio) or Style Dictionary exports.
2593
2593
  *
2594
2594
  * ```ts
2595
- * import { applyMotionTokens, importMotionTokens, motionToken } from 'use-scroll-animate/components/tokens';
2595
+ * import { applyMotionTokens, importMotionTokens, motionToken } from 'motionary/components/tokens';
2596
2596
  * applyMotionTokens(importMotionTokens(await (await fetch('/tokens.json')).json()));
2597
2597
  * el.animate(frames, { duration: motionToken('duration', 'slow'), easing: motionToken('easing', 'emphasized') });
2598
2598
  * ```
@@ -2690,7 +2690,7 @@ declare function baselineReport(): BaselineFeature[];
2690
2690
  declare function warnBaseline(): string[];
2691
2691
 
2692
2692
  /**
2693
- * use-scroll-animate/components/a11y — accessibility toolkit (4.4).
2693
+ * motionary/components/a11y — accessibility toolkit (4.4).
2694
2694
  *
2695
2695
  * - Motion-sensitivity levels: `setMotionSensitivity('full' | 'gentle' | 'minimal' | 'static')`.
2696
2696
  * - Static alternatives: what every component shows when motion is off, and
@@ -2701,7 +2701,7 @@ declare function warnBaseline(): string[];
2701
2701
  * over every `<usa-*>` element — usable in your own tests too.
2702
2702
  *
2703
2703
  * ```ts
2704
- * import { setMotionSensitivity, announce, auditMotionA11y } from 'use-scroll-animate/components/a11y';
2704
+ * import { setMotionSensitivity, announce, auditMotionA11y } from 'motionary/components/a11y';
2705
2705
  * setMotionSensitivity('gentle', true); // no spins / zooms / parallax, remembered
2706
2706
  * announce('3 items added to cart'); // polite live region
2707
2707
  * expect(auditMotionA11y(document.body).errors).toEqual([]);
@@ -2774,7 +2774,7 @@ declare function auditMotionA11y(root: Element | Document): {
2774
2774
  declare const ALL_TAGS: string[];
2775
2775
 
2776
2776
  /**
2777
- * use-scroll-animate/components/perf — performance toolkit (4.5).
2777
+ * motionary/components/perf — performance toolkit (4.5).
2778
2778
  *
2779
2779
  * - One shared rAF scheduler for every component loop (`onFrame()`, `schedulerStats()`).
2780
2780
  * - Animation budget: `setAnimationBudget(n)` caps concurrent component
@@ -2783,7 +2783,7 @@ declare const ALL_TAGS: string[];
2783
2783
  * down (`low`, then a tighter budget) while the device struggles, restoring
2784
2784
  * it when frames recover.
2785
2785
  * - On-demand CSS: `loadCategoryStyles()` / `onDemandStyles()` — used by
2786
- * `use-scroll-animate/components/lite`, the build without inlined CSS.
2786
+ * `motionary/components/lite`, the build without inlined CSS.
2787
2787
  */
2788
2788
 
2789
2789
  interface AutoDegradeOptions {
@@ -2829,7 +2829,7 @@ declare function onDemandStyles(base: string): () => void;
2829
2829
  declare const loadedStyles: () => string[];
2830
2830
 
2831
2831
  /**
2832
- * use-scroll-animate/components/bridge — native shell bridges (4.7).
2832
+ * motionary/components/bridge — native shell bridges (4.7).
2833
2833
  *
2834
2834
  * Keeps the web UI in sync with the host app's system settings when it runs
2835
2835
  * inside **WinUI 3 / WPF (WebView2)**, **.NET MAUI** (WebView / HybridWebView)
@@ -2969,12 +2969,12 @@ declare function bindEffect(el: HTMLElement, name: string, options?: Record<stri
2969
2969
  declare const BUILTIN_EFFECTS: EffectDefinition[];
2970
2970
 
2971
2971
  /**
2972
- * use-scroll-animate/components/fx — unified plugin-style effects (5.0).
2972
+ * motionary/components/fx — unified plugin-style effects (5.0).
2973
2973
  * `registerEffect({ name, kind, run })`, `playEffect(el, name)`,
2974
2974
  * `bindEffect(el, name, { trigger })`, `<usa-fx effect trigger>`. Built-ins:
2975
2975
  * every timeline preset (`enter`), `pulse` · `pop` · `jelly` · `wiggle` ·
2976
2976
  * `heartbeat` · `bounce` · `flash` · `tada` · `shake` (attention),
2977
- * `burst` · `confetti` · `ripple` (click). More packs: `use-scroll-animate/components/effects`.
2977
+ * `burst` · `confetti` · `ripple` (click). More packs: `motionary/components/effects`.
2978
2978
  */
2979
2979
 
2980
2980
  /** Register the built-in effects (idempotent; `defineFxComponents()` calls it). */
@@ -36,22 +36,22 @@ import { definePacksComponents } from './components/packs.js';
36
36
  export { PACKS, PACK_PRIMITIVES, applyPack, countUp, definePack, flyToCart } from './components/packs.js';
37
37
  import { defineFxComponents } from './components/fx.js';
38
38
  export { BUILTIN_EFFECTS, EFFECT_KINDS, EFFECT_TRIGGERS, bindEffect, defineFx, getEffect, hasEffect, listEffects, playEffect, registerBuiltinEffects, registerEffect, registerEffects } from './components/fx.js';
39
- import { a as adoptVariants } from './chunks/variants-Bsevy6Xm.js';
40
- export { V as VARIANTS, s as setVariant } from './chunks/variants-Bsevy6Xm.js';
41
- import { c as canDefine } from './chunks/base-C3Sw9sAO.js';
42
- export { M as MOTION_SCALE, a as MOTION_SENSITIVITY_LEVELS, b as activeAnimations, d as adaptKeyframes, e as animateWithMotion, f as animationBudget, g as configureComponents, h as getMotionIntensity, i as getMotionSensitivity, m as motionScale, o as onFrame, p as prefersReducedMotion, s as schedulerStats, j as setAnimationBudget, w as withoutDeprecations } from './chunks/base-C3Sw9sAO.js';
39
+ import { a as adoptVariants } from './chunks/variants-VNscPeTD.js';
40
+ export { V as VARIANTS, s as setVariant } from './chunks/variants-VNscPeTD.js';
41
+ import { c as canDefine } from './chunks/base-Yno7N2eC.js';
42
+ export { M as MOTION_SCALE, a as MOTION_SENSITIVITY_LEVELS, b as activeAnimations, d as adaptKeyframes, e as animateWithMotion, f as animationBudget, g as configureComponents, h as getMotionIntensity, i as getMotionSensitivity, m as motionScale, o as onFrame, p as prefersReducedMotion, s as schedulerStats, j as setAnimationBudget, w as withoutDeprecations } from './chunks/base-Yno7N2eC.js';
43
43
  export { MOTION_TOKENS, applyMotionTokens, getMotionTokens, importMotionTokens, mergeMotionTokens, motionToken, motionTokensToCss, motionTokensToJSON, motionTokensToVars, motionVar, parseDuration, parseEasing, resolveDurationToken, resolveEasingToken } from './components/tokens.js';
44
44
  export { ALL_TAGS, LIVE_REGION_IDS, MOTION_SENSITIVITY, SENSITIVITY_CSS, STATIC_ALTERNATIVES, announce, auditMotionA11y, baselineReport, liveRegion, motionAllowed, restoreMotionSensitivity, setMotionSensitivity, staticAlternative, warnBaseline } from './components/a11y.js';
45
45
  export { autoDegrade, categoryOf, loadCategoryStyles, loadedStyles, onDemandStyles } from './components/perf.js';
46
46
  export { BRIDGE_PROTOCOL_VERSION, applyNativeSettings, connectNativeShell, detectNativeHost, parseNativeSettings, postToNative } from './components/bridge.js';
47
47
  export { C as COMPONENT_CATEGORIES } from './chunks/index-tags-DucKMQr_.js';
48
- export { S as SPRING_PRESETS, c as createSpring, l as linearEasing, p as projectInertia, r as resolveSpring, a as rubberBand, s as snapTo, b as spring, d as springEasing, e as springSamples, f as stepSpring, g as supportsLinearEasing } from './chunks/spring-CckMe3x0.js';
49
- export { T as TIMELINE_PRESETS, r as resolvePosition, s as supportsNativeScrub, t as timeline } from './chunks/core-DN3hHbHh.js';
50
- export { g as gesture, p as pinchScale, s as swipeDirection } from './chunks/core-BTf__I-8.js';
51
- export { h as haptic } from './chunks/fx-ChjxrMBo.js';
48
+ export { S as SPRING_PRESETS, c as createSpring, l as linearEasing, p as projectInertia, r as resolveSpring, a as rubberBand, s as snapTo, b as spring, d as springEasing, e as springSamples, f as stepSpring, g as supportsLinearEasing } from './chunks/spring-DfQO5USi.js';
49
+ export { T as TIMELINE_PRESETS, r as resolvePosition, s as supportsNativeScrub, t as timeline } from './chunks/core-CUGCsMsJ.js';
50
+ export { g as gesture, p as pinchScale, s as swipeDirection } from './chunks/core-BIOaYdgN.js';
51
+ export { h as haptic } from './chunks/fx-BqDeFywO.js';
52
52
 
53
53
  /**
54
- * use-scroll-animate/components
54
+ * motionary/components
55
55
  *
56
56
  * Framework-agnostic, dependency-free animated UI components built on
57
57
  * Custom Elements + CSS + the Web Animations API. They run in any browser
@@ -59,10 +59,10 @@ export { h as haptic } from './chunks/fx-ChjxrMBo.js';
59
59
  * (WebView2), WinUI 3 / WPF / WinForms with WebView2, and installed PWAs.
60
60
  *
61
61
  * ```js
62
- * import { defineComponents } from 'use-scroll-animate/components';
62
+ * import { defineComponents } from 'motionary/components';
63
63
  * defineComponents(); // registers every <usa-*> element
64
64
  * // or only what you use (tree-shakable):
65
- * import { defineTypewriter } from 'use-scroll-animate/components/text';
65
+ * import { defineTypewriter } from 'motionary/components/text';
66
66
  * ```
67
67
  *
68
68
  * Importing has no side effects and is SSR-safe; nothing is registered
@@ -1 +1 @@
1
- {"version":3,"file":"components.js","sources":["../src/components/index.ts"],"sourcesContent":["/**\n * use-scroll-animate/components\n *\n * Framework-agnostic, dependency-free animated UI components built on\n * Custom Elements + CSS + the Web Animations API. They run in any browser\n * and in Windows desktop apps that render with a web view: Electron, Tauri\n * (WebView2), WinUI 3 / WPF / WinForms with WebView2, and installed PWAs.\n *\n * ```js\n * import { defineComponents } from 'use-scroll-animate/components';\n * defineComponents(); // registers every <usa-*> element\n * // or only what you use (tree-shakable):\n * import { defineTypewriter } from 'use-scroll-animate/components/text';\n * ```\n *\n * Importing has no side effects and is SSR-safe; nothing is registered\n * until a `define*()` function runs in a browser.\n *\n * @license MIT\n */\nimport { defineRevealComponents } from './reveal/index';\nimport { defineTextComponents } from './text/index';\nimport { defineInteractionComponents } from './interaction/index';\nimport { defineFeedbackComponents } from './feedback/index';\nimport { defineBackgroundComponents } from './background/index';\nimport { defineTransitionComponents } from './transitions/index';\nimport { definePhysicsComponents } from './physics/index';\nimport { defineCardComponents } from './cards/index';\nimport { defineClickComponents } from './click/index';\nimport { defineUiComponents } from './ui/index';\nimport { definePageComponents } from './page/index';\nimport { defineTimelineComponents } from './timeline/index';\nimport { defineGestureComponents } from './gesture/index';\nimport { defineSvgComponents } from './svg/index';\nimport { defineWebglComponents } from './webgl/index';\nimport { defineDepthComponents } from './depth/index';\nimport { defineLayoutComponents } from './layout/index';\nimport { definePacksComponents } from './packs/index';\nimport { defineFxComponents } from './fx/index';\nimport { adoptVariants } from './ui/variants';\nimport { canDefine } from './base';\nexport { configureComponents, prefersReducedMotion, getMotionIntensity, motionScale, animateWithMotion, withoutDeprecations, MOTION_SCALE } from './base';\nexport type { ComponentsConfig, UsaElement, MotionIntensity, MotionSensitivity } from './base';\n\nexport * from './reveal/index';\nexport * from './text/index';\nexport * from './interaction/index';\nexport * from './feedback/index';\nexport * from './background/index';\nexport * from './transitions/index';\nexport * from './physics/index';\nexport * from './cards/index';\nexport * from './click/index';\nexport * from './ui/index';\nexport * from './page/index';\nexport * from './timeline/index';\nexport * from './gesture/index';\nexport * from './svg/index';\nexport * from './webgl/index';\nexport * from './depth/index';\nexport * from './layout/index';\nexport * from './packs/index';\nexport * from './tokens/index';\nexport * from './a11y/index';\nexport * from './perf/index';\nexport * from './bridge/index';\nexport * from './fx/index';\n\nexport { COMPONENT_CATEGORIES } from './index-tags';\nexport type { ComponentCategory } from './index-tags';\nimport { COMPONENT_CATEGORIES, type ComponentCategory } from './index-tags';\n\nconst BY_CATEGORY: Record<ComponentCategory, () => void> = {\n reveal: defineRevealComponents,\n text: defineTextComponents,\n interaction: defineInteractionComponents,\n feedback: defineFeedbackComponents,\n background: defineBackgroundComponents,\n transitions: defineTransitionComponents,\n physics: definePhysicsComponents,\n cards: defineCardComponents,\n click: defineClickComponents,\n ui: defineUiComponents,\n page: definePageComponents,\n timeline: defineTimelineComponents,\n gesture: defineGestureComponents,\n svg: defineSvgComponents,\n webgl: defineWebglComponents,\n depth: defineDepthComponents,\n layout: defineLayoutComponents,\n packs: definePacksComponents,\n fx: defineFxComponents,\n};\n\n/**\n * Register every `<usa-*>` component (or only the given categories).\n * Safe to call more than once and on the server (no-op without DOM).\n */\nexport function defineComponents(categories?: ComponentCategory[]): void {\n if (canDefine()) adoptVariants();\n (categories || (Object.keys(BY_CATEGORY) as ComponentCategory[])).forEach((c) => BY_CATEGORY[c]?.());\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;AAmBG;AAqDH,MAAM,WAAW,GAA0C;AACzD,IAAA,MAAM,EAAE,sBAAsB;AAC9B,IAAA,IAAI,EAAE,oBAAoB;AAC1B,IAAA,WAAW,EAAE,2BAA2B;AACxC,IAAA,QAAQ,EAAE,wBAAwB;AAClC,IAAA,UAAU,EAAE,0BAA0B;AACtC,IAAA,WAAW,EAAE,0BAA0B;AACvC,IAAA,OAAO,EAAE,uBAAuB;AAChC,IAAA,KAAK,EAAE,oBAAoB;AAC3B,IAAA,KAAK,EAAE,qBAAqB;AAC5B,IAAA,EAAE,EAAE,kBAAkB;AACtB,IAAA,IAAI,EAAE,oBAAoB;AAC1B,IAAA,QAAQ,EAAE,wBAAwB;AAClC,IAAA,OAAO,EAAE,uBAAuB;AAChC,IAAA,GAAG,EAAE,mBAAmB;AACxB,IAAA,KAAK,EAAE,qBAAqB;AAC5B,IAAA,KAAK,EAAE,qBAAqB;AAC5B,IAAA,MAAM,EAAE,sBAAsB;AAC9B,IAAA,KAAK,EAAE,qBAAqB;AAC5B,IAAA,EAAE,EAAE,kBAAkB;CACvB;AAED;;;AAGG;AACG,SAAU,gBAAgB,CAAC,UAAgC,EAAA;AAC/D,IAAA,IAAI,SAAS,EAAE;AAAE,QAAA,aAAa,EAAE;IAChC,CAAC,UAAU,IAAK,MAAM,CAAC,IAAI,CAAC,WAAW,CAAyB,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC;AACtG;;;;"}
1
+ {"version":3,"file":"components.js","sources":["../src/components/index.ts"],"sourcesContent":["/**\n * motionary/components\n *\n * Framework-agnostic, dependency-free animated UI components built on\n * Custom Elements + CSS + the Web Animations API. They run in any browser\n * and in Windows desktop apps that render with a web view: Electron, Tauri\n * (WebView2), WinUI 3 / WPF / WinForms with WebView2, and installed PWAs.\n *\n * ```js\n * import { defineComponents } from 'motionary/components';\n * defineComponents(); // registers every <usa-*> element\n * // or only what you use (tree-shakable):\n * import { defineTypewriter } from 'motionary/components/text';\n * ```\n *\n * Importing has no side effects and is SSR-safe; nothing is registered\n * until a `define*()` function runs in a browser.\n *\n * @license MIT\n */\nimport { defineRevealComponents } from './reveal/index';\nimport { defineTextComponents } from './text/index';\nimport { defineInteractionComponents } from './interaction/index';\nimport { defineFeedbackComponents } from './feedback/index';\nimport { defineBackgroundComponents } from './background/index';\nimport { defineTransitionComponents } from './transitions/index';\nimport { definePhysicsComponents } from './physics/index';\nimport { defineCardComponents } from './cards/index';\nimport { defineClickComponents } from './click/index';\nimport { defineUiComponents } from './ui/index';\nimport { definePageComponents } from './page/index';\nimport { defineTimelineComponents } from './timeline/index';\nimport { defineGestureComponents } from './gesture/index';\nimport { defineSvgComponents } from './svg/index';\nimport { defineWebglComponents } from './webgl/index';\nimport { defineDepthComponents } from './depth/index';\nimport { defineLayoutComponents } from './layout/index';\nimport { definePacksComponents } from './packs/index';\nimport { defineFxComponents } from './fx/index';\nimport { adoptVariants } from './ui/variants';\nimport { canDefine } from './base';\nexport { configureComponents, prefersReducedMotion, getMotionIntensity, motionScale, animateWithMotion, withoutDeprecations, MOTION_SCALE } from './base';\nexport type { ComponentsConfig, UsaElement, MotionIntensity, MotionSensitivity } from './base';\n\nexport * from './reveal/index';\nexport * from './text/index';\nexport * from './interaction/index';\nexport * from './feedback/index';\nexport * from './background/index';\nexport * from './transitions/index';\nexport * from './physics/index';\nexport * from './cards/index';\nexport * from './click/index';\nexport * from './ui/index';\nexport * from './page/index';\nexport * from './timeline/index';\nexport * from './gesture/index';\nexport * from './svg/index';\nexport * from './webgl/index';\nexport * from './depth/index';\nexport * from './layout/index';\nexport * from './packs/index';\nexport * from './tokens/index';\nexport * from './a11y/index';\nexport * from './perf/index';\nexport * from './bridge/index';\nexport * from './fx/index';\n\nexport { COMPONENT_CATEGORIES } from './index-tags';\nexport type { ComponentCategory } from './index-tags';\nimport { COMPONENT_CATEGORIES, type ComponentCategory } from './index-tags';\n\nconst BY_CATEGORY: Record<ComponentCategory, () => void> = {\n reveal: defineRevealComponents,\n text: defineTextComponents,\n interaction: defineInteractionComponents,\n feedback: defineFeedbackComponents,\n background: defineBackgroundComponents,\n transitions: defineTransitionComponents,\n physics: definePhysicsComponents,\n cards: defineCardComponents,\n click: defineClickComponents,\n ui: defineUiComponents,\n page: definePageComponents,\n timeline: defineTimelineComponents,\n gesture: defineGestureComponents,\n svg: defineSvgComponents,\n webgl: defineWebglComponents,\n depth: defineDepthComponents,\n layout: defineLayoutComponents,\n packs: definePacksComponents,\n fx: defineFxComponents,\n};\n\n/**\n * Register every `<usa-*>` component (or only the given categories).\n * Safe to call more than once and on the server (no-op without DOM).\n */\nexport function defineComponents(categories?: ComponentCategory[]): void {\n if (canDefine()) adoptVariants();\n (categories || (Object.keys(BY_CATEGORY) as ComponentCategory[])).forEach((c) => BY_CATEGORY[c]?.());\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;AAmBG;AAqDH,MAAM,WAAW,GAA0C;AACzD,IAAA,MAAM,EAAE,sBAAsB;AAC9B,IAAA,IAAI,EAAE,oBAAoB;AAC1B,IAAA,WAAW,EAAE,2BAA2B;AACxC,IAAA,QAAQ,EAAE,wBAAwB;AAClC,IAAA,UAAU,EAAE,0BAA0B;AACtC,IAAA,WAAW,EAAE,0BAA0B;AACvC,IAAA,OAAO,EAAE,uBAAuB;AAChC,IAAA,KAAK,EAAE,oBAAoB;AAC3B,IAAA,KAAK,EAAE,qBAAqB;AAC5B,IAAA,EAAE,EAAE,kBAAkB;AACtB,IAAA,IAAI,EAAE,oBAAoB;AAC1B,IAAA,QAAQ,EAAE,wBAAwB;AAClC,IAAA,OAAO,EAAE,uBAAuB;AAChC,IAAA,GAAG,EAAE,mBAAmB;AACxB,IAAA,KAAK,EAAE,qBAAqB;AAC5B,IAAA,KAAK,EAAE,qBAAqB;AAC5B,IAAA,MAAM,EAAE,sBAAsB;AAC9B,IAAA,KAAK,EAAE,qBAAqB;AAC5B,IAAA,EAAE,EAAE,kBAAkB;CACvB;AAED;;;AAGG;AACG,SAAU,gBAAgB,CAAC,UAAgC,EAAA;AAC/D,IAAA,IAAI,SAAS,EAAE;AAAE,QAAA,aAAa,EAAE;IAChC,CAAC,UAAU,IAAK,MAAM,CAAC,IAAI,CAAC,WAAW,CAAyB,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC;AACtG;;;;"}