motionary 10.1.0 → 10.2.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 (270) hide show
  1. package/AGENTS.md +61 -0
  2. package/CHANGELOG.md +14 -0
  3. package/README.md +37 -0
  4. package/dist/chunks/{keyframes-CyH_abhI.js → keyframes-W-474DMc.js} +2 -2
  5. package/dist/chunks/{keyframes-CyH_abhI.js.map → keyframes-W-474DMc.js.map} +1 -1
  6. package/dist/chunks/{keyframes-cUdsXSXQ.cjs → keyframes-ZheOkpt0.cjs} +2 -2
  7. package/dist/chunks/{keyframes-cUdsXSXQ.cjs.map → keyframes-ZheOkpt0.cjs.map} +1 -1
  8. package/dist/chunks/{registry-jF8VIA_9.js → registry-BIEjKngP.js} +2 -2
  9. package/dist/chunks/{registry-jF8VIA_9.js.map → registry-BIEjKngP.js.map} +1 -1
  10. package/dist/chunks/{registry-C0xLNq3-.cjs → registry-eJgpFAzI.cjs} +2 -2
  11. package/dist/chunks/{registry-C0xLNq3-.cjs.map → registry-eJgpFAzI.cjs.map} +1 -1
  12. package/dist/chunks/ticker-CM_56oVy.js +70 -0
  13. package/dist/chunks/ticker-CM_56oVy.js.map +1 -0
  14. package/dist/chunks/ticker-D4o6enH0.cjs +72 -0
  15. package/dist/chunks/ticker-D4o6enH0.cjs.map +1 -0
  16. package/dist/chunks/{tween-JEthWrjo.cjs → tween-CBuWYpI-.cjs} +5 -72
  17. package/dist/chunks/tween-CBuWYpI-.cjs.map +1 -0
  18. package/dist/chunks/{tween-DDObu9iA.js → tween-CqX1JBuj.js} +5 -71
  19. package/dist/chunks/tween-CqX1JBuj.js.map +1 -0
  20. package/dist/components/core.cjs +106 -0
  21. package/dist/components/core.cjs.map +1 -1
  22. package/dist/components/core.d.cts +44 -2
  23. package/dist/components/core.d.ts +44 -2
  24. package/dist/components/core.js +105 -1
  25. package/dist/components/core.js.map +1 -1
  26. package/dist/components/widgets.cjs +401 -198
  27. package/dist/components/widgets.cjs.map +1 -1
  28. package/dist/components/widgets.d.cts +146 -2
  29. package/dist/components/widgets.d.ts +146 -2
  30. package/dist/components/widgets.js +399 -199
  31. package/dist/components/widgets.js.map +1 -1
  32. package/dist/llms-full.txt +98 -1
  33. package/dist/llms.txt +6 -2
  34. package/dist/manifest.json +259 -1
  35. package/dist/runtime/format-css.cjs +4 -3
  36. package/dist/runtime/format-css.cjs.map +1 -1
  37. package/dist/runtime/format-css.js +4 -3
  38. package/dist/runtime/format-css.js.map +1 -1
  39. package/dist/runtime/format-motion.cjs +4 -3
  40. package/dist/runtime/format-motion.cjs.map +1 -1
  41. package/dist/runtime/format-motion.js +4 -3
  42. package/dist/runtime/format-motion.js.map +1 -1
  43. package/dist/runtime/format-svg.cjs +457 -0
  44. package/dist/runtime/format-svg.cjs.map +1 -0
  45. package/dist/runtime/format-svg.d.cts +214 -0
  46. package/dist/runtime/format-svg.d.ts +214 -0
  47. package/dist/runtime/format-svg.iife.js +2 -0
  48. package/dist/runtime/format-svg.iife.js.map +1 -0
  49. package/dist/runtime/format-svg.js +446 -0
  50. package/dist/runtime/format-svg.js.map +1 -0
  51. package/dist/runtime/scroll.cjs +301 -0
  52. package/dist/runtime/scroll.cjs.map +1 -0
  53. package/dist/runtime/scroll.d.cts +236 -0
  54. package/dist/runtime/scroll.d.ts +236 -0
  55. package/dist/runtime/scroll.iife.js +2 -0
  56. package/dist/runtime/scroll.iife.js.map +1 -0
  57. package/dist/runtime/scroll.js +292 -0
  58. package/dist/runtime/scroll.js.map +1 -0
  59. package/dist/runtime.cjs +5 -4
  60. package/dist/runtime.cjs.map +1 -1
  61. package/dist/runtime.d.cts +1 -1
  62. package/dist/runtime.d.ts +1 -1
  63. package/dist/runtime.iife.js +1 -1
  64. package/dist/runtime.iife.js.map +1 -1
  65. package/dist/runtime.js +5 -4
  66. package/dist/runtime.js.map +1 -1
  67. package/dist/widgets.umd.js +1 -1
  68. package/dist/widgets.umd.js.map +1 -1
  69. package/docs/ROADMAP.md +1 -1
  70. package/docs/ai-prompt-guide.md +54 -0
  71. package/docs/components/README.md +253 -0
  72. package/docs/components/usa-accordion.md +38 -0
  73. package/docs/components/usa-acrylic.md +38 -0
  74. package/docs/components/usa-add-to-cart.md +40 -0
  75. package/docs/components/usa-ambient.md +32 -0
  76. package/docs/components/usa-anim-icon.md +34 -0
  77. package/docs/components/usa-audio.md +38 -0
  78. package/docs/components/usa-aurora.md +36 -0
  79. package/docs/components/usa-auto-animate.md +44 -0
  80. package/docs/components/usa-auto-skeleton.md +38 -0
  81. package/docs/components/usa-avatar-stack.md +38 -0
  82. package/docs/components/usa-back-to-top.md +32 -0
  83. package/docs/components/usa-badge-wall.md +39 -0
  84. package/docs/components/usa-badge.md +36 -0
  85. package/docs/components/usa-bar-chart.md +33 -0
  86. package/docs/components/usa-bg-generator.md +32 -0
  87. package/docs/components/usa-blobs.md +32 -0
  88. package/docs/components/usa-bottom-sheet.md +32 -0
  89. package/docs/components/usa-button.md +78 -0
  90. package/docs/components/usa-card-stack.md +40 -0
  91. package/docs/components/usa-card.md +94 -0
  92. package/docs/components/usa-carousel-3d.md +40 -0
  93. package/docs/components/usa-carousel.md +40 -0
  94. package/docs/components/usa-cart-drawer.md +33 -0
  95. package/docs/components/usa-chapter-nav.md +40 -0
  96. package/docs/components/usa-chat-composer.md +33 -0
  97. package/docs/components/usa-check.md +32 -0
  98. package/docs/components/usa-checkbox.md +32 -0
  99. package/docs/components/usa-click.md +36 -0
  100. package/docs/components/usa-clock-control.md +37 -0
  101. package/docs/components/usa-code-export.md +36 -0
  102. package/docs/components/usa-color-picker.md +32 -0
  103. package/docs/components/usa-command-palette.md +39 -0
  104. package/docs/components/usa-compare.md +38 -0
  105. package/docs/components/usa-countdown.md +32 -0
  106. package/docs/components/usa-counter.md +32 -0
  107. package/docs/components/usa-cube-gallery.md +40 -0
  108. package/docs/components/usa-cube.md +36 -0
  109. package/docs/components/usa-cursor.md +32 -0
  110. package/docs/components/usa-date-picker.md +32 -0
  111. package/docs/components/usa-depth.md +44 -0
  112. package/docs/components/usa-dialog.md +40 -0
  113. package/docs/components/usa-disclosure.md +38 -0
  114. package/docs/components/usa-distort.md +36 -0
  115. package/docs/components/usa-dock.md +40 -0
  116. package/docs/components/usa-dot-network.md +32 -0
  117. package/docs/components/usa-double-tap.md +36 -0
  118. package/docs/components/usa-draggable.md +38 -0
  119. package/docs/components/usa-draw.md +36 -0
  120. package/docs/components/usa-drawer.md +34 -0
  121. package/docs/components/usa-equalizer.md +33 -0
  122. package/docs/components/usa-fab.md +40 -0
  123. package/docs/components/usa-festival-banner.md +32 -0
  124. package/docs/components/usa-field.md +34 -0
  125. package/docs/components/usa-file-drop.md +35 -0
  126. package/docs/components/usa-fullpage.md +38 -0
  127. package/docs/components/usa-fx.md +851 -0
  128. package/docs/components/usa-gauge.md +32 -0
  129. package/docs/components/usa-gen-art.md +32 -0
  130. package/docs/components/usa-gesture-fx.md +36 -0
  131. package/docs/components/usa-gesture-sticker.md +36 -0
  132. package/docs/components/usa-glitch.md +32 -0
  133. package/docs/components/usa-globe.md +33 -0
  134. package/docs/components/usa-gradient-text.md +32 -0
  135. package/docs/components/usa-grain.md +36 -0
  136. package/docs/components/usa-grid-glow.md +36 -0
  137. package/docs/components/usa-gyro-card.md +38 -0
  138. package/docs/components/usa-handwriting.md +32 -0
  139. package/docs/components/usa-hero-video.md +38 -0
  140. package/docs/components/usa-hold.md +32 -0
  141. package/docs/components/usa-hud-panel.md +38 -0
  142. package/docs/components/usa-hydrate.md +42 -0
  143. package/docs/components/usa-icon-morph.md +34 -0
  144. package/docs/components/usa-install-button.md +32 -0
  145. package/docs/components/usa-kanban.md +46 -0
  146. package/docs/components/usa-keyframe-editor.md +37 -0
  147. package/docs/components/usa-kpi.md +32 -0
  148. package/docs/components/usa-leaderboard.md +41 -0
  149. package/docs/components/usa-like.md +32 -0
  150. package/docs/components/usa-liquid-nav.md +36 -0
  151. package/docs/components/usa-liquid.md +36 -0
  152. package/docs/components/usa-loading-bar.md +35 -0
  153. package/docs/components/usa-location-card.md +34 -0
  154. package/docs/components/usa-lottie-icon.md +34 -0
  155. package/docs/components/usa-lottie.md +32 -0
  156. package/docs/components/usa-lyrics.md +38 -0
  157. package/docs/components/usa-magnetic.md +32 -0
  158. package/docs/components/usa-marquee.md +38 -0
  159. package/docs/components/usa-mask-reveal.md +36 -0
  160. package/docs/components/usa-masonry-flow.md +42 -0
  161. package/docs/components/usa-masonry.md +38 -0
  162. package/docs/components/usa-menu-toggle.md +34 -0
  163. package/docs/components/usa-menu.md +44 -0
  164. package/docs/components/usa-message-list.md +39 -0
  165. package/docs/components/usa-milestones.md +40 -0
  166. package/docs/components/usa-modal.md +42 -0
  167. package/docs/components/usa-morph.md +34 -0
  168. package/docs/components/usa-motion-inspector.md +32 -0
  169. package/docs/components/usa-motion-prefs.md +32 -0
  170. package/docs/components/usa-motion-spec.md +32 -0
  171. package/docs/components/usa-motion-switch.md +34 -0
  172. package/docs/components/usa-motion-theme.md +40 -0
  173. package/docs/components/usa-motion.md +42 -0
  174. package/docs/components/usa-music-player.md +36 -0
  175. package/docs/components/usa-native-preview.md +36 -0
  176. package/docs/components/usa-nav-morph.md +40 -0
  177. package/docs/components/usa-navbar.md +36 -0
  178. package/docs/components/usa-notification-bell.md +37 -0
  179. package/docs/components/usa-odometer.md +34 -0
  180. package/docs/components/usa-organic-card.md +36 -0
  181. package/docs/components/usa-otp.md +33 -0
  182. package/docs/components/usa-overscroll.md +36 -0
  183. package/docs/components/usa-pack.md +111 -0
  184. package/docs/components/usa-pagination.md +32 -0
  185. package/docs/components/usa-panorama.md +32 -0
  186. package/docs/components/usa-particles.md +32 -0
  187. package/docs/components/usa-pause-all.md +32 -0
  188. package/docs/components/usa-perf-monitor.md +32 -0
  189. package/docs/components/usa-pinch-zoom.md +36 -0
  190. package/docs/components/usa-player.md +38 -0
  191. package/docs/components/usa-plugin-card.md +61 -0
  192. package/docs/components/usa-plugin-store.md +36 -0
  193. package/docs/components/usa-popover.md +38 -0
  194. package/docs/components/usa-post-fx.md +36 -0
  195. package/docs/components/usa-presence.md +36 -0
  196. package/docs/components/usa-press.md +32 -0
  197. package/docs/components/usa-prize-wheel.md +32 -0
  198. package/docs/components/usa-product-gallery.md +40 -0
  199. package/docs/components/usa-progress-ring.md +38 -0
  200. package/docs/components/usa-progress.md +34 -0
  201. package/docs/components/usa-prop-panel.md +34 -0
  202. package/docs/components/usa-pull-cord.md +32 -0
  203. package/docs/components/usa-pull-refresh.md +37 -0
  204. package/docs/components/usa-radar.md +32 -0
  205. package/docs/components/usa-reactions.md +32 -0
  206. package/docs/components/usa-red-envelope.md +32 -0
  207. package/docs/components/usa-retro-button.md +34 -0
  208. package/docs/components/usa-reveal.md +36 -0
  209. package/docs/components/usa-ripple.md +32 -0
  210. package/docs/components/usa-scene.md +38 -0
  211. package/docs/components/usa-scramble.md +32 -0
  212. package/docs/components/usa-scroll-highlight.md +34 -0
  213. package/docs/components/usa-scroll-progress.md +36 -0
  214. package/docs/components/usa-scroll-scene.md +66 -0
  215. package/docs/components/usa-scrolly.md +40 -0
  216. package/docs/components/usa-segmented.md +40 -0
  217. package/docs/components/usa-shader.md +74 -0
  218. package/docs/components/usa-sheet.md +42 -0
  219. package/docs/components/usa-shimmer-text.md +32 -0
  220. package/docs/components/usa-shortcut.md +34 -0
  221. package/docs/components/usa-skeleton-reveal.md +42 -0
  222. package/docs/components/usa-skeleton.md +36 -0
  223. package/docs/components/usa-sketch-chart.md +32 -0
  224. package/docs/components/usa-slider.md +32 -0
  225. package/docs/components/usa-sparkline.md +32 -0
  226. package/docs/components/usa-spatial-card.md +40 -0
  227. package/docs/components/usa-spinner.md +34 -0
  228. package/docs/components/usa-splash.md +36 -0
  229. package/docs/components/usa-split-text.md +32 -0
  230. package/docs/components/usa-spotlight.md +40 -0
  231. package/docs/components/usa-spring.md +42 -0
  232. package/docs/components/usa-stagger.md +40 -0
  233. package/docs/components/usa-star-rating.md +34 -0
  234. package/docs/components/usa-stepper.md +42 -0
  235. package/docs/components/usa-sticky-stack.md +40 -0
  236. package/docs/components/usa-sticky-wall.md +40 -0
  237. package/docs/components/usa-stories.md +38 -0
  238. package/docs/components/usa-story.md +80 -0
  239. package/docs/components/usa-suggestion-chips.md +32 -0
  240. package/docs/components/usa-swipe-deck.md +40 -0
  241. package/docs/components/usa-swipeable.md +36 -0
  242. package/docs/components/usa-switch.md +32 -0
  243. package/docs/components/usa-tab-bar.md +46 -0
  244. package/docs/components/usa-tabs.md +40 -0
  245. package/docs/components/usa-terminal.md +38 -0
  246. package/docs/components/usa-text-rotate.md +32 -0
  247. package/docs/components/usa-theme-surface.md +36 -0
  248. package/docs/components/usa-theme-switcher.md +32 -0
  249. package/docs/components/usa-tilt.md +36 -0
  250. package/docs/components/usa-timeline.md +40 -0
  251. package/docs/components/usa-tip.md +44 -0
  252. package/docs/components/usa-toast-stack.md +36 -0
  253. package/docs/components/usa-toaster.md +36 -0
  254. package/docs/components/usa-typewriter.md +32 -0
  255. package/docs/components/usa-upload-progress.md +33 -0
  256. package/docs/components/usa-video-card.md +40 -0
  257. package/docs/components/usa-view-switch.md +38 -0
  258. package/docs/components/usa-voice-button.md +33 -0
  259. package/docs/components/usa-volume-knob.md +32 -0
  260. package/docs/components/usa-water-ripple.md +36 -0
  261. package/docs/components/usa-wave-text.md +32 -0
  262. package/docs/components/usa-weather-card.md +32 -0
  263. package/docs/components/usa-worker-canvas.md +32 -0
  264. package/docs/components/usa-xp-bar.md +33 -0
  265. package/docs/components.md +50 -0
  266. package/docs/runtime/format-svg.md +62 -0
  267. package/docs/runtime/scroll.md +61 -0
  268. package/package.json +25 -3
  269. package/dist/chunks/tween-DDObu9iA.js.map +0 -1
  270. package/dist/chunks/tween-JEthWrjo.cjs.map +0 -1
@@ -0,0 +1,851 @@
1
+ # `<usa-fx>` — Attention seekers
2
+
3
+ > Generated from the source and the gallery catalog by `scripts/gen-component-docs.mjs` (same data as [components.json](https://harrisoncn.github.io/Motionary/components.json) and [llms-full.txt](https://harrisoncn.github.io/Motionary/llms-full.txt)).
4
+
5
+ <usa-fx> plays any registered effect on its child: pulse, pop, jelly, wiggle, heartbeat, bounce, flash (≤ 2 per second), tada, shake. Click the button.
6
+
7
+ - **Category:** fx
8
+ - **Import:** `import { defineFx } from 'motionary/components/fx'` then `defineFx();`
9
+ - **CDN:** `<script src="https://unpkg.com/motionary@10/dist/components.umd.js"></script>`
10
+ - **Attributes:** `effect`, `trigger`, `options`
11
+ - **Events:** —
12
+ - **Slots:** —
13
+ - **Methods:** `play()`
14
+ - **Source:** [src/components/fx/fx-el.ts](../../src/components/fx/fx-el.ts)
15
+
16
+ ## Minimal example
17
+
18
+ ```html
19
+ <usa-fx effect="jelly" trigger="click">
20
+ <button>Press me</button>
21
+ </usa-fx>
22
+ ```
23
+
24
+ ## ES module
25
+
26
+ ```js
27
+ import { defineFx } from 'motionary/components/fx';
28
+
29
+ defineFx(); // registers <usa-fx>
30
+
31
+ /* then use it in your HTML:
32
+ <usa-fx effect="jelly" trigger="click">
33
+ <button>Press me</button>
34
+ </usa-fx>
35
+ */
36
+ ```
37
+
38
+ ## Variants
39
+
40
+ ### Attention seekers
41
+
42
+ <usa-fx> plays any registered effect on its child: pulse, pop, jelly, wiggle, heartbeat, bounce, flash (≤ 2 per second), tada, shake. Click the button.
43
+
44
+ ```html
45
+ <usa-fx effect="jelly" trigger="click">
46
+ <button>Press me</button>
47
+ </usa-fx>
48
+ ```
49
+
50
+ ### Click effects
51
+
52
+ Registered click effects — burst, confetti and ink ripple — start at the pointer.
53
+
54
+ ```html
55
+ <usa-fx effect="confetti">
56
+ <button>Celebrate</button>
57
+ </usa-fx>
58
+ ```
59
+
60
+ ### Entrances on scroll
61
+
62
+ Every timeline preset is also an enter effect: trigger="enter" plays it when the element scrolls into view (once).
63
+
64
+ ```html
65
+ <usa-fx effect="fade-up" trigger="enter">
66
+ <h2>Hello</h2>
67
+ </usa-fx>
68
+ ```
69
+
70
+ ### Holographic card
71
+
72
+ 5.1: a rainbow foil sheen and 3D tilt follow the pointer (trigger="load" keeps it on). Under reduced motion the sheen stays static.
73
+
74
+ ```html
75
+ <usa-fx effect="holo" trigger="load">
76
+ <article class="card">…</article>
77
+ </usa-fx>
78
+ ```
79
+
80
+ ### Card moves
81
+
82
+ 5.1: glare sweep, book-open peek, card fan (children spread like a hand of cards), topple-and-spring — hover the card.
83
+
84
+ ```html
85
+ <usa-fx effect="glare-sweep" trigger="hover">
86
+ <article class="card">…</article>
87
+ </usa-fx>
88
+ ```
89
+
90
+ ### Click effects 2.0
91
+
92
+ 5.1: shockwave rings, ink splash, spinning star burst, jelly press, water ring ripple and emoji rain — all from the click point.
93
+
94
+ ```html
95
+ <usa-fx effect="shockwave">
96
+ <button>Boom</button>
97
+ </usa-fx>
98
+ ```
99
+
100
+ ### Bounce & physics
101
+
102
+ 5.2: spring-solved bounce-in, rubber band, drop-and-bounce under gravity, damped bell swing — click the button.
103
+
104
+ ```html
105
+ <usa-fx effect="drop-bounce" trigger="enter">
106
+ <img src="badge.svg" alt="New">
107
+ </usa-fx>
108
+ ```
109
+
110
+ ### Gravity text
111
+
112
+ 5.2: every character drops in under gravity and bounces, staggered; the text keeps an aria-label.
113
+
114
+ ```html
115
+ <usa-fx effect="gravity-text" trigger="enter">
116
+ <h2>Falling letters</h2>
117
+ </usa-fx>
118
+ ```
119
+
120
+ ### Elastic hover & spring follow
121
+
122
+ 5.2: elastic-hover lifts with a springy overshoot; spring-follow chases the pointer across its parent (both persistent, trigger="load").
123
+
124
+ ```html
125
+ <usa-fx effect="spring-follow" trigger="load">
126
+ <span class="dot"></span>
127
+ </usa-fx>
128
+ ```
129
+
130
+ ### Page transitions
131
+
132
+ 5.3: curtain, iris (closes on the click point), pixel dissolve and venetian blinds — cover the page, call onCovered() (swap your route there), then reveal. Reduced motion: a quick cross-fade.
133
+
134
+ ```html
135
+ <usa-fx effect="iris">
136
+ <a href="/next">Next page</a>
137
+ </usa-fx>
138
+
139
+ <script type="module">
140
+ playEffect(document.body, 'curtain', { onCovered: () => router.go('/next') });
141
+ </script>
142
+ ```
143
+
144
+ ### Velocity skew & edge glow
145
+
146
+ 5.3: velocity-skew leans the element with scroll speed; edge-glow lights the viewport edge you scroll toward; spotlight dims everything but a circle at the pointer (all persistent, trigger="load") — scroll the page.
147
+
148
+ ```html
149
+ <usa-fx effect="velocity-skew" trigger="load">
150
+ <section class="gallery">…</section>
151
+ </usa-fx>
152
+ ```
153
+
154
+ ### Generative backgrounds
155
+
156
+ 5.5: flow field, Voronoi cells, mesh gradient, starfield, metaballs and topographic contours on Canvas 2D — rendered only while visible, with adaptive quality; one static frame under reduced motion.
157
+
158
+ ```html
159
+ <usa-fx effect="mesh-gradient" trigger="load" self class="hero">
160
+ <h1>Hello</h1>
161
+ </usa-fx>
162
+ ```
163
+
164
+ ### Sound-reactive backgrounds
165
+
166
+ 5.6: spectrum bars, pulse rings and a waveform ring driven by a Web Audio analyser (microphone, <audio>/<video> or a MediaStream via enableAudio()). They idle gently until audio is enabled; skipped under reduced motion.
167
+
168
+ ```html
169
+ <usa-fx effect="spectrum-bars" trigger="load" self options='{"mirror":true}'>
170
+ <h2>Now playing</h2>
171
+ </usa-fx>
172
+ ```
173
+
174
+ ### Cursor trails
175
+
176
+ 5.7: comet trail, rainbow ribbon, sparkle stars, magnetic dot grid and an easing spotlight — scoped to the element, mouse / pen only by default (touch: true to opt in), off under reduced motion.
177
+
178
+ ```html
179
+ <usa-fx effect="comet-trail" trigger="load" self>
180
+ <section class="hero">…</section>
181
+ </usa-fx>
182
+ ```
183
+
184
+ ### Micro-interactions
185
+
186
+ 5.8: 23 small interactions that also do the UI work — like / favourite / bookmark toggles (aria-pressed), copy to clipboard with "Copied ✓", password show / hide, download & submit progress (aria-busy), counters, upvote, clap, emoji reactions, refresh spin, trash, input shake (aria-invalid)…
187
+
188
+ ```html
189
+ <usa-fx effect="like-heart" trigger="click">
190
+ <button aria-pressed="false">♥ <span data-count="12">12</span></button>
191
+ </usa-fx>
192
+ ```
193
+
194
+ ### GPU backgrounds
195
+
196
+ 6.2: WebGL2 shaders — fluid (swirls around the pointer), smoke, fire, ink in water and fireflies — with a Canvas 2D fallback when WebGL2 is missing or the context is lost. Renders only while visible, adapts its resolution; one still frame under reduced motion.
197
+
198
+ ```html
199
+ <usa-fx effect="fluid" trigger="load" self class="hero">
200
+ <h1>Hello</h1>
201
+ </usa-fx>
202
+ ```
203
+
204
+ ### Sakura, leaves & splash
205
+
206
+ 6.2: cherry-blossom petals and autumn leaves drift down behind the content (Canvas 2D), and splash throws water droplets from the click point.
207
+
208
+ ```html
209
+ <usa-fx effect="sakura" trigger="load" self class="hero">
210
+ <h1>Spring</h1>
211
+ </usa-fx>
212
+ ```
213
+
214
+ ### Splash click
215
+
216
+ 6.2: a ring plus droplets that arc out of the click point and fall with gravity.
217
+
218
+ ```html
219
+ <usa-fx effect="splash">
220
+ <button>Splash</button>
221
+ </usa-fx>
222
+ ```
223
+
224
+ ### Text effects 3.0
225
+
226
+ 6.3: flip-chars (per-character 3D flip), neon-write (a neon sign switching on letter by letter), particle-text (particles assemble into the glyphs) and glitch-text (RGB-split slices). Screen readers get the plain text.
227
+
228
+ ```html
229
+ <usa-fx effect="flip-chars" trigger="enter">
230
+ <h1>Motionary</h1>
231
+ </usa-fx>
232
+ ```
233
+
234
+ ### Liquid & breathing text
235
+
236
+ 6.3: liquid-text ripples the glyphs with an animated SVG displacement filter; font-breathe sends a variable-font weight wave through the text. Both are skipped under reduced motion.
237
+
238
+ ```html
239
+ <usa-fx effect="liquid-text" trigger="loop">
240
+ <h1>Liquid</h1>
241
+ </usa-fx>
242
+ ```
243
+
244
+ ### Text cursor trail
245
+
246
+ 6.3: the letters of a word fall off the pointer as it moves over the element (option text, color, spacing).
247
+
248
+ ```html
249
+ <usa-fx effect="text-trail" trigger="load" options='{"text":"HELLO"}'>
250
+ <section class="hero">…</section>
251
+ </usa-fx>
252
+ ```
253
+
254
+ ### Dynamic light, lens & shadow
255
+
256
+ 6.4: light-follow (a point light with a specular hot spot), refraction (a glass lens that bends and magnifies what is behind it) and pointer-shadow (the pointer is the light — a real-time cast shadow). Fixed lighting under reduced motion.
257
+
258
+ ```html
259
+ <usa-fx effect="light-follow" trigger="load">
260
+ <div class="card">…</div>
261
+ </usa-fx>
262
+ ```
263
+
264
+ ### Brushed metal & pearl
265
+
266
+ 6.4: brushed-metal (fine lines with an anisotropic sheen that turns with the pointer) and pearlescent (a nacre / holographic film whose hues shift as you move).
267
+
268
+ ```html
269
+ <usa-fx effect="brushed-metal" trigger="load">
270
+ <div class="card">…</div>
271
+ </usa-fx>
272
+ ```
273
+
274
+ ### Volumetric light (god rays)
275
+
276
+ 6.4: light shafts fan out from a source point and slowly sweep, drawn additively on Canvas 2D; renders only while visible, one still frame under reduced motion.
277
+
278
+ ```html
279
+ <usa-fx effect="god-rays" trigger="load" self class="hero">
280
+ <h1>Dawn</h1>
281
+ </usa-fx>
282
+ ```
283
+
284
+ ### 3D depth, product spin & orbit
285
+
286
+ 6.5: depth-stack (layers separate in Z and parallax as the card tilts), product-spin (drag to turn with inertia, idle turntable) and orbit-camera (the camera orbits the 3D layers while you scroll).
287
+
288
+ ```html
289
+ <usa-fx effect="depth-stack" trigger="load">
290
+ <div class="card">
291
+ <img data-depth="1" src="bg.png" alt="">
292
+ <h3 data-depth="3">Title</h3>
293
+ </div>
294
+ </usa-fx>
295
+ ```
296
+
297
+ ### Thick card flip
298
+
299
+ 6.5: card-flip-3d turns a card over to its back face (the second child) with a lift and visible thickness; the faces swap aria-hidden.
300
+
301
+ ```html
302
+ <usa-fx effect="card-flip-3d">
303
+ <div class="card">
304
+ <div>Front</div>
305
+ <div>Back</div>
306
+ </div>
307
+ </usa-fx>
308
+ ```
309
+
310
+ ### Origami unfold
311
+
312
+ 6.5: origami unfolds the element panel by panel like folded paper (enter effect; skipped under reduced motion).
313
+
314
+ ```html
315
+ <usa-fx effect="origami" trigger="enter">
316
+ <article>…</article>
317
+ </usa-fx>
318
+ ```
319
+
320
+ ### Path morph & stroke draw
321
+
322
+ 6.6: path-morph flows an SVG path between any shapes (resampled points, so different commands morph smoothly); stroke-draw draws every stroke of an SVG, then fades the fills in.
323
+
324
+ ```html
325
+ <usa-fx effect="path-morph" trigger="loop" options='{"paths":["M…","M…"]}'>
326
+ <svg viewBox="0 0 100 100"><path d="M…"/></svg>
327
+ </usa-fx>
328
+ ```
329
+
330
+ ### Liquid blob button
331
+
332
+ 6.6: blob-button puts a liquid blob behind the element that wobbles and bulges toward the pointer.
333
+
334
+ ```html
335
+ <usa-fx effect="blob-button" trigger="load">
336
+ <button>Get started</button>
337
+ </usa-fx>
338
+ ```
339
+
340
+ ### SVG filter reveal & icon swap
341
+
342
+ 6.6: noise-reveal condenses the element out of SVG turbulence (an SVG-filter transition); icon-swap cycles child icons with a gooey blur-scale-rotate morph.
343
+
344
+ ```html
345
+ <usa-fx effect="noise-reveal" trigger="enter">
346
+ <img src="hero.jpg" alt="…">
347
+ </usa-fx>
348
+ <usa-fx effect="icon-swap">
349
+ <button><span>☀️</span><span>🌙</span></button>
350
+ </usa-fx>
351
+ ```
352
+
353
+ ### Transitions 2.0: ripple dissolve & liquid wipe
354
+
355
+ 6.7: ripple-dissolve grows a circle from the pointer; liquid-wipe sweeps a wavy edge across. pageTransition() runs them inside the View Transitions API; crossDocumentTransitions() gives an MPA the same look.
356
+
357
+ ```html
358
+ <usa-fx effect="ripple-dissolve" trigger="click" options='{"mode":"in"}'>
359
+ <section>…</section>
360
+ </usa-fx>
361
+ <script type="module">
362
+ import { pageTransition } from 'motionary/components/fx-transitions';
363
+ pageTransition(() => render(next), 'liquid-wipe');
364
+ </script>
365
+ ```
366
+
367
+ ### Shatter & mosaic flip
368
+
369
+ 6.7: shatter breaks the element into triangular shards that fly together (in) or apart (out); mosaic-flip turns a grid of tiles over in a diagonal wave.
370
+
371
+ ```html
372
+ <usa-fx effect="shatter" trigger="click" options='{"mode":"in","pieces":16}'>
373
+ <img src="photo.jpg" alt="…">
374
+ </usa-fx>
375
+ ```
376
+
377
+ ### Page curl & camera dolly
378
+
379
+ 6.7: page-curl turns the element like a book page around its left edge with a moving shade; camera-dolly moves it in from depth with a depth-of-field blur.
380
+
381
+ ```html
382
+ <usa-fx effect="page-curl" trigger="enter">
383
+ <article>…</article>
384
+ </usa-fx>
385
+ ```
386
+
387
+ ### Rain on glass & snowfall
388
+
389
+ 6.8: rain-glass — droplets grow on a window pane and run down leaving trails; snowfall — flakes drift down and pile up along the bottom edge.
390
+
391
+ ```html
392
+ <usa-fx effect="rain-glass" trigger="load">
393
+ <header class="hero">…</header>
394
+ </usa-fx>
395
+ ```
396
+
397
+ ### Safe lightning & fog
398
+
399
+ 6.8: lightning — branching bolts at most once every 2.5 s or more, glow capped at 22 % and no flash at all under reduced motion (WCAG 2.3.1 safe); fog — layered banks drifting.
400
+
401
+ ```html
402
+ <usa-fx effect="lightning" trigger="load" options='{"interval":4}'>
403
+ <section>…</section>
404
+ </usa-fx>
405
+ ```
406
+
407
+ ### Aurora & day / night cycle
408
+
409
+ 6.8: aurora-veil — curtains of northern lights over a starry sky; day-cycle — dawn, day, dusk and night with the sun and moon on an arc (or a fixed hour).
410
+
411
+ ```html
412
+ <usa-fx effect="day-cycle" trigger="load" options='{"cycle":30}'>
413
+ <section>…</section>
414
+ </usa-fx>
415
+ ```
416
+
417
+ ### Cloth & rope (Verlet)
418
+
419
+ 6.8: cloth hangs from the top edge and ripples as the pointer passes through; rope swings a weight that the pointer can push. Built on the exported VerletWorld.
420
+
421
+ ```html
422
+ <usa-fx effect="cloth" trigger="load">
423
+ <div class="banner">…</div>
424
+ </usa-fx>
425
+ ```
426
+
427
+ ### Soft body & magnet
428
+
429
+ 6.8: soft-body makes the element wobble like jelly as the pointer moves over it; magnet pulls its children toward the pointer on springs.
430
+
431
+ ```html
432
+ <usa-fx effect="soft-body" trigger="load">
433
+ <button>Wobble</button>
434
+ </usa-fx>
435
+ ```
436
+
437
+ ### Pinball bumpers
438
+
439
+ 6.8: balls fall through glowing round bumpers that light up on a hit; click to drop another ball.
440
+
441
+ ```html
442
+ <usa-fx effect="pinball" trigger="load">
443
+ <section>…</section>
444
+ </usa-fx>
445
+ ```
446
+
447
+ ### Focus ring draw & marching ants
448
+
449
+ 6.9: focus-draw draws a rounded ring around the element and fades it; marching-ants keeps a dashed selection border marching (drop targets, selections).
450
+
451
+ ```html
452
+ <usa-fx effect="focus-draw" trigger="click">
453
+ <input placeholder="Email">
454
+ </usa-fx>
455
+ ```
456
+
457
+ ### Success check & highlight sweep
458
+
459
+ 6.9: success-check draws a check over the element on a soft green disc; highlight-sweep sweeps a highlighter stroke behind its text.
460
+
461
+ ```html
462
+ <usa-fx effect="success-check" trigger="click">
463
+ <button>Save</button>
464
+ </usa-fx>
465
+ ```
466
+
467
+ ### Oscilloscope & radial spectrum
468
+
469
+ 7.1: waveform-scope draws the waveform as a glowing oscilloscope line; radial-spectrum puts the spectrum around a circle that breathes with the bass. Live analyser (enableAudio / <usa-audio>) or a synthetic signal.
470
+
471
+ ```html
472
+ <usa-fx effect="radial-spectrum" trigger="load">
473
+ <section class="now-playing">…</section>
474
+ </usa-fx>
475
+ ```
476
+
477
+ ### Mirrored spectrum & sound particles
478
+
479
+ 7.1: spectrum-mirror — mirrored bars with a floor reflection; sound-particles — particles launched by the bass, coloured by pitch.
480
+
481
+ ```html
482
+ <usa-fx effect="spectrum-mirror" trigger="load">
483
+ <header>…</header>
484
+ </usa-fx>
485
+ ```
486
+
487
+ ### Beat bounce & vinyl spin
488
+
489
+ 7.1: beat-bounce pumps the element with the bass; vinyl-spin turns it like a record at 33⅓ rpm, faster when the music is loud.
490
+
491
+ ```html
492
+ <usa-fx effect="vinyl-spin" trigger="load">
493
+ <img class="cover" src="album.jpg" alt="…">
494
+ </usa-fx>
495
+ ```
496
+
497
+ ### Bars grow & dots pop
498
+
499
+ 7.2: entrances for any existing chart (SVG or HTML) — bars-grow grows [data-bar] / rect bars from the baseline in a stagger; dots-pop pops scatter / line points in.
500
+
501
+ ```html
502
+ <usa-fx effect="bars-grow" trigger="enter">
503
+ <svg viewBox="0 0 100 50">…<rect …/></svg>
504
+ </usa-fx>
505
+ ```
506
+
507
+ ### Line draw & ring sweep
508
+
509
+ 7.2: line-draw draws every SVG path / polyline / line then fades area fills in; ring-sweep sweeps donut arcs around from 12 o'clock.
510
+
511
+ ```html
512
+ <usa-fx effect="line-draw" trigger="enter">
513
+ <svg …><polyline points="…" /></svg>
514
+ </usa-fx>
515
+ ```
516
+
517
+ ### Sankey flow & number roll
518
+
519
+ 7.2: sankey-flow runs dashes along the links to show direction and volume (static under reduced motion); number-roll counts [data-value] figures up with locale formatting.
520
+
521
+ ```html
522
+ <usa-fx effect="sankey-flow" trigger="load">
523
+ <svg …><path data-flow d="…" /></svg>
524
+ </usa-fx>
525
+ ```
526
+
527
+ ### Fly to cart & badge pop
528
+
529
+ 7.3: fly-to-cart sends a ghost of the product on an arc into any [data-cart] target, which bumps when it lands; badge-pop pops a sale badge in with a wobble.
530
+
531
+ ```html
532
+ <usa-fx effect="fly-to-cart" trigger="click" options='{"to":"#cart"}'>
533
+ <img src="shoe.jpg" alt="">
534
+ </usa-fx>
535
+ <span id="cart">🛒</span>
536
+ ```
537
+
538
+ ### Price flip & stock pulse
539
+
540
+ 7.3: price-flip flips a price like a split-flap board from data-from to its text; stock-pulse rings “only 3 left” with a soft urgency glow (static under reduced motion).
541
+
542
+ ```html
543
+ <usa-fx effect="price-flip" trigger="enter"><span data-from="129.00">$89.00</span></usa-fx>
544
+ <usa-fx effect="stock-pulse" trigger="load"><b>Only 3 left</b></usa-fx>
545
+ ```
546
+
547
+ ### Typing dots & message in
548
+
549
+ 7.4: typing-dots adds the bouncing “…” to any element; message-in pops a chat bubble in from its side (data-side="right" for your own).
550
+
551
+ ```html
552
+ <usa-fx effect="typing-dots" trigger="load"><span class="bubble"></span></usa-fx>
553
+ <usa-fx effect="message-in" trigger="enter"><p class="bubble" data-side="right">On my way!</p></usa-fx>
554
+ ```
555
+
556
+ ### Reaction burst & read receipt
557
+
558
+ 7.4: reaction-burst floats the emoji up in a fan on click; read-receipt draws ✓✓ and turns them blue; mention-glow sweeps a highlight behind an @mention.
559
+
560
+ ```html
561
+ <usa-fx effect="reaction-burst" trigger="click"><button>❤️</button></usa-fx>
562
+ <usa-fx effect="read-receipt" trigger="enter"><span>Seen</span></usa-fx>
563
+ ```
564
+
565
+ ### Achievement unlock & level up
566
+
567
+ 7.5: achievement-unlock slides a toast in with a light sweep and pops its icon; level-up scales the element with a ring shockwave; xp-gain floats “+50 XP”.
568
+
569
+ ```html
570
+ <usa-fx effect="achievement-unlock" trigger="enter"><div class="toast"><span data-icon>🏆</span> First win!</div></usa-fx>
571
+ <usa-fx effect="xp-gain" trigger="enter"><b data-xp="50">Quest done</b></usa-fx>
572
+ ```
573
+
574
+ ### Chest open & coin burst
575
+
576
+ 7.5: chest-open flips the lid and throws sparks; coin-burst arcs coins up out of the element and lets them fall away.
577
+
578
+ ```html
579
+ <usa-fx effect="chest-open" trigger="click"><div class="chest"><span data-lid>🟫</span>📦</div></usa-fx>
580
+ <usa-fx effect="coin-burst" trigger="click"><button>Claim</button></usa-fx>
581
+ ```
582
+
583
+ ### Route draw & globe spin
584
+
585
+ 7.6: route-draw draws every SVG path / polyline (or [data-route]) along its length, one after another; globe-spin turns the element in like a globe coming round.
586
+
587
+ ```html
588
+ <usa-fx effect="route-draw" trigger="enter">
589
+ <svg viewBox="0 0 200 80"><path d="M10 70 C60 10 120 90 190 20"/></svg>
590
+ </usa-fx>
591
+ ```
592
+
593
+ ### Pin drop & marker pulse
594
+
595
+ 7.6: pin-drop lands the element on its spot with a squash and a shadow; marker-pulse sends beacon rings out of it.
596
+
597
+ ```html
598
+ <usa-fx effect="pin-drop" trigger="enter"><span class="pin">📍</span></usa-fx>
599
+ <usa-fx effect="marker-pulse" trigger="hover"><span class="dot"></span></usa-fx>
600
+ ```
601
+
602
+ ### Field shake & success
603
+
604
+ 7.7: field-shake shakes an element with a red outline flash (the invalid cue); field-success pulses a green glow and pops a check badge on its corner.
605
+
606
+ ```html
607
+ <usa-fx effect="field-shake" trigger="click"><input placeholder="Wrong!"></usa-fx>
608
+ <usa-fx effect="field-success" trigger="click"><input value="All good"></usa-fx>
609
+ ```
610
+
611
+ ### Form cascade & floating labels
612
+
613
+ 7.7: form-cascade slides a form's fields and buttons in one after another; label-float raises every label inside and settles it, like floating labels.
614
+
615
+ ```html
616
+ <usa-fx effect="form-cascade" trigger="enter">
617
+ <form>…fields…</form>
618
+ </usa-fx>
619
+ ```
620
+
621
+ ### Streaming text & thinking glow
622
+
623
+ 7.8: stream-text reveals text word by word like a streamed LLM reply with a blinking caret; thinking-glow breathes a drifting colour glow round an element while a model works.
624
+
625
+ ```html
626
+ <usa-fx effect="stream-text" trigger="enter"><p>Here is a streamed answer…</p></usa-fx>
627
+ <usa-fx effect="thinking-glow" trigger="loop"><div class="bubble">Thinking…</div></usa-fx>
628
+ ```
629
+
630
+ ### Voice wave & generating skeleton
631
+
632
+ 7.8: voice-wave bounces an element's children like voice level bars; gen-skeleton covers content with a shimmering skeleton, then dissolves to reveal it.
633
+
634
+ ```html
635
+ <usa-fx effect="voice-wave" trigger="click"><div class="bars"><i></i><i></i><i></i></div></usa-fx>
636
+ <usa-fx effect="gen-skeleton" trigger="enter"><img src="generated.png" alt=""></usa-fx>
637
+ ```
638
+
639
+ ### Fireworks & lantern rise
640
+
641
+ 8.1: firework-burst sends rockets of sparks out of an element in festive colours; lantern-rise floats an element up and sways it in like a Lunar New Year lantern.
642
+
643
+ ```html
644
+ <usa-fx effect="firework-burst" trigger="click"><button>Celebrate</button></usa-fx>
645
+ <usa-fx effect="lantern-rise" trigger="enter"><img src="lantern.png" alt=""></usa-fx>
646
+ ```
647
+
648
+ ### Christmas snow & spooky float
649
+
650
+ 8.1: xmas-snow drifts snowflakes down over an element in a loop; spooky-float wobbles and flickers an element like a Halloween ghost.
651
+
652
+ ```html
653
+ <usa-fx effect="xmas-snow" trigger="loop"><div class="card">Season’s greetings</div></usa-fx>
654
+ <usa-fx effect="spooky-float" trigger="hover"><span>👻</span></usa-fx>
655
+ ```
656
+
657
+ ### CRT power-on & pixelate
658
+
659
+ 8.2: crt-power switches an element on like an old CRT — a bright line opens into the picture; pixelate-in resolves it from blocky pixels like an 8-bit sprite.
660
+
661
+ ```html
662
+ <usa-fx effect="crt-power" trigger="enter"><img src="screen.png" alt=""></usa-fx>
663
+ <usa-fx effect="pixelate-in" trigger="enter"><img src="sprite.png" alt=""></usa-fx>
664
+ ```
665
+
666
+ ### VHS glitch & Y2K shine
667
+
668
+ 8.2: vhs-glitch jitters an element with VHS tracking noise and an RGB split; y2k-shine sweeps a chrome highlight across it with a little bounce.
669
+
670
+ ```html
671
+ <usa-fx effect="vhs-glitch" trigger="hover"><h2>REWIND</h2></usa-fx>
672
+ <usa-fx effect="y2k-shine" trigger="click"><button>Shiny</button></usa-fx>
673
+ ```
674
+
675
+ ### Vine growth & bloom
676
+
677
+ 8.3: vine-grow grows SVG paths along their length like a vine and pops leaves in along the way; bloom unfolds an element’s children from the centre like petals.
678
+
679
+ ```html
680
+ <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>
681
+ <usa-fx effect="bloom" trigger="enter"><div class="flower"><i></i><i></i><i></i></div></usa-fx>
682
+ ```
683
+
684
+ ### Water drop & breathe
685
+
686
+ 8.3: water-drop dips an element like a drop hitting water and sends concentric ripples out; breathe slowly morphs its shape and scale like a living blob.
687
+
688
+ ```html
689
+ <usa-fx effect="water-drop" trigger="click"><button>Drop</button></usa-fx>
690
+ <usa-fx effect="breathe" trigger="loop"><div class="blob"></div></usa-fx>
691
+ ```
692
+
693
+ ### HUD frame & scanline
694
+
695
+ 8.4: hud-frame draws corner brackets in around an element and sweeps a scan bar across it like a HUD locking on; scanline-sweep runs a bright scanline down it.
696
+
697
+ ```html
698
+ <usa-fx effect="hud-frame" trigger="enter"><div class="card">Target</div></usa-fx>
699
+ <usa-fx effect="scanline-sweep" trigger="click"><button>Scan</button></usa-fx>
700
+ ```
701
+
702
+ ### Hologram & data decode
703
+
704
+ 8.4: hologram gives an element a flickering translucent cyan look with drifting scan bands; data-decode resolves text from random glyphs to the real characters, left to right.
705
+
706
+ ```html
707
+ <usa-fx effect="hologram" trigger="loop"><div class="badge">HOLO</div></usa-fx>
708
+ <usa-fx effect="data-decode" trigger="enter"><h2>ACCESS GRANTED</h2></usa-fx>
709
+ ```
710
+
711
+ ### Paper fold & crumple
712
+
713
+ 8.5: paper-unfold unfolds an element like a folded sheet of paper with a soft crease shadow; crumple scrunches it up like paper and springs it back flat.
714
+
715
+ ```html
716
+ <usa-fx effect="paper-unfold" trigger="enter"><div class="letter">Dear reader…</div></usa-fx>
717
+ <usa-fx effect="crumple" trigger="click"><button>Crumple</button></usa-fx>
718
+ ```
719
+
720
+ ### Pencil sketch & watercolor
721
+
722
+ 8.5: pencil-sketch draws the SVG strokes inside in with a slightly wobbly pencil, one after another; watercolor bleeds an element in like wet paint spreading from the middle, then dries.
723
+
724
+ ```html
725
+ <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>
726
+ <usa-fx effect="watercolor" trigger="enter"><img src="flower.jpg" alt=""></usa-fx>
727
+ ```
728
+
729
+ ### Neon ignite & pulse
730
+
731
+ 8.6: neon-ignite powers an element on like a neon tube — a few stuttering flickers, then a steady glow; neon-pulse keeps a slow breathing neon glow around it.
732
+
733
+ ```html
734
+ <usa-fx effect="neon-ignite" trigger="enter" color="#f0abfc"><h2>OPEN</h2></usa-fx>
735
+ <usa-fx effect="neon-pulse" trigger="loop"><button>Play</button></usa-fx>
736
+ ```
737
+
738
+ ### Glass frost & soft press
739
+
740
+ 8.6: glass-frost condenses an element out of frosted glass with a shine passing over it; neu-press gives it a soft neumorphic press — the raised shadow flips inset and pops back.
741
+
742
+ ```html
743
+ <usa-fx effect="glass-frost" trigger="enter"><div class="glass-card">…</div></usa-fx>
744
+ <usa-fx effect="neu-press" trigger="click"><button class="neu">Press</button></usa-fx>
745
+ ```
746
+
747
+ ### Swipe & pinch hints
748
+
749
+ 8.7: swipe-hint sends a ghost fingertip across an element that nudges along, teaching “swipe me”; pinch-hint pinches two ghost fingertips out while the element zooms.
750
+
751
+ ```html
752
+ <usa-fx effect="swipe-hint" trigger="enter" direction="left"><div class="card">…</div></usa-fx>
753
+ <usa-fx effect="pinch-hint" trigger="enter"><img src="map.png" alt=""></usa-fx>
754
+ ```
755
+
756
+ ### Depth-in & tilt wobble
757
+
758
+ 8.7: depth-in flies an element’s children in from different depths like parallax layers settling; tilt-wobble gives it a 3D wobble as if the phone was tilted.
759
+
760
+ ```html
761
+ <usa-fx effect="depth-in" trigger="enter"><div data-depth="3">Back</div><div data-depth="1">Front</div></usa-fx>
762
+ <usa-fx effect="tilt-wobble" trigger="click"><button>Wobble</button></usa-fx>
763
+ ```
764
+
765
+ ### Portal open & orbit-in
766
+
767
+ 8.8: portal-open expands a ring of light and brings the content through from depth; orbit-in swings an element in around the vertical axis like a spatial window placed beside you.
768
+
769
+ ```html
770
+ <usa-fx effect="portal-open" trigger="enter" color="#a78bfa"><img src="world.jpg" alt=""></usa-fx>
771
+ <usa-fx effect="orbit-in" trigger="enter" from="right"><div class="panel">…</div></usa-fx>
772
+ ```
773
+
774
+ ### Spatial float & depth pop
775
+
776
+ 8.8: spatial-float keeps an element gently floating in depth with a breathing shadow; depth-pop pops it forward towards the viewer and settles it back.
777
+
778
+ ```html
779
+ <usa-fx effect="spatial-float" trigger="loop"><div class="window">…</div></usa-fx>
780
+ <usa-fx effect="depth-pop" trigger="click"><button>Pop</button></usa-fx>
781
+ ```
782
+
783
+ ### Dolly-in & pan reveal
784
+
785
+ 9.1: dolly-in pushes the camera in — the element starts large and soft and settles sharp; pan-reveal pans across it while a wipe uncovers it.
786
+
787
+ ```html
788
+ <usa-fx effect="dolly-in" trigger="enter"><img src="hero.jpg" alt=""></usa-fx>
789
+ <usa-fx effect="pan-reveal" trigger="enter" from="right"><img src="city.jpg" alt=""></usa-fx>
790
+ ```
791
+
792
+ ### Letterbox & rack focus
793
+
794
+ 9.1: letterbox slides cinema bars in, holds, then opens up to reveal the element; rack-focus pulls focus from the first child to the others and back.
795
+
796
+ ```html
797
+ <usa-fx effect="letterbox" trigger="enter"><img src="scene.jpg" alt=""></usa-fx>
798
+ <usa-fx effect="rack-focus" trigger="click"><div><b>Near</b><b>Far</b></div></usa-fx>
799
+ ```
800
+
801
+ ### Icon pop
802
+
803
+ 9.2: icon-pop gives an icon a sticker-like pop with a ring burst; lottie-play replays a Lottie animation on any trigger.
804
+
805
+ ```html
806
+ <usa-fx effect="icon-pop" trigger="click" color="#f43f5e"><button aria-label="Like">♥</button></usa-fx>
807
+ ```
808
+
809
+ ### Halftone & kaleido
810
+
811
+ 9.3: halftone-in prints an element in through a growing halftone dot screen; kaleido turns a kaleidoscopic overlay over it.
812
+
813
+ ```html
814
+ <usa-fx effect="halftone-in" trigger="enter" dot="10"><img src="poster.jpg" alt=""></usa-fx>
815
+ <usa-fx effect="kaleido" trigger="loop"><div class="tile">…</div></usa-fx>
816
+ ```
817
+
818
+ ### Mesh drift & grain
819
+
820
+ 9.3: mesh-drift puts a seeded, slowly drifting mesh gradient behind an element; grain-flicker lays animated film grain over it.
821
+
822
+ ```html
823
+ <usa-fx effect="mesh-drift" trigger="loop" seed="4" palette="ocean"><section class="hero">…</section></usa-fx>
824
+ ```
825
+
826
+ ### Film burn & jump cut
827
+
828
+ 9.4: film-burn burns a warm light leak across an element as it appears; jump-cut snaps it through two hard edits (zoom, reframe) and back.
829
+
830
+ ```html
831
+ <usa-fx effect="film-burn" trigger="enter"><img src="still.jpg" alt=""></usa-fx>
832
+ <usa-fx effect="jump-cut" trigger="click"><figure>…</figure></usa-fx>
833
+ ```
834
+
835
+ ### Motion-safe attention
836
+
837
+ 9.5: effects that never move anything — focus-glow pulses a focus-ring glow, color-pulse flashes a colour, safe-fade fades in, underline-sweep grows an underline — so attention cues stay safe for vestibular disorders.
838
+
839
+ ```html
840
+ <usa-fx effect="focus-glow" trigger="click"><button>Notice me</button></usa-fx>
841
+ <usa-fx effect="underline-sweep" trigger="hover"><a href="#">Read more</a></usa-fx>
842
+ ```
843
+
844
+ ### GPU lift & idle reveal
845
+
846
+ 9.6: gpu-lift is a compositor-only hover lift (transform + opacity only, never layout or paint); idle-reveal waits for an idle moment before fading content in.
847
+
848
+ ```html
849
+ <usa-fx effect="gpu-lift" trigger="hover"><article class="card">…</article></usa-fx>
850
+ <usa-fx effect="idle-reveal" trigger="enter"><aside>…</aside></usa-fx>
851
+ ```