motionary 13.0.0 → 13.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/README.md +323 -153
- package/README_ja.md +245 -118
- package/README_zh.md +245 -118
- package/dist/chunks/{anim-image-D6JtZnwb.js → anim-image-BBVnrt0Q.js} +2 -2
- package/dist/chunks/{anim-image-D3zLsN-S.cjs → anim-image-BYy2nHyc.cjs} +2 -2
- package/dist/chunks/{audio-DNNfcWi9.js → audio-BV1YemPb.js} +3 -3
- package/dist/chunks/{audio-BSQmg3MB.cjs → audio-CztPMZ1b.cjs} +3 -3
- package/dist/chunks/{badge-wall-Dg7S7RJn.js → badge-wall-BBAW52s-.js} +2 -2
- package/dist/chunks/{badge-wall-BPbL8OTC.cjs → badge-wall-COxq4-hJ.cjs} +2 -2
- package/dist/chunks/{base-B3me2y0o.cjs → base-BG_mxssu.cjs} +3 -2
- package/dist/chunks/{base-zSGb8ujt.js → base-CBMzOs1k.js} +3 -2
- package/dist/chunks/{bg-generator-U6fomxZX.cjs → bg-generator-Bw0JAZG7.cjs} +2 -2
- package/dist/chunks/{bg-generator-DKX8nt8T.js → bg-generator-CFjnTyP9.js} +2 -2
- package/dist/chunks/bind-B_CTL6Qn.js +1 -1
- package/dist/chunks/bind-Ui43-n2d.cjs +1 -1
- package/dist/chunks/{builtins-Simwbnqg.js → builtins-DINhkShu.js} +3 -3
- package/dist/chunks/{builtins-Cz3iufK6.cjs → builtins-Dk6hr4_C.cjs} +3 -3
- package/dist/chunks/{carousel-BvdFWXZC.cjs → carousel-6UZLhjGL.cjs} +2 -2
- package/dist/chunks/{carousel-C36_TV-w.js → carousel-BQiUPJ6H.js} +2 -2
- package/dist/chunks/{cart-drawer-BRK4G_aL.cjs → cart-drawer-BhHW454c.cjs} +2 -2
- package/dist/chunks/{cart-drawer-BIeW2ITt.js → cart-drawer-DTBLUsXS.js} +2 -2
- package/dist/chunks/{code-export-B6NVzEhx.js → code-export-B_q_hPy8.js} +2 -2
- package/dist/chunks/{code-export-BUcIsaA0.cjs → code-export-CbKPNcnx.cjs} +2 -2
- package/dist/chunks/{color-picker-CZvB7e4m.cjs → color-picker-C17hLqcy.cjs} +3 -3
- package/dist/chunks/{color-picker-6qKpXxrS.js → color-picker-DAAhbpHV.js} +3 -3
- package/dist/chunks/{command-palette-BSTQQK3b.js → command-palette-B-_C5aOb.js} +2 -2
- package/dist/chunks/{command-palette-CNnX1Qlx.cjs → command-palette-CABkONwK.cjs} +2 -2
- package/dist/chunks/{core-BdLFN0RS.cjs → core-Bg5WaRYY.cjs} +2 -2
- package/dist/chunks/core-BjcOCpJt.cjs +1 -1
- package/dist/chunks/{core-BOCM9zD5.js → core-CBU40kLB.js} +2 -2
- package/dist/chunks/{core-BcQb_f91.js → core-D1vhyt2F.js} +2 -2
- package/dist/chunks/{core-KIvPGg0c.cjs → core-DMrg99HN.cjs} +2 -2
- package/dist/chunks/core-Dj6iomdc.js +1 -1
- package/dist/chunks/{countdown-D5fCuduX.cjs → countdown-5kyFj3EA.cjs} +2 -2
- package/dist/chunks/{countdown-CzDT07_X.js → countdown-BWy4-V8Y.js} +2 -2
- package/dist/chunks/{date-picker-DKv1uKYq.js → date-picker-CAreI9C7.js} +2 -2
- package/dist/chunks/{date-picker-DJ5URMsx.cjs → date-picker-V4SjW1_f.cjs} +2 -2
- package/dist/chunks/ease-HwYZnZat.cjs +1 -1
- package/dist/chunks/ease-XN8_0sXu.js +1 -1
- package/dist/chunks/{equalizer-D3iO1wBO.cjs → equalizer-B0fb-kFT.cjs} +2 -2
- package/dist/chunks/{equalizer-C8mel4Mn.js → equalizer-BPS1yV-f.js} +2 -2
- package/dist/chunks/{festival-banner-BYn-HCza.js → festival-banner-CvGwychu.js} +2 -2
- package/dist/chunks/{festival-banner-Dx7QAmxt.cjs → festival-banner-DWCMdZM1.cjs} +2 -2
- package/dist/chunks/{field-CLbSJL_S.cjs → field-D5hYtW6A.cjs} +2 -2
- package/dist/chunks/{field-BlWcKLcW.js → field-iruUHpdy.js} +2 -2
- package/dist/chunks/{fx-BaPAanPW.cjs → fx-aA8nn1zv.cjs} +2 -2
- package/dist/chunks/{fx-DUteojZx.js → fx-tuYvq2Dr.js} +2 -2
- package/dist/chunks/generative-2LhxG5BJ.js +1 -1
- package/dist/chunks/generative-BHIj-NU0.cjs +1 -1
- package/dist/chunks/{gl-scene-7iATBiAo.cjs → gl-scene-C4lLF0yP.cjs} +3 -3
- package/dist/chunks/{gl-scene-CS6F2id8.js → gl-scene-DEgXh2qB.js} +3 -3
- package/dist/chunks/{globe-DDPNdPPD.cjs → globe-BvTRCzBa.cjs} +2 -2
- package/dist/chunks/{globe-6qzMhWwL.js → globe-t8Tz1KrC.js} +2 -2
- package/dist/chunks/{gpu-Dw1udOJW.cjs → gpu-BFYGfLfN.cjs} +2 -2
- package/dist/chunks/{gpu-ML0i9eNv.js → gpu-CxTWIssF.js} +2 -2
- package/dist/chunks/{gpu-particles-Z95SjKpc.cjs → gpu-particles-C4UZX5H4.cjs} +2 -2
- package/dist/chunks/{gpu-particles-Ce1Q_xJk.js → gpu-particles-GxP4a0P6.js} +2 -2
- package/dist/chunks/index-tags-B-JBecYg.js +1 -1
- package/dist/chunks/index-tags-hLIF2Clq.cjs +1 -1
- package/dist/chunks/key-click-BLm3BI8_.js +1 -1
- package/dist/chunks/key-click-v7I4K5Sr.cjs +1 -1
- package/dist/chunks/{keyframes-CbM8m-7I.cjs → keyframes-D0DdQthz.cjs} +2 -2
- package/dist/chunks/{keyframes-BAtnMJd-.js → keyframes-st3Y9Y01.js} +2 -2
- package/dist/chunks/{leaderboard-ButHN_NI.cjs → leaderboard-D3aXcUrH.cjs} +2 -2
- package/dist/chunks/{leaderboard-PaGjUBdI.js → leaderboard-DqCbNSLV.js} +2 -2
- package/dist/chunks/{location-card-D-jdyQge.js → location-card-BFWhuOvM.js} +2 -2
- package/dist/chunks/{location-card-CLR05EP-.cjs → location-card-D50y0yPP.cjs} +2 -2
- package/dist/chunks/{lottie-icon-1x0omshZ.js → lottie-icon-Cg99YqMK.js} +2 -2
- package/dist/chunks/{lottie-icon-DDKThCMc.cjs → lottie-icon-CiL7TQeN.cjs} +2 -2
- package/dist/chunks/{lottie-player-D7exPyhQ.js → lottie-player-DEmHpLFL.js} +3 -3
- package/dist/chunks/{lottie-player-BaZsKC-H.cjs → lottie-player-tDCzOHCV.cjs} +3 -3
- package/dist/chunks/{lyrics-r4Z0TGnm.js → lyrics-BW8Ajj8K.js} +2 -2
- package/dist/chunks/{lyrics-gmFffOvn.cjs → lyrics-CmZKfI0D.cjs} +2 -2
- package/dist/chunks/{manifest-Bcz6rQ20.cjs → manifest-CKtkSVw4.cjs} +2 -2
- package/dist/chunks/{manifest-pFJWahGJ.js → manifest-CQUlazDF.js} +2 -2
- package/dist/chunks/{menu-BTGBkd2U.js → menu-2qfS--b1.js} +2 -2
- package/dist/chunks/{menu-BgO53POm.cjs → menu-BDG5gcER.cjs} +2 -2
- package/dist/chunks/{menu-toggle-BJEK8BJD.cjs → menu-toggle-934mf8c-.cjs} +3 -3
- package/dist/chunks/{menu-toggle-Dch8f2GK.js → menu-toggle-DuXU6-hH.js} +3 -3
- package/dist/chunks/{nav-morph-BlfdTr2-.js → nav-morph-Bc0SfHn9.js} +2 -2
- package/dist/chunks/{nav-morph-DvE3FgWw.cjs → nav-morph-DeVvWJm-.cjs} +2 -2
- package/dist/chunks/{otp-B1_JY5KD.cjs → otp-C0PpgU4T.cjs} +2 -2
- package/dist/chunks/{otp-Dxw6l5CL.js → otp-CwhyPG7i.js} +2 -2
- package/dist/chunks/{pagination-C5bamOI4.cjs → pagination-4NCqUPrX.cjs} +3 -3
- package/dist/chunks/{pagination-CFOc73i-.js → pagination-D7C1zFvF.js} +3 -3
- package/dist/chunks/{physics-playground-MeKCuHR-.cjs → physics-playground-B-ubdzyT.cjs} +4 -4
- package/dist/chunks/{physics-playground-CGAdvO6r.js → physics-playground-IRiGB25g.js} +4 -4
- package/dist/chunks/{player-B7QRAdUN.cjs → player-BNOKDUw-.cjs} +4 -4
- package/dist/chunks/{player-BA50IpKZ.js → player-DtLIUxwJ.js} +4 -4
- package/dist/chunks/{presence-230b12uw.cjs → presence-CwaD7bup.cjs} +2 -2
- package/dist/chunks/{presence-CPc3nH2E.js → presence-DRGK2bwc.js} +2 -2
- package/dist/chunks/presets-BYBVJVeP.js +1 -1
- package/dist/chunks/presets-CUHys3sK.cjs +1 -1
- package/dist/chunks/{prize-wheel-CYEPyee6.cjs → prize-wheel-Cl48woXn.cjs} +2 -2
- package/dist/chunks/{prize-wheel-ClMtfLVa.js → prize-wheel-DtR0WMqK.js} +2 -2
- package/dist/chunks/{product-gallery-mML9zLXE.cjs → product-gallery-C3q6aoVe.cjs} +2 -2
- package/dist/chunks/{product-gallery-DlVGui98.js → product-gallery-s0Mojkcm.js} +2 -2
- package/dist/chunks/{progress-ring-C8OHcD1x.cjs → progress-ring-B8Ytgw_Q.cjs} +2 -2
- package/dist/chunks/{progress-ring-u5QwkDUc.js → progress-ring-Q1yoAUrU.js} +2 -2
- package/dist/chunks/{prop-panel-CYTkWP9Y.js → prop-panel-BoejVIkT.js} +2 -2
- package/dist/chunks/{prop-panel-B4SaLelu.cjs → prop-panel-CLYoy2fY.cjs} +2 -2
- package/dist/chunks/{radar-BWjX0-2G.cjs → radar-B0f-lKWX.cjs} +2 -2
- package/dist/chunks/{radar-B7ZGs9Ca.js → radar-BAfz6Y20.js} +2 -2
- package/dist/chunks/{reactions-BTTEhsnZ.js → reactions-CAMzdddC.js} +2 -2
- package/dist/chunks/{reactions-D2QL8ezS.cjs → reactions-Dfadd7FC.cjs} +2 -2
- package/dist/chunks/{registry-CYojuxi5.js → registry-4UDF3Dpk.js} +2 -2
- package/dist/chunks/{registry-DQEOHLh7.js → registry-BpRcQEC5.js} +2 -2
- package/dist/chunks/{registry-CFnXdATC.cjs → registry-CP1MIOtI.cjs} +2 -2
- package/dist/chunks/{registry-BB1oO-lR.cjs → registry-LE5iyTqw.cjs} +2 -2
- package/dist/chunks/{retro-button-CiVnwK4T.js → retro-button-DPOGCNEB.js} +2 -2
- package/dist/chunks/{retro-button-CqLmeF6H.cjs → retro-button-oiGvtRdV.cjs} +2 -2
- package/dist/chunks/{rive-CtYlVrH0.js → rive-BiqV3D2R.js} +2 -2
- package/dist/chunks/{rive-CfWKBIa5.cjs → rive-D2POjYyT.cjs} +2 -2
- package/dist/chunks/{runtime-link-D1Vn3BZq.cjs → runtime-link-Dv0W9Elh.cjs} +3 -3
- package/dist/chunks/{runtime-link-C3_nsDxl.js → runtime-link-TwXAB9lk.js} +3 -3
- package/dist/chunks/scroll-driven-CQbwzCdn.cjs +1 -1
- package/dist/chunks/scroll-driven-LghshrWq.js +1 -1
- package/dist/chunks/{scroll-scene-Bp9Txz5d.js → scroll-scene-CCs3rERo.js} +4 -4
- package/dist/chunks/{scroll-scene-DSymhsCt.cjs → scroll-scene-CS_8f4tB.cjs} +4 -4
- package/dist/chunks/{segmented-omNqJ1vK.cjs → segmented-Bs0lNncg.cjs} +2 -2
- package/dist/chunks/{segmented-BEuxQKN8.js → segmented-DnGy8Aw_.js} +2 -2
- package/dist/chunks/{shader-backdrop-jJaiqu2T.js → shader-backdrop-CQBsDITY.js} +2 -2
- package/dist/chunks/{shader-backdrop-Tnlj5ag3.cjs → shader-backdrop-Df_2GJFz.cjs} +2 -2
- package/dist/chunks/shared-BxK1D7EZ.cjs +1 -1
- package/dist/chunks/shared-C8Pi6tuh.js +1 -1
- package/dist/chunks/shared-CkKHWrtJ.js +1 -1
- package/dist/chunks/shared-jkgRH-Hx.cjs +1 -1
- package/dist/chunks/{sheet-BfH5vWIW.cjs → sheet-6Vp7Yox1.cjs} +40 -17
- package/dist/chunks/{sheet-BHvZA7rD.js → sheet-CAItJBXn.js} +40 -17
- package/dist/chunks/sign-DvZ1jHxE.js +1 -1
- package/dist/chunks/sign-RAkQIWrM.cjs +1 -1
- package/dist/chunks/{skeleton-reveal-Dwm8Z6Iv.js → skeleton-reveal-CNr6jhZN.js} +2 -2
- package/dist/chunks/{skeleton-reveal-n4L3iur-.cjs → skeleton-reveal-DH7sd6uV.cjs} +2 -2
- package/dist/chunks/{sparkline-BtSW-HY0.js → sparkline-MRwlHeWm.js} +2 -2
- package/dist/chunks/{sparkline-DZiGHCOf.cjs → sparkline-we35dC6w.cjs} +2 -2
- package/dist/chunks/{spring-CznnvQCN.js → spring-2YZXQmr7.js} +2 -2
- package/dist/chunks/{spring-DcM7pQgx.cjs → spring-CibVO2Tk.cjs} +2 -2
- package/dist/chunks/stagger-B9sKPwQB.js +1 -1
- package/dist/chunks/stagger-DFKwqOQG.cjs +1 -1
- package/dist/chunks/{suggestion-chips-BVt6aSMC.cjs → suggestion-chips-DIzEGoUE.cjs} +2 -2
- package/dist/chunks/{suggestion-chips-CtgmWPtH.js → suggestion-chips-DWViXX9m.js} +2 -2
- package/dist/chunks/{switch-BKhvELnx.cjs → switch-DSzo6hVT.cjs} +3 -3
- package/dist/chunks/{switch-CZCdSuCz.js → switch-iQNaYTQB.js} +3 -3
- package/dist/chunks/{tab-bar-B3ucWWMl.cjs → tab-bar-DZtJO0Ge.cjs} +2 -2
- package/dist/chunks/{tab-bar-2d1734DE.js → tab-bar-DzSapgXH.js} +2 -2
- package/dist/chunks/{ticker-CFlr9gom.js → ticker-CbTuFTz0.js} +2 -2
- package/dist/chunks/{ticker-Dj7p5cMU.cjs → ticker-qpbJvWSb.cjs} +2 -2
- package/dist/chunks/{tip-r4VuAjSI.js → tip-Cg4VdOV4.js} +2 -2
- package/dist/chunks/{tip-BQwC2KtE.cjs → tip-CoXfHx5J.cjs} +2 -2
- package/dist/chunks/{toast-stack-DfFjAKGz.cjs → toast-stack-B0YJ93dM.cjs} +4 -4
- package/dist/chunks/{toast-stack-D3zrI7U6.js → toast-stack-DZ5XkmO_.js} +4 -4
- package/dist/chunks/{tween-DJfADHZK.js → tween-BW49KMKU.js} +2 -2
- package/dist/chunks/{tween-fNIolo0r.cjs → tween-D30sTGVW.cjs} +2 -2
- package/dist/chunks/{upload-progress-DmywVhec.cjs → upload-progress-Bv5i3ebk.cjs} +2 -2
- package/dist/chunks/{upload-progress-CkfDSMr-.js → upload-progress-CZbedTLC.js} +2 -2
- package/dist/chunks/{variants-DRi3tBJf.js → variants-B8gnRVha.js} +2 -2
- package/dist/chunks/{variants-cVfgIaXa.cjs → variants-D7gblATl.cjs} +2 -2
- package/dist/chunks/{voice-button-DVovZYBR.js → voice-button-BEibeass.js} +2 -2
- package/dist/chunks/{voice-button-CZ5cpeWN.cjs → voice-button-DfDRNgmG.cjs} +2 -2
- package/dist/chunks/{weather-card-pF9sSKuI.js → weather-card-BO_6E5OV.js} +2 -2
- package/dist/chunks/{weather-card-DCzxr5T4.cjs → weather-card-DodZfOsv.cjs} +2 -2
- package/dist/chunks/{worker-canvas-CDc2aIKC.cjs → worker-canvas-Bqsw_Fym.cjs} +2 -2
- package/dist/chunks/{worker-canvas-Hl3quLAh.js → worker-canvas-D2TU72M8.js} +2 -2
- package/dist/chunks/{xp-bar-D4Yq5Dpv.cjs → xp-bar-CUHPolzJ.cjs} +2 -2
- package/dist/chunks/{xp-bar-j1FsL32r.js → xp-bar-CsASrTkD.js} +2 -2
- package/dist/components/a11y.cjs +2 -2
- package/dist/components/a11y.js +3 -3
- package/dist/components/ai.cjs +1 -1
- package/dist/components/ai.js +1 -1
- package/dist/components/angular.cjs +9 -9
- package/dist/components/angular.js +9 -9
- package/dist/components/background.cjs +3 -3
- package/dist/components/background.js +3 -3
- package/dist/components/bridge.cjs +2 -2
- package/dist/components/bridge.js +2 -2
- package/dist/components/cards.cjs +4 -4
- package/dist/components/cards.js +4 -4
- package/dist/components/click.cjs +4 -4
- package/dist/components/click.js +4 -4
- package/dist/components/core.cjs +1 -1
- package/dist/components/core.js +1 -1
- package/dist/components/depth.cjs +4 -4
- package/dist/components/depth.js +4 -4
- package/dist/components/design.cjs +4 -4
- package/dist/components/design.js +4 -4
- package/dist/components/dotlottie.cjs +5 -5
- package/dist/components/dotlottie.js +5 -5
- package/dist/components/dsl.cjs +3 -3
- package/dist/components/dsl.js +3 -3
- package/dist/components/effects.cjs +8 -8
- package/dist/components/effects.js +10 -10
- package/dist/components/engine.cjs +3 -3
- package/dist/components/engine.js +4 -4
- package/dist/components/feedback.cjs +2 -2
- package/dist/components/feedback.js +2 -2
- package/dist/components/fx-3d.cjs +3 -3
- package/dist/components/fx-3d.js +3 -3
- package/dist/components/fx-ai.cjs +3 -3
- package/dist/components/fx-ai.js +3 -3
- package/dist/components/fx-chart.cjs +3 -3
- package/dist/components/fx-chart.js +3 -3
- package/dist/components/fx-cinema.cjs +3 -3
- package/dist/components/fx-cinema.js +3 -3
- package/dist/components/fx-cyber.cjs +3 -3
- package/dist/components/fx-cyber.js +3 -3
- package/dist/components/fx-festival.cjs +3 -3
- package/dist/components/fx-festival.js +3 -3
- package/dist/components/fx-focus.cjs +3 -3
- package/dist/components/fx-focus.js +3 -3
- package/dist/components/fx-form.cjs +3 -3
- package/dist/components/fx-form.js +3 -3
- package/dist/components/fx-game.cjs +3 -3
- package/dist/components/fx-game.js +3 -3
- package/dist/components/fx-genart.cjs +3 -3
- package/dist/components/fx-genart.js +3 -3
- package/dist/components/fx-geo.cjs +3 -3
- package/dist/components/fx-geo.js +3 -3
- package/dist/components/fx-gesture.cjs +3 -3
- package/dist/components/fx-gesture.js +3 -3
- package/dist/components/fx-gpu.cjs +4 -4
- package/dist/components/fx-gpu.js +4 -4
- package/dist/components/fx-light.cjs +3 -3
- package/dist/components/fx-light.js +3 -3
- package/dist/components/fx-lottie.cjs +3 -3
- package/dist/components/fx-lottie.js +3 -3
- package/dist/components/fx-morph.cjs +3 -3
- package/dist/components/fx-morph.js +3 -3
- package/dist/components/fx-music.cjs +4 -4
- package/dist/components/fx-music.js +4 -4
- package/dist/components/fx-organic.cjs +3 -3
- package/dist/components/fx-organic.js +3 -3
- package/dist/components/fx-paper.cjs +3 -3
- package/dist/components/fx-paper.js +3 -3
- package/dist/components/fx-perf.cjs +3 -3
- package/dist/components/fx-perf.js +3 -3
- package/dist/components/fx-physics.cjs +3 -3
- package/dist/components/fx-physics.js +3 -3
- package/dist/components/fx-retro.cjs +3 -3
- package/dist/components/fx-retro.js +3 -3
- package/dist/components/fx-safe.cjs +3 -3
- package/dist/components/fx-safe.js +3 -3
- package/dist/components/fx-shop.cjs +3 -3
- package/dist/components/fx-shop.js +3 -3
- package/dist/components/fx-social.cjs +3 -3
- package/dist/components/fx-social.js +3 -3
- package/dist/components/fx-spatial.cjs +3 -3
- package/dist/components/fx-spatial.js +3 -3
- package/dist/components/fx-surface.cjs +3 -3
- package/dist/components/fx-surface.js +3 -3
- package/dist/components/fx-text.cjs +3 -3
- package/dist/components/fx-text.js +3 -3
- package/dist/components/fx-transitions.cjs +4 -4
- package/dist/components/fx-transitions.js +4 -4
- package/dist/components/fx-video.cjs +3 -3
- package/dist/components/fx-video.js +3 -3
- package/dist/components/fx-weather.cjs +3 -3
- package/dist/components/fx-weather.js +3 -3
- package/dist/components/fx.cjs +6 -6
- package/dist/components/fx.js +7 -7
- package/dist/components/fx2.cjs +6 -6
- package/dist/components/fx2.js +7 -7
- package/dist/components/gesture.cjs +4 -4
- package/dist/components/gesture.js +5 -5
- package/dist/components/gl-model.cjs +5 -5
- package/dist/components/gl-model.js +5 -5
- package/dist/components/interaction.cjs +2 -2
- package/dist/components/interaction.js +2 -2
- package/dist/components/jsx.cjs +1 -1
- package/dist/components/jsx.js +1 -1
- package/dist/components/layout.cjs +2 -2
- package/dist/components/layout.js +2 -2
- package/dist/components/lazy.cjs +1 -1
- package/dist/components/lazy.js +1 -1
- package/dist/components/lite.cjs +9 -8
- package/dist/components/lite.js +9 -8
- package/dist/components/marketplace.cjs +4 -4
- package/dist/components/marketplace.js +5 -5
- package/dist/components/native.cjs +4 -4
- package/dist/components/native.js +4 -4
- package/dist/components/packs.cjs +3 -3
- package/dist/components/packs.js +3 -3
- package/dist/components/page.cjs +3 -3
- package/dist/components/page.js +4 -4
- package/dist/components/perf.cjs +2 -2
- package/dist/components/perf.js +3 -3
- package/dist/components/physics.cjs +3 -3
- package/dist/components/physics.js +4 -4
- package/dist/components/plugins.cjs +5 -5
- package/dist/components/plugins.js +5 -5
- package/dist/components/react.cjs +1 -1
- package/dist/components/react.js +1 -1
- package/dist/components/reveal.cjs +2 -2
- package/dist/components/reveal.js +2 -2
- package/dist/components/snap-carousel.cjs +4 -4
- package/dist/components/snap-carousel.js +4 -4
- package/dist/components/solid.cjs +9 -9
- package/dist/components/solid.js +9 -9
- package/dist/components/svelte.cjs +9 -9
- package/dist/components/svelte.js +9 -9
- package/dist/components/svg.cjs +2 -2
- package/dist/components/svg.js +2 -2
- package/dist/components/text.cjs +3 -3
- package/dist/components/text.js +3 -3
- package/dist/components/timeline.cjs +3 -3
- package/dist/components/timeline.js +4 -4
- package/dist/components/tokens.cjs +1 -1
- package/dist/components/tokens.js +1 -1
- package/dist/components/transitions.cjs +2 -2
- package/dist/components/transitions.js +2 -2
- package/dist/components/ui.cjs +8 -8
- package/dist/components/ui.js +9 -9
- package/dist/components/vue.cjs +9 -9
- package/dist/components/vue.js +9 -9
- package/dist/components/webgl.cjs +2 -2
- package/dist/components/webgl.js +2 -2
- package/dist/components/widgets.cjs +62 -62
- package/dist/components/widgets.d.cts +2 -1
- package/dist/components/widgets.d.ts +2 -1
- package/dist/components/widgets.js +111 -111
- package/dist/components.cjs +9 -9
- package/dist/components.js +11 -11
- package/dist/components.umd.js +2 -2
- package/dist/effects/achievement-unlock.cjs +3 -3
- package/dist/effects/achievement-unlock.js +3 -3
- package/dist/effects/aurora-veil.cjs +3 -3
- package/dist/effects/aurora-veil.js +3 -3
- package/dist/effects/badge-pop.cjs +3 -3
- package/dist/effects/badge-pop.js +3 -3
- package/dist/effects/bars-grow.cjs +3 -3
- package/dist/effects/bars-grow.js +3 -3
- package/dist/effects/beat-bounce.cjs +4 -4
- package/dist/effects/beat-bounce.js +4 -4
- package/dist/effects/blob-button.cjs +3 -3
- package/dist/effects/blob-button.js +3 -3
- package/dist/effects/bloom.cjs +3 -3
- package/dist/effects/bloom.js +3 -3
- package/dist/effects/breathe.cjs +3 -3
- package/dist/effects/breathe.js +3 -3
- package/dist/effects/brushed-metal.cjs +3 -3
- package/dist/effects/brushed-metal.js +3 -3
- package/dist/effects/camera-dolly.cjs +3 -3
- package/dist/effects/camera-dolly.js +3 -3
- package/dist/effects/card-flip-3d.cjs +3 -3
- package/dist/effects/card-flip-3d.js +3 -3
- package/dist/effects/chest-open.cjs +3 -3
- package/dist/effects/chest-open.js +3 -3
- package/dist/effects/cloth.cjs +3 -3
- package/dist/effects/cloth.js +3 -3
- package/dist/effects/coin-burst.cjs +3 -3
- package/dist/effects/coin-burst.js +3 -3
- package/dist/effects/color-pulse.cjs +3 -3
- package/dist/effects/color-pulse.js +3 -3
- package/dist/effects/crt-power.cjs +3 -3
- package/dist/effects/crt-power.js +3 -3
- package/dist/effects/crumple.cjs +3 -3
- package/dist/effects/crumple.js +3 -3
- package/dist/effects/data-decode.cjs +3 -3
- package/dist/effects/data-decode.js +3 -3
- package/dist/effects/day-cycle.cjs +3 -3
- package/dist/effects/day-cycle.js +3 -3
- package/dist/effects/depth-in.cjs +3 -3
- package/dist/effects/depth-in.js +3 -3
- package/dist/effects/depth-pop.cjs +3 -3
- package/dist/effects/depth-pop.js +3 -3
- package/dist/effects/depth-stack.cjs +3 -3
- package/dist/effects/depth-stack.js +3 -3
- package/dist/effects/dolly-in.cjs +3 -3
- package/dist/effects/dolly-in.js +3 -3
- package/dist/effects/dots-pop.cjs +3 -3
- package/dist/effects/dots-pop.js +3 -3
- package/dist/effects/field-shake.cjs +3 -3
- package/dist/effects/field-shake.js +3 -3
- package/dist/effects/field-success.cjs +3 -3
- package/dist/effects/field-success.js +3 -3
- package/dist/effects/film-burn.cjs +3 -3
- package/dist/effects/film-burn.js +3 -3
- package/dist/effects/fire.cjs +4 -4
- package/dist/effects/fire.js +4 -4
- package/dist/effects/fireflies.cjs +4 -4
- package/dist/effects/fireflies.js +4 -4
- package/dist/effects/firework-burst.cjs +3 -3
- package/dist/effects/firework-burst.js +3 -3
- package/dist/effects/flip-chars.cjs +3 -3
- package/dist/effects/flip-chars.js +3 -3
- package/dist/effects/fluid.cjs +4 -4
- package/dist/effects/fluid.js +4 -4
- package/dist/effects/fly-to-cart.cjs +3 -3
- package/dist/effects/fly-to-cart.js +3 -3
- package/dist/effects/focus-draw.cjs +3 -3
- package/dist/effects/focus-draw.js +3 -3
- package/dist/effects/focus-glow.cjs +3 -3
- package/dist/effects/focus-glow.js +3 -3
- package/dist/effects/fog.cjs +3 -3
- package/dist/effects/fog.js +3 -3
- package/dist/effects/font-breathe.cjs +3 -3
- package/dist/effects/font-breathe.js +3 -3
- package/dist/effects/form-cascade.cjs +3 -3
- package/dist/effects/form-cascade.js +3 -3
- package/dist/effects/gen-skeleton.cjs +3 -3
- package/dist/effects/gen-skeleton.js +3 -3
- package/dist/effects/glass-frost.cjs +3 -3
- package/dist/effects/glass-frost.js +3 -3
- package/dist/effects/glitch-text.cjs +3 -3
- package/dist/effects/glitch-text.js +3 -3
- package/dist/effects/globe-spin.cjs +3 -3
- package/dist/effects/globe-spin.js +3 -3
- package/dist/effects/god-rays.cjs +3 -3
- package/dist/effects/god-rays.js +3 -3
- package/dist/effects/gpu-lift.cjs +3 -3
- package/dist/effects/gpu-lift.js +3 -3
- package/dist/effects/grain-flicker.cjs +3 -3
- package/dist/effects/grain-flicker.js +3 -3
- package/dist/effects/halftone-in.cjs +3 -3
- package/dist/effects/halftone-in.js +3 -3
- package/dist/effects/highlight-sweep.cjs +3 -3
- package/dist/effects/highlight-sweep.js +3 -3
- package/dist/effects/hologram.cjs +3 -3
- package/dist/effects/hologram.js +3 -3
- package/dist/effects/hud-frame.cjs +3 -3
- package/dist/effects/hud-frame.js +3 -3
- package/dist/effects/icon-pop.cjs +3 -3
- package/dist/effects/icon-pop.js +3 -3
- package/dist/effects/icon-swap.cjs +3 -3
- package/dist/effects/icon-swap.js +3 -3
- package/dist/effects/idle-reveal.cjs +3 -3
- package/dist/effects/idle-reveal.js +3 -3
- package/dist/effects/ink.cjs +4 -4
- package/dist/effects/ink.js +4 -4
- package/dist/effects/jump-cut.cjs +3 -3
- package/dist/effects/jump-cut.js +3 -3
- package/dist/effects/kaleido.cjs +3 -3
- package/dist/effects/kaleido.js +3 -3
- package/dist/effects/label-float.cjs +3 -3
- package/dist/effects/label-float.js +3 -3
- package/dist/effects/lantern-rise.cjs +3 -3
- package/dist/effects/lantern-rise.js +3 -3
- package/dist/effects/leaves.cjs +4 -4
- package/dist/effects/leaves.js +4 -4
- package/dist/effects/letterbox.cjs +3 -3
- package/dist/effects/letterbox.js +3 -3
- package/dist/effects/level-up.cjs +3 -3
- package/dist/effects/level-up.js +3 -3
- package/dist/effects/light-follow.cjs +3 -3
- package/dist/effects/light-follow.js +3 -3
- package/dist/effects/lightning.cjs +3 -3
- package/dist/effects/lightning.js +3 -3
- package/dist/effects/line-draw.cjs +3 -3
- package/dist/effects/line-draw.js +3 -3
- package/dist/effects/liquid-text.cjs +3 -3
- package/dist/effects/liquid-text.js +3 -3
- package/dist/effects/liquid-wipe.cjs +3 -3
- package/dist/effects/liquid-wipe.js +3 -3
- package/dist/effects/lottie-play.cjs +3 -3
- package/dist/effects/lottie-play.js +3 -3
- package/dist/effects/magnet.cjs +3 -3
- package/dist/effects/magnet.js +3 -3
- package/dist/effects/marching-ants.cjs +3 -3
- package/dist/effects/marching-ants.js +3 -3
- package/dist/effects/marker-pulse.cjs +3 -3
- package/dist/effects/marker-pulse.js +3 -3
- package/dist/effects/mention-glow.cjs +3 -3
- package/dist/effects/mention-glow.js +3 -3
- package/dist/effects/mesh-drift.cjs +3 -3
- package/dist/effects/mesh-drift.js +3 -3
- package/dist/effects/message-in.cjs +3 -3
- package/dist/effects/message-in.js +3 -3
- package/dist/effects/mosaic-flip.cjs +3 -3
- package/dist/effects/mosaic-flip.js +3 -3
- package/dist/effects/neon-ignite.cjs +3 -3
- package/dist/effects/neon-ignite.js +3 -3
- package/dist/effects/neon-pulse.cjs +3 -3
- package/dist/effects/neon-pulse.js +3 -3
- package/dist/effects/neon-write.cjs +3 -3
- package/dist/effects/neon-write.js +3 -3
- package/dist/effects/neu-press.cjs +3 -3
- package/dist/effects/neu-press.js +3 -3
- package/dist/effects/noise-reveal.cjs +3 -3
- package/dist/effects/noise-reveal.js +3 -3
- package/dist/effects/number-roll.cjs +3 -3
- package/dist/effects/number-roll.js +3 -3
- package/dist/effects/orbit-camera.cjs +3 -3
- package/dist/effects/orbit-camera.js +3 -3
- package/dist/effects/orbit-in.cjs +3 -3
- package/dist/effects/orbit-in.js +3 -3
- package/dist/effects/origami.cjs +3 -3
- package/dist/effects/origami.js +3 -3
- package/dist/effects/page-curl.cjs +3 -3
- package/dist/effects/page-curl.js +3 -3
- package/dist/effects/pan-reveal.cjs +3 -3
- package/dist/effects/pan-reveal.js +3 -3
- package/dist/effects/paper-unfold.cjs +3 -3
- package/dist/effects/paper-unfold.js +3 -3
- package/dist/effects/particle-text.cjs +3 -3
- package/dist/effects/particle-text.js +3 -3
- package/dist/effects/path-morph.cjs +3 -3
- package/dist/effects/path-morph.js +3 -3
- package/dist/effects/pearlescent.cjs +3 -3
- package/dist/effects/pearlescent.js +3 -3
- package/dist/effects/pencil-sketch.cjs +3 -3
- package/dist/effects/pencil-sketch.js +3 -3
- package/dist/effects/pin-drop.cjs +3 -3
- package/dist/effects/pin-drop.js +3 -3
- package/dist/effects/pinball.cjs +3 -3
- package/dist/effects/pinball.js +3 -3
- package/dist/effects/pinch-hint.cjs +3 -3
- package/dist/effects/pinch-hint.js +3 -3
- package/dist/effects/pixelate-in.cjs +3 -3
- package/dist/effects/pixelate-in.js +3 -3
- package/dist/effects/pointer-shadow.cjs +3 -3
- package/dist/effects/pointer-shadow.js +3 -3
- package/dist/effects/portal-open.cjs +3 -3
- package/dist/effects/portal-open.js +3 -3
- package/dist/effects/price-flip.cjs +3 -3
- package/dist/effects/price-flip.js +3 -3
- package/dist/effects/product-spin.cjs +3 -3
- package/dist/effects/product-spin.js +3 -3
- package/dist/effects/rack-focus.cjs +3 -3
- package/dist/effects/rack-focus.js +3 -3
- package/dist/effects/radial-spectrum.cjs +4 -4
- package/dist/effects/radial-spectrum.js +4 -4
- package/dist/effects/rain-glass.cjs +3 -3
- package/dist/effects/rain-glass.js +3 -3
- package/dist/effects/reaction-burst.cjs +3 -3
- package/dist/effects/reaction-burst.js +3 -3
- package/dist/effects/read-receipt.cjs +3 -3
- package/dist/effects/read-receipt.js +3 -3
- package/dist/effects/refraction.cjs +3 -3
- package/dist/effects/refraction.js +3 -3
- package/dist/effects/ring-sweep.cjs +3 -3
- package/dist/effects/ring-sweep.js +3 -3
- package/dist/effects/ripple-dissolve.cjs +3 -3
- package/dist/effects/ripple-dissolve.js +3 -3
- package/dist/effects/rope.cjs +3 -3
- package/dist/effects/rope.js +3 -3
- package/dist/effects/route-draw.cjs +3 -3
- package/dist/effects/route-draw.js +3 -3
- package/dist/effects/safe-fade.cjs +3 -3
- package/dist/effects/safe-fade.js +3 -3
- package/dist/effects/sakura.cjs +4 -4
- package/dist/effects/sakura.js +4 -4
- package/dist/effects/sale-shine.cjs +3 -3
- package/dist/effects/sale-shine.js +3 -3
- package/dist/effects/sankey-flow.cjs +3 -3
- package/dist/effects/sankey-flow.js +3 -3
- package/dist/effects/scanline-sweep.cjs +3 -3
- package/dist/effects/scanline-sweep.js +3 -3
- package/dist/effects/shatter.cjs +3 -3
- package/dist/effects/shatter.js +3 -3
- package/dist/effects/smoke.cjs +4 -4
- package/dist/effects/smoke.js +4 -4
- package/dist/effects/snowfall.cjs +3 -3
- package/dist/effects/snowfall.js +3 -3
- package/dist/effects/soft-body.cjs +3 -3
- package/dist/effects/soft-body.js +3 -3
- package/dist/effects/sound-particles.cjs +4 -4
- package/dist/effects/sound-particles.js +4 -4
- package/dist/effects/spatial-float.cjs +3 -3
- package/dist/effects/spatial-float.js +3 -3
- package/dist/effects/spectrum-mirror.cjs +4 -4
- package/dist/effects/spectrum-mirror.js +4 -4
- package/dist/effects/splash.cjs +4 -4
- package/dist/effects/splash.js +4 -4
- package/dist/effects/spooky-float.cjs +3 -3
- package/dist/effects/spooky-float.js +3 -3
- package/dist/effects/stock-pulse.cjs +3 -3
- package/dist/effects/stock-pulse.js +3 -3
- package/dist/effects/stream-text.cjs +3 -3
- package/dist/effects/stream-text.js +3 -3
- package/dist/effects/stroke-draw.cjs +3 -3
- package/dist/effects/stroke-draw.js +3 -3
- package/dist/effects/success-check.cjs +3 -3
- package/dist/effects/success-check.js +3 -3
- package/dist/effects/swipe-hint.cjs +3 -3
- package/dist/effects/swipe-hint.js +3 -3
- package/dist/effects/text-trail.cjs +3 -3
- package/dist/effects/text-trail.js +3 -3
- package/dist/effects/thinking-glow.cjs +3 -3
- package/dist/effects/thinking-glow.js +3 -3
- package/dist/effects/tilt-wobble.cjs +3 -3
- package/dist/effects/tilt-wobble.js +3 -3
- package/dist/effects/typing-dots.cjs +3 -3
- package/dist/effects/typing-dots.js +3 -3
- package/dist/effects/underline-sweep.cjs +3 -3
- package/dist/effects/underline-sweep.js +3 -3
- package/dist/effects/vhs-glitch.cjs +3 -3
- package/dist/effects/vhs-glitch.js +3 -3
- package/dist/effects/vine-grow.cjs +3 -3
- package/dist/effects/vine-grow.js +3 -3
- package/dist/effects/vinyl-spin.cjs +4 -4
- package/dist/effects/vinyl-spin.js +4 -4
- package/dist/effects/voice-wave.cjs +3 -3
- package/dist/effects/voice-wave.js +3 -3
- package/dist/effects/water-drop.cjs +3 -3
- package/dist/effects/water-drop.js +3 -3
- package/dist/effects/watercolor.cjs +3 -3
- package/dist/effects/watercolor.js +3 -3
- package/dist/effects/waveform-scope.cjs +4 -4
- package/dist/effects/waveform-scope.js +4 -4
- package/dist/effects/xmas-snow.cjs +3 -3
- package/dist/effects/xmas-snow.js +3 -3
- package/dist/effects/xp-gain.cjs +3 -3
- package/dist/effects/xp-gain.js +3 -3
- package/dist/effects/y2k-shine.cjs +3 -3
- package/dist/effects/y2k-shine.js +3 -3
- package/dist/element.cjs +1 -1
- package/dist/element.js +1 -1
- package/dist/element.umd.js +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/dist/index.umd.js +1 -1
- package/dist/llms-full.txt +7 -1
- package/dist/llms.txt +1 -1
- package/dist/manifest.json +39 -11
- package/dist/presets/extended.cjs +1 -1
- package/dist/presets/extended.js +1 -1
- package/dist/presets-extended.umd.js +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/runtime/drag-snap.cjs +2 -2
- package/dist/runtime/drag-snap.iife.js +1 -1
- package/dist/runtime/drag-snap.js +2 -2
- package/dist/runtime/format-apng.cjs +5 -5
- package/dist/runtime/format-apng.iife.js +1 -1
- package/dist/runtime/format-apng.js +5 -5
- package/dist/runtime/format-css.cjs +5 -5
- package/dist/runtime/format-css.iife.js +1 -1
- package/dist/runtime/format-css.js +5 -5
- package/dist/runtime/format-gif.cjs +5 -5
- package/dist/runtime/format-gif.iife.js +1 -1
- package/dist/runtime/format-gif.js +5 -5
- package/dist/runtime/format-gltf.cjs +2 -2
- package/dist/runtime/format-gltf.iife.js +1 -1
- package/dist/runtime/format-gltf.js +2 -2
- package/dist/runtime/format-motion.cjs +5 -5
- package/dist/runtime/format-motion.iife.js +1 -1
- package/dist/runtime/format-motion.js +5 -5
- package/dist/runtime/format-obj.cjs +2 -2
- package/dist/runtime/format-obj.iife.js +1 -1
- package/dist/runtime/format-obj.js +2 -2
- package/dist/runtime/format-scene.cjs +2 -2
- package/dist/runtime/format-scene.iife.js +1 -1
- package/dist/runtime/format-scene.js +2 -2
- package/dist/runtime/format-sprite.cjs +4 -4
- package/dist/runtime/format-sprite.iife.js +1 -1
- package/dist/runtime/format-sprite.js +4 -4
- package/dist/runtime/format-svg.cjs +4 -4
- package/dist/runtime/format-svg.iife.js +1 -1
- package/dist/runtime/format-svg.js +4 -4
- package/dist/runtime/format-webp.cjs +5 -5
- package/dist/runtime/format-webp.iife.js +1 -1
- package/dist/runtime/format-webp.js +5 -5
- package/dist/runtime/gl.cjs +2 -2
- package/dist/runtime/gl.iife.js +1 -1
- package/dist/runtime/gl.js +2 -2
- package/dist/runtime/gltf-anim.cjs +2 -2
- package/dist/runtime/gltf-anim.iife.js +1 -1
- package/dist/runtime/gltf-anim.js +2 -2
- package/dist/runtime/gltf-decoders.cjs +2 -2
- package/dist/runtime/gltf-decoders.iife.js +1 -1
- package/dist/runtime/gltf-decoders.js +2 -2
- package/dist/runtime/lottie-state.cjs +2 -2
- package/dist/runtime/lottie-state.iife.js +1 -1
- package/dist/runtime/lottie-state.js +2 -2
- package/dist/runtime/physics.cjs +2 -2
- package/dist/runtime/physics.iife.js +1 -1
- package/dist/runtime/physics.js +2 -2
- package/dist/runtime/scroll.cjs +3 -3
- package/dist/runtime/scroll.iife.js +1 -1
- package/dist/runtime/scroll.js +3 -3
- package/dist/runtime/smooth.cjs +2 -2
- package/dist/runtime/smooth.iife.js +1 -1
- package/dist/runtime/smooth.js +2 -2
- package/dist/runtime/text.cjs +2 -2
- package/dist/runtime/text.iife.js +1 -1
- package/dist/runtime/text.js +2 -2
- package/dist/runtime/vector.cjs +4 -4
- package/dist/runtime/vector.iife.js +1 -1
- package/dist/runtime/vector.js +4 -4
- package/dist/runtime.cjs +4 -4
- package/dist/runtime.d.cts +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.iife.js +2 -2
- package/dist/runtime.js +6 -6
- package/dist/solid.cjs +1 -1
- package/dist/solid.js +1 -1
- package/dist/svelte.cjs +1 -1
- package/dist/svelte.js +1 -1
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +1 -1
- package/dist/widgets/add-to-cart.cjs +6 -6
- package/dist/widgets/add-to-cart.js +6 -6
- package/dist/widgets/badge-wall.cjs +3 -3
- package/dist/widgets/badge-wall.js +3 -3
- package/dist/widgets/bar-chart.cjs +2 -2
- package/dist/widgets/bar-chart.js +2 -2
- package/dist/widgets/bg-generator.cjs +4 -4
- package/dist/widgets/bg-generator.js +4 -4
- package/dist/widgets/carousel.cjs +3 -3
- package/dist/widgets/carousel.js +3 -3
- package/dist/widgets/cart-drawer.cjs +3 -3
- package/dist/widgets/cart-drawer.js +3 -3
- package/dist/widgets/chapter-nav.cjs +2 -2
- package/dist/widgets/chapter-nav.js +2 -2
- package/dist/widgets/chat-composer.cjs +2 -2
- package/dist/widgets/chat-composer.js +2 -2
- package/dist/widgets/clock-control.cjs +2 -2
- package/dist/widgets/clock-control.js +2 -2
- package/dist/widgets/code-export.cjs +3 -3
- package/dist/widgets/code-export.js +3 -3
- package/dist/widgets/color-picker.cjs +3 -3
- package/dist/widgets/color-picker.js +3 -3
- package/dist/widgets/command-palette.cjs +3 -3
- package/dist/widgets/command-palette.js +3 -3
- package/dist/widgets/compare.cjs +2 -2
- package/dist/widgets/compare.js +2 -2
- package/dist/widgets/countdown.cjs +3 -3
- package/dist/widgets/countdown.js +3 -3
- package/dist/widgets/cube-gallery.cjs +2 -2
- package/dist/widgets/cube-gallery.js +2 -2
- package/dist/widgets/date-picker.cjs +3 -3
- package/dist/widgets/date-picker.js +3 -3
- package/dist/widgets/disclosure.cjs +3 -3
- package/dist/widgets/disclosure.js +3 -3
- package/dist/widgets/dock.cjs +2 -2
- package/dist/widgets/dock.js +2 -2
- package/dist/widgets/dotlottie.cjs +5 -5
- package/dist/widgets/dotlottie.js +5 -5
- package/dist/widgets/equalizer.cjs +3 -3
- package/dist/widgets/equalizer.js +3 -3
- package/dist/widgets/festival-banner.cjs +3 -3
- package/dist/widgets/festival-banner.js +3 -3
- package/dist/widgets/field.cjs +3 -3
- package/dist/widgets/field.js +3 -3
- package/dist/widgets/file-drop.cjs +2 -2
- package/dist/widgets/file-drop.js +2 -2
- package/dist/widgets/gauge.cjs +2 -2
- package/dist/widgets/gauge.js +2 -2
- package/dist/widgets/gen-art.cjs +3 -3
- package/dist/widgets/gen-art.js +3 -3
- package/dist/widgets/gesture-sticker.cjs +3 -3
- package/dist/widgets/gesture-sticker.js +3 -3
- package/dist/widgets/gl-model.cjs +5 -5
- package/dist/widgets/gl-model.js +5 -5
- package/dist/widgets/gl-scene.cjs +5 -5
- package/dist/widgets/gl-scene.js +5 -5
- package/dist/widgets/globe.cjs +3 -3
- package/dist/widgets/globe.js +3 -3
- package/dist/widgets/gpu-particles.cjs +3 -3
- package/dist/widgets/gpu-particles.js +3 -3
- package/dist/widgets/gyro-card.cjs +3 -3
- package/dist/widgets/gyro-card.js +3 -3
- package/dist/widgets/hero-video.cjs +3 -3
- package/dist/widgets/hero-video.js +3 -3
- package/dist/widgets/hud-panel.cjs +2 -2
- package/dist/widgets/hud-panel.js +2 -2
- package/dist/widgets/hydrate.cjs +2 -2
- package/dist/widgets/hydrate.js +2 -2
- package/dist/widgets/install-button.cjs +2 -2
- package/dist/widgets/install-button.js +2 -2
- package/dist/widgets/kanban.cjs +2 -2
- package/dist/widgets/kanban.js +2 -2
- package/dist/widgets/keyframe-editor.cjs +5 -5
- package/dist/widgets/keyframe-editor.js +5 -5
- package/dist/widgets/kpi.cjs +3 -3
- package/dist/widgets/kpi.js +3 -3
- package/dist/widgets/leaderboard.cjs +3 -3
- package/dist/widgets/leaderboard.js +3 -3
- package/dist/widgets/liquid-nav.cjs +2 -2
- package/dist/widgets/liquid-nav.js +2 -2
- package/dist/widgets/location-card.cjs +3 -3
- package/dist/widgets/location-card.js +3 -3
- package/dist/widgets/lottie-icon.cjs +4 -4
- package/dist/widgets/lottie-icon.js +4 -4
- package/dist/widgets/lottie-player.cjs +5 -5
- package/dist/widgets/lottie-player.js +5 -5
- package/dist/widgets/lottie.cjs +3 -3
- package/dist/widgets/lottie.js +3 -3
- package/dist/widgets/lyrics.cjs +3 -3
- package/dist/widgets/lyrics.js +3 -3
- package/dist/widgets/masonry-flow.cjs +2 -2
- package/dist/widgets/masonry-flow.js +2 -2
- package/dist/widgets/menu-toggle.cjs +3 -3
- package/dist/widgets/menu-toggle.js +3 -3
- package/dist/widgets/menu.cjs +3 -3
- package/dist/widgets/menu.js +3 -3
- package/dist/widgets/message-list.cjs +2 -2
- package/dist/widgets/message-list.js +2 -2
- package/dist/widgets/milestones.cjs +2 -2
- package/dist/widgets/milestones.js +2 -2
- package/dist/widgets/modal.cjs +3 -3
- package/dist/widgets/modal.js +3 -3
- package/dist/widgets/motion-inspector.cjs +3 -3
- package/dist/widgets/motion-inspector.js +3 -3
- package/dist/widgets/motion-prefs.cjs +3 -3
- package/dist/widgets/motion-prefs.js +3 -3
- package/dist/widgets/motion-prompt.cjs +2 -2
- package/dist/widgets/motion-prompt.js +2 -2
- package/dist/widgets/motion-spec.cjs +4 -4
- package/dist/widgets/motion-spec.js +4 -4
- package/dist/widgets/motion.cjs +3 -3
- package/dist/widgets/motion.js +3 -3
- package/dist/widgets/music-player.cjs +2 -2
- package/dist/widgets/music-player.js +2 -2
- package/dist/widgets/native-preview.cjs +4 -4
- package/dist/widgets/native-preview.js +4 -4
- package/dist/widgets/nav-morph.cjs +3 -3
- package/dist/widgets/nav-morph.js +3 -3
- package/dist/widgets/notification-bell.cjs +2 -2
- package/dist/widgets/notification-bell.js +2 -2
- package/dist/widgets/odometer.cjs +3 -3
- package/dist/widgets/odometer.js +3 -3
- package/dist/widgets/organic-card.cjs +3 -3
- package/dist/widgets/organic-card.js +3 -3
- package/dist/widgets/otp.cjs +3 -3
- package/dist/widgets/otp.js +3 -3
- package/dist/widgets/pagination.cjs +3 -3
- package/dist/widgets/pagination.js +3 -3
- package/dist/widgets/panorama.cjs +3 -3
- package/dist/widgets/panorama.js +3 -3
- package/dist/widgets/parallax-layers.cjs +2 -2
- package/dist/widgets/parallax-layers.js +2 -2
- package/dist/widgets/pause-all.cjs +2 -2
- package/dist/widgets/pause-all.js +2 -2
- package/dist/widgets/perf-monitor.cjs +3 -3
- package/dist/widgets/perf-monitor.js +3 -3
- package/dist/widgets/physics-playground.cjs +5 -5
- package/dist/widgets/physics-playground.js +5 -5
- package/dist/widgets/plugin-card.cjs +4 -4
- package/dist/widgets/plugin-card.js +4 -4
- package/dist/widgets/plugin-store.cjs +4 -4
- package/dist/widgets/plugin-store.js +4 -4
- package/dist/widgets/presence.cjs +3 -3
- package/dist/widgets/presence.js +3 -3
- package/dist/widgets/prize-wheel.cjs +3 -3
- package/dist/widgets/prize-wheel.js +3 -3
- package/dist/widgets/product-gallery.cjs +3 -3
- package/dist/widgets/product-gallery.js +3 -3
- package/dist/widgets/progress-ring.cjs +3 -3
- package/dist/widgets/progress-ring.js +3 -3
- package/dist/widgets/prop-panel.cjs +3 -3
- package/dist/widgets/prop-panel.js +3 -3
- package/dist/widgets/pull-cord.cjs +3 -3
- package/dist/widgets/pull-cord.js +3 -3
- package/dist/widgets/radar.cjs +3 -3
- package/dist/widgets/radar.js +3 -3
- package/dist/widgets/reactions.cjs +3 -3
- package/dist/widgets/reactions.js +3 -3
- package/dist/widgets/red-envelope.cjs +2 -2
- package/dist/widgets/red-envelope.js +2 -2
- package/dist/widgets/retro-button.cjs +3 -3
- package/dist/widgets/retro-button.js +3 -3
- package/dist/widgets/rive.cjs +3 -3
- package/dist/widgets/rive.js +3 -3
- package/dist/widgets/route-transition.cjs +2 -2
- package/dist/widgets/route-transition.js +2 -2
- package/dist/widgets/scene.cjs +3 -3
- package/dist/widgets/scene.js +3 -3
- package/dist/widgets/scroll-ring.cjs +2 -2
- package/dist/widgets/scroll-ring.js +2 -2
- package/dist/widgets/scroll-scene.cjs +5 -5
- package/dist/widgets/scroll-scene.js +5 -5
- package/dist/widgets/segmented.cjs +3 -3
- package/dist/widgets/segmented.js +3 -3
- package/dist/widgets/shader-backdrop.cjs +3 -3
- package/dist/widgets/shader-backdrop.js +3 -3
- package/dist/widgets/sheet.cjs +3 -3
- package/dist/widgets/sheet.js +3 -3
- package/dist/widgets/shortcut.cjs +3 -3
- package/dist/widgets/shortcut.js +3 -3
- package/dist/widgets/skeleton-reveal.cjs +3 -3
- package/dist/widgets/skeleton-reveal.js +3 -3
- package/dist/widgets/sketch-chart.cjs +3 -3
- package/dist/widgets/sketch-chart.js +3 -3
- package/dist/widgets/smooth-scroll.cjs +4 -4
- package/dist/widgets/smooth-scroll.js +4 -4
- package/dist/widgets/snap-carousel.cjs +4 -4
- package/dist/widgets/snap-carousel.js +4 -4
- package/dist/widgets/sparkline.cjs +3 -3
- package/dist/widgets/sparkline.js +3 -3
- package/dist/widgets/spatial-card.cjs +2 -2
- package/dist/widgets/spatial-card.js +2 -2
- package/dist/widgets/star-rating.cjs +2 -2
- package/dist/widgets/star-rating.js +2 -2
- package/dist/widgets/stepper.cjs +3 -3
- package/dist/widgets/stepper.js +3 -3
- package/dist/widgets/sticky-wall.cjs +3 -3
- package/dist/widgets/sticky-wall.js +3 -3
- package/dist/widgets/stories.cjs +2 -2
- package/dist/widgets/stories.js +2 -2
- package/dist/widgets/suggestion-chips.cjs +3 -3
- package/dist/widgets/suggestion-chips.js +3 -3
- package/dist/widgets/swipe-deck.cjs +2 -2
- package/dist/widgets/swipe-deck.js +2 -2
- package/dist/widgets/switch.cjs +3 -3
- package/dist/widgets/switch.js +3 -3
- package/dist/widgets/tab-bar.cjs +3 -3
- package/dist/widgets/tab-bar.js +3 -3
- package/dist/widgets/terminal.cjs +2 -2
- package/dist/widgets/terminal.js +2 -2
- package/dist/widgets/text-splitter.cjs +4 -4
- package/dist/widgets/text-splitter.js +4 -4
- package/dist/widgets/theme-surface.cjs +3 -3
- package/dist/widgets/theme-surface.js +3 -3
- package/dist/widgets/theme-switcher.cjs +3 -3
- package/dist/widgets/theme-switcher.js +3 -3
- package/dist/widgets/tip.cjs +3 -3
- package/dist/widgets/tip.js +3 -3
- package/dist/widgets/toast-stack.cjs +4 -4
- package/dist/widgets/toast-stack.js +4 -4
- package/dist/widgets/token-editor.cjs +2 -2
- package/dist/widgets/token-editor.js +2 -2
- package/dist/widgets/upload-progress.cjs +3 -3
- package/dist/widgets/upload-progress.js +3 -3
- package/dist/widgets/video-card.cjs +2 -2
- package/dist/widgets/video-card.js +2 -2
- package/dist/widgets/voice-button.cjs +3 -3
- package/dist/widgets/voice-button.js +3 -3
- package/dist/widgets/volume-knob.cjs +3 -3
- package/dist/widgets/volume-knob.js +3 -3
- package/dist/widgets/weather-card.cjs +3 -3
- package/dist/widgets/weather-card.js +3 -3
- package/dist/widgets/worker-canvas.cjs +4 -4
- package/dist/widgets/worker-canvas.js +4 -4
- package/dist/widgets/xp-bar.cjs +3 -3
- package/dist/widgets/xp-bar.js +3 -3
- package/dist/widgets.umd.js +2 -2
- package/docs/ai-provider.md +1 -1
- package/docs/component-contract.md +12 -2
- package/docs/components/usa-dialog.md +1 -1
- package/docs/components/usa-modal.md +5 -5
- package/docs/components/usa-pull-refresh.md +1 -1
- package/docs/components/usa-sheet.md +5 -5
- package/docs/contract-report.json +1175 -27
- package/docs/contract-report.md +23 -15
- package/docs/versions.md +43 -0
- package/figma-plugin/code.js +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -2,21 +2,53 @@
|
|
|
2
2
|
|
|
3
3
|
# Motionary
|
|
4
4
|
|
|
5
|
-
**Scroll animations
|
|
5
|
+
**Scroll animations, animated Web Components and a zero-dependency motion runtime for the web.**
|
|
6
6
|
|
|
7
|
-
_Formerly **use-scroll-animate
|
|
7
|
+
_Formerly **use-scroll-animate**. The old npm package is still published as an alias of the same build._
|
|
8
8
|
|
|
9
|
-
[](https://www.npmjs.com/package/motionary) [](https://github.com/HarrisonCN/Motionary/actions/workflows/ci.yml) [](./LICENSE)
|
|
9
|
+
[](https://www.npmjs.com/package/motionary) [](https://github.com/HarrisonCN/Motionary/actions/workflows/ci.yml) [](https://bundlejs.com/?q=motionary/core) [](./LICENSE)
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
**English** | [简体中文](./README_zh.md) | [日本語](./README_ja.md)
|
|
12
12
|
|
|
13
|
-
**[
|
|
14
|
-
|
|
15
|
-
<sub>The Store lets you preview, tweak and copy all <b>227</b> animations — 214 scroll presets plus card, click, physics and page effects — at desktop and phone sizes.</sub>
|
|
13
|
+
**[Animation Store](https://harrisoncn.github.io/Motionary/showcase/)** · **[Components](https://harrisoncn.github.io/Motionary/showcase/components.html)** · **[Component playground](https://harrisoncn.github.io/Motionary/showcase/run.html)** · **[Timeline playground](https://harrisoncn.github.io/Motionary/showcase/playground.html)** · **[Scroll story](https://harrisoncn.github.io/Motionary/showcase/story.html)**
|
|
16
14
|
|
|
17
15
|
</div>
|
|
18
16
|
|
|
19
|
-
Motionary reveals content as it scrolls into view
|
|
17
|
+
Motionary reveals content as it scrolls into view and gives you 209 animated `<usa-*>` custom elements: cards, buttons,
|
|
18
|
+
physics, page transitions, generative backgrounds, Lottie, WebGL and more. It runs in plain HTML, in React, Vue, Svelte,
|
|
19
|
+
Solid and Angular, and in desktop web views (Electron, Tauri, WebView2). It has no runtime dependencies, every entry point
|
|
20
|
+
is tree-shakeable and has a gzip budget checked in CI, and every animation respects `prefers-reduced-motion`.
|
|
21
|
+
|
|
22
|
+
> 13.0: discover, copy, run. The 12.x tooling is now stable: MCP mounted validation (`validate_snippet { mount: true }`) and
|
|
23
|
+
> version-aware answers (`check_compat`), the Figma plugin export, the [component playground](https://harrisoncn.github.io/Motionary/showcase/run.html),
|
|
24
|
+
> `npx motionary export` and `npx motionary compat`. The import paths deprecated in 11.5 are removed. See
|
|
25
|
+
> [Upgrading to 13](#upgrading-to-13).
|
|
26
|
+
|
|
27
|
+
## Contents
|
|
28
|
+
|
|
29
|
+
[Features](#features) · [Install](#install) · [Quick start](#quick-start) · [Runtime tiers](#runtime-and-tiers) ·
|
|
30
|
+
[Components](#components-gallery-and-playground) · [CLI](#cli) · [MCP server and AI](#mcp-server-and-ai) ·
|
|
31
|
+
[Figma plugin](#figma-plugin) · [Accessibility](#accessibility) · [Size budgets](#size-budgets) ·
|
|
32
|
+
[Upgrading to 13](#upgrading-to-13) · [Versions](#versions-and-compatibility) · [Docs](#documentation) ·
|
|
33
|
+
[Contributing](#contributing) · [Reference](#reference)
|
|
34
|
+
|
|
35
|
+
## Features
|
|
36
|
+
|
|
37
|
+
- **214 scroll-reveal presets** in 14 families (33 in the core, 181 more in `motionary/presets/extended`): fades, zooms,
|
|
38
|
+
3D flips, clip-path shapes, blur and mask, bounce, depth, glitch, and scroll-linked `scrub-*`. Also `timeline()`,
|
|
39
|
+
`staggerChildren()` and `parallax()`.
|
|
40
|
+
- **209 `<usa-*>` Web Components**: 91 in `motionary/components` (by category) and 118 widgets, one entry point each
|
|
41
|
+
(`motionary/widgets/<name>`). Plus 141 effects with their own entry points (`motionary/effects/<name>`).
|
|
42
|
+
- **Motion Core**: `createMotion()` from `motionary/core`, a plugin-based engine at about 2.5 KB gzip (budget 10 KB).
|
|
43
|
+
- **A runtime of its own**: `motionary/runtime` (ticker, tween, timeline) plus 20 modules: scroll scenes, smooth scrolling,
|
|
44
|
+
text splitting, SVG morphing, sprites, GIF / APNG / WebP, Lottie and dotLottie, WebGL2, glTF / OBJ, 2D physics. They are
|
|
45
|
+
grouped in three tiers, and you pay only for the modules you import.
|
|
46
|
+
- **Any framework**: `motionary/react`, `motionary/vue`, `motionary/svelte`, `motionary/solid` and `motionary/angular`, plus
|
|
47
|
+
element wrappers in `motionary/components/react` · `vue` · `svelte` · `solid`. Importing on the server does nothing.
|
|
48
|
+
- **Tooling**: an MCP server for AI assistants, a local motion parser with an optional LLM provider, a Figma plugin, a
|
|
49
|
+
CLI that exports to CSS / mini program WXSS / HarmonyOS ArkTS, and codemods for every major.
|
|
50
|
+
- **Accessible by default**: reduced motion everywhere, user-facing motion controls, and one component contract
|
|
51
|
+
(attributes, events, keyboard, lifecycle) checked in CI.
|
|
20
52
|
|
|
21
53
|
## Install
|
|
22
54
|
|
|
@@ -24,41 +56,77 @@ Motionary reveals content as it scrolls into view (IntersectionObserver + Web An
|
|
|
24
56
|
npm i motionary
|
|
25
57
|
```
|
|
26
58
|
|
|
59
|
+
No build step? Use the CDN. URLs pin the major version (`@13`):
|
|
60
|
+
|
|
27
61
|
```html
|
|
28
|
-
<!--
|
|
29
|
-
<script src="https://unpkg.com/motionary@13/dist/index.umd.js"></script> <!-- window.ScrollAnimate -->
|
|
62
|
+
<script src="https://unpkg.com/motionary@13/dist/index.umd.js"></script> <!-- scroll API: window.ScrollAnimate -->
|
|
30
63
|
<script src="https://unpkg.com/motionary@13/dist/presets-extended.umd.js"></script> <!-- +181 presets -->
|
|
31
|
-
<script src="https://unpkg.com/motionary@13/dist/components.umd.js"></script> <!--
|
|
64
|
+
<script src="https://unpkg.com/motionary@13/dist/components.umd.js"></script> <!-- the motionary/components elements: window.UsaComponents -->
|
|
65
|
+
<script src="https://unpkg.com/motionary@13/dist/widgets.umd.js"></script> <!-- the widgets: window.UsaWidgets -->
|
|
32
66
|
```
|
|
33
67
|
|
|
34
|
-
jsDelivr works too: `https://cdn.jsdelivr.net/npm/motionary@13/dist/…`.
|
|
68
|
+
jsDelivr works too: `https://cdn.jsdelivr.net/npm/motionary@13/dist/…`. Already on `use-scroll-animate`? It keeps
|
|
69
|
+
working, at the same versions. To switch, replace the name in imports and URLs ([details](./docs/versions.md)).
|
|
35
70
|
|
|
36
|
-
##
|
|
71
|
+
## Quick start
|
|
37
72
|
|
|
38
|
-
|
|
73
|
+
### HTML: data attributes
|
|
39
74
|
|
|
40
75
|
```html
|
|
41
|
-
<!-- 1. HTML only: data attributes + one init() call -->
|
|
42
76
|
<h2 data-sa data-sa-animation="fade-in-up">Hello</h2>
|
|
43
77
|
<div data-sa data-sa-animation="bounce-in-up" data-sa-delay="150">Card</div>
|
|
78
|
+
|
|
44
79
|
<script type="module">
|
|
45
80
|
import ScrollAnimate from 'motionary';
|
|
46
81
|
import 'motionary/presets/extended'; // optional: +181 presets (bounce-in-up, clip-diamond, …)
|
|
47
|
-
ScrollAnimate.init();
|
|
82
|
+
ScrollAnimate.init(); // picks up every [data-sa]
|
|
48
83
|
</script>
|
|
49
84
|
```
|
|
50
85
|
|
|
86
|
+
Every option has a `data-sa-*` attribute ([API reference](./docs/API.md)).
|
|
87
|
+
|
|
88
|
+
### JavaScript
|
|
89
|
+
|
|
51
90
|
```js
|
|
52
|
-
|
|
53
|
-
import ScrollAnimate, { staggerChildren, parallax, timeline } from 'motionary';
|
|
91
|
+
import ScrollAnimate, { staggerChildren, parallax } from 'motionary';
|
|
54
92
|
|
|
55
93
|
ScrollAnimate.observe('.card', { animation: 'zoom-in-up', duration: 800, easing: 'spring' });
|
|
56
94
|
staggerChildren(document.querySelector('.grid'), { animation: 'stagger-pop', stagger: 60 });
|
|
57
95
|
parallax('.hero-bg', { speed: 0.3 });
|
|
96
|
+
// native scroll timeline, off the main thread where the browser supports it
|
|
58
97
|
ScrollAnimate.observe('.logo', { animation: 'scrub-spin', engine: 'css', viewRange: ['cover 0%', 'cover 100%'] });
|
|
59
98
|
```
|
|
60
99
|
|
|
61
|
-
|
|
100
|
+
### Motion Core (`motionary/core`)
|
|
101
|
+
|
|
102
|
+
```js
|
|
103
|
+
import { createMotion } from 'motionary/core';
|
|
104
|
+
import { retro, cinema } from 'motionary/plugins';
|
|
105
|
+
|
|
106
|
+
const motion = createMotion().use(retro, cinema);
|
|
107
|
+
motion.reveal('.card', 'fade-up', { stagger: 80 }); // scroll-in entrances
|
|
108
|
+
motion.bind(button, 'vhs-glitch', { trigger: 'click' }); // an effect on a trigger
|
|
109
|
+
await motion.play(hero, 'dolly-in', { duration: 900 }); // play once and wait for it
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
More: [docs/core.md](./docs/core.md).
|
|
113
|
+
|
|
114
|
+
### Web Components
|
|
115
|
+
|
|
116
|
+
```html
|
|
117
|
+
<script type="module">
|
|
118
|
+
import { defineComponents } from 'motionary/components';
|
|
119
|
+
defineComponents(); // or lazyDefine() from 'motionary/components/lazy': loads only the tags on the page
|
|
120
|
+
</script>
|
|
121
|
+
|
|
122
|
+
<usa-card effect="holo">…</usa-card>
|
|
123
|
+
<usa-button deform="gooey">Buy</usa-button>
|
|
124
|
+
<usa-fx effect="confetti" trigger="click"><button>Celebrate</button></usa-fx>
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Frameworks
|
|
128
|
+
|
|
129
|
+
Each adapter is its own entry point and cleans up on unmount.
|
|
62
130
|
|
|
63
131
|
```jsx
|
|
64
132
|
// React
|
|
@@ -94,90 +162,255 @@ const { animateRef } = useScrollAnimate({ animation: 'zoom-in' });
|
|
|
94
162
|
```jsx
|
|
95
163
|
// Solid
|
|
96
164
|
import { scrollAnimate } from 'motionary/solid';
|
|
97
|
-
scrollAnimate; //
|
|
165
|
+
scrollAnimate; // keeps the directive import (TypeScript)
|
|
98
166
|
export const Card = () => <div use:scrollAnimate={{ animation: 'blur-in-up' }}>Hello</div>;
|
|
99
167
|
```
|
|
100
168
|
|
|
101
169
|
```ts
|
|
102
|
-
// Angular (standalone)
|
|
170
|
+
// Angular (standalone): the <usa-*> elements
|
|
103
171
|
import { APP_INITIALIZER, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
|
|
104
|
-
import {
|
|
105
|
-
|
|
106
|
-
// app.config.ts: providers: [{ provide: APP_INITIALIZER, multi: true, useFactory: usaInitializer() }]
|
|
172
|
+
import { provideUsa } from 'motionary/angular';
|
|
173
|
+
// app.config.ts: providers: [provideUsa(APP_INITIALIZER, ['click', 'ui'])] (the categories to register)
|
|
107
174
|
@Component({ standalone: true, schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
108
|
-
template: `<usa-
|
|
109
|
-
export class
|
|
175
|
+
template: `<usa-checkbox label="Motion" [checked]="on" (usa:change)="on = $any($event).detail.checked"></usa-checkbox>` })
|
|
176
|
+
export class Settings { on = false; }
|
|
110
177
|
```
|
|
111
178
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
> 11.7: every `<usa-*>` element is audited against one contract — attributes, events, keyboard, lifecycle, reduced motion, errors ([docs/component-contract.md](./docs/component-contract.md), [report](./docs/contract-report.md)).
|
|
115
|
-
> 11.9: preparing for 12.0 — [docs/upgrading-12.md](./docs/upgrading-12.md) · `npx motionary doctor` · `npx usa-codemod-12 --write`.
|
|
116
|
-
> 12.0: one component contract for every `<usa-*>` element, enforced in CI — [docs/component-contract.md](./docs/component-contract.md) · upgrading: [docs/upgrading-12.md](./docs/upgrading-12.md).
|
|
117
|
-
> 12.1: cross-platform 3.0 — `npx motionary export --target css|wxss|arkts` for mini programs and HarmonyOS ArkUI, plus a [cross-platform previewer](https://harrisoncn.github.io/Motionary/showcase/xplat.html) — [docs/cross-platform.md](./docs/cross-platform.md).
|
|
118
|
-
> 12.2: `motionary-mcp` `validate_snippet { mount: true }` mounts generated code in a headless DOM with the real bundles and checks it against the component contract — [docs/mcp.md](./docs/mcp.md#mounted-validation-122).
|
|
119
|
-
> 12.3: the Figma plugin exports motion tokens (W3C JSON + CSS) and a runnable HTML page per selection, prerequisites in order — [figma-plugin/README.md](./figma-plugin/README.md).
|
|
120
|
-
> 12.4: [component playground](https://harrisoncn.github.io/Motionary/showcase/run.html) — every component as a runnable page with its prerequisites and tier, one-click copy.
|
|
121
|
-
> 12.5: version compatibility — the manifest records when each component / module arrived and changed; `motionary-mcp` answers for your installed version; `npx motionary compat <version>` — [docs/version-compat.md](./docs/version-compat.md).
|
|
122
|
-
> 13.0: discover, copy, run — the 12.x tooling is stable (MCP mounted validation `validate_snippet { mount }` + version-aware answers `check_compat`, Figma export, component playground, `motionary export`, `motionary compat`); the import paths deprecated in 11.5 are removed — [docs/upgrading-13.md](./docs/upgrading-13.md).
|
|
123
|
-
> 12.9: preparing for 13.0 — the import paths deprecated in 11.5 are removed in 13.0: [docs/upgrading-13.md](./docs/upgrading-13.md) · `npx motionary doctor` · `npx usa-codemod-13 --write`.
|
|
179
|
+
SSR, Next.js, Nuxt and SvelteKit: [docs/frameworks-ssr.md](./docs/frameworks-ssr.md). Every public subpath by layer:
|
|
180
|
+
[docs/public-api.md](./docs/public-api.md).
|
|
124
181
|
|
|
125
|
-
|
|
182
|
+
## Runtime and tiers
|
|
126
183
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
184
|
+
`motionary/runtime` is Motionary's own animation runtime: a shared ticker, tween and timeline engine, and one module per
|
|
185
|
+
feature or file format (`motionary/runtime/<module>`). Register what you use with `use()`. Each module belongs to a tier,
|
|
186
|
+
and a module only depends on its own tier or lower ones, so a basic page never downloads WebGL, 3D or physics code.
|
|
187
|
+
|
|
188
|
+
| Tier | Modules | Bundle (gzip, 13.0) | Budget |
|
|
189
|
+
|---|---|---:|---:|
|
|
190
|
+
| **Basic** | core (ticker, tween, timeline), `scroll`, `text`, `format-css`, `format-motion` | 10.83 KB | 12 KB |
|
|
191
|
+
| **Standard** | basic + `smooth`, `drag-snap`, `format-svg`, `format-sprite`, `format-gif`, `format-apng`, `format-webp`, `vector` (Lottie / dotLottie), `lottie-state`; official Rive runtime | 33.74 KB | 37 KB |
|
|
192
|
+
| **Advanced** | standard + `gl` (WebGL2), `format-gltf`, `format-obj`, `gltf-anim`, `gltf-decoders` (Draco / KTX2), `physics`, `format-scene` | 54.55 KB | 60 KB |
|
|
193
|
+
|
|
194
|
+
```js
|
|
195
|
+
import { use } from 'motionary/runtime';
|
|
196
|
+
import { scroll } from 'motionary/runtime/scroll';
|
|
197
|
+
import { defineScrollScene } from 'motionary/components/widgets';
|
|
198
|
+
|
|
199
|
+
use(scroll); // register the module first (this also registers the core)
|
|
200
|
+
defineScrollScene(); // then the component that needs it
|
|
135
201
|
```
|
|
136
202
|
|
|
137
|
-
|
|
203
|
+
A component that needs a module shows a **Requires:** badge in the gallery, and it throws a clear error (install, import,
|
|
204
|
+
CDN) when the module is missing. Details: [docs/runtime-tiers.md](./docs/runtime-tiers.md), one page per module in
|
|
205
|
+
[docs/runtime/](./docs/runtime/), and the [module and prerequisite tables](#reference) at the end of this README.
|
|
206
|
+
|
|
207
|
+
## Components, gallery and playground
|
|
138
208
|
|
|
139
|
-
|
|
|
209
|
+
| Page | What it does |
|
|
140
210
|
|---|---|
|
|
141
|
-
|
|
|
142
|
-
|
|
|
143
|
-
| **
|
|
144
|
-
|
|
|
145
|
-
|
|
|
146
|
-
|
|
|
147
|
-
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
211
|
+
| [Animation Store](https://harrisoncn.github.io/Motionary/showcase/) | Preview, tweak and copy every preset and effect at desktop and phone sizes |
|
|
212
|
+
| [Components](https://harrisoncn.github.io/Motionary/showcase/components.html) | The gallery: every `<usa-*>` element with its attributes, prerequisites and tier |
|
|
213
|
+
| [Component playground](https://harrisoncn.github.io/Motionary/showcase/run.html) | Each component as a complete runnable page: edit, **Run**, **Copy** or **Download** — all three use exactly what is in the editor (the download runs on its own). HTML (CDN) runs the whole page; npm + bundler runs the module through an import map. Missing prerequisites and errors show with the line that fixes them; deep links like `run.html#usa-tilt` |
|
|
214
|
+
| [Timeline playground](https://harrisoncn.github.io/Motionary/showcase/playground.html) | Visual keyframe editor; exports JSON for `<usa-player>` |
|
|
215
|
+
| [Scroll story](https://harrisoncn.github.io/Motionary/showcase/story.html) | `<usa-story>` scroll-storytelling templates |
|
|
216
|
+
| [Cross-platform previewer](https://harrisoncn.github.io/Motionary/showcase/xplat.html) | One preset on the web, in a mini program and in HarmonyOS ArkUI |
|
|
217
|
+
| [demo/index.html](./demo/index.html) | Every preset, no build step (open it locally) |
|
|
218
|
+
|
|
219
|
+
Import one category (`motionary/components/cards`), everything (`motionary/components`), the CSS-on-demand build
|
|
220
|
+
(`motionary/components/lite`), or one widget (`motionary/widgets/<name>`, e.g. `motionary/widgets/toast-stack`).
|
|
221
|
+
Every element: [docs/components.md](./docs/components.md), one page per element in
|
|
222
|
+
[docs/components/](./docs/components/README.md), every entry point in [docs/entry-points.md](./docs/entry-points.md).
|
|
223
|
+
|
|
224
|
+
<details>
|
|
225
|
+
<summary><b>The 91 elements in <code>motionary/components</code></b></summary>
|
|
226
|
+
|
|
227
|
+
| Category | Entry | Elements |
|
|
228
|
+
|---|---|---|
|
|
229
|
+
| **Scroll reveal** | `motionary/components/reveal` | `<usa-reveal>` · `<usa-stagger>` · `<usa-scroll-progress>` · `<usa-scrolly>` |
|
|
230
|
+
| **Text** | `motionary/components/text` | `<usa-typewriter>` · `<usa-split-text>` · `<usa-scramble>` · `<usa-counter>` · `<usa-shimmer-text>` · `<usa-text-rotate>` · `<usa-wave-text>` · `<usa-glitch>` · `<usa-gradient-text>` · `<usa-handwriting>` · `<usa-scroll-highlight>` |
|
|
231
|
+
| **Interaction** | `motionary/components/interaction` | `<usa-ripple>` · `<usa-magnetic>` · `<usa-tilt>` · `<usa-spotlight>` · `<usa-press>` |
|
|
232
|
+
| **Feedback** | `motionary/components/feedback` | `<usa-spinner>` · `<usa-skeleton>` · `<usa-progress>` · `<usa-toaster>` · `<usa-check>` |
|
|
233
|
+
| **Backgrounds** | `motionary/components/background` | `<usa-aurora>` · `<usa-particles>` · `<usa-grain>` · `<usa-marquee>` · `<usa-acrylic>` · `<usa-grid-glow>` · `<usa-blobs>` · `<usa-water-ripple>` · `<usa-dot-network>` |
|
|
234
|
+
| **Transitions** | `motionary/components/transitions` | `<usa-dialog>` · `<usa-accordion>` · `<usa-view-switch>` |
|
|
235
|
+
| **Spring & physics** | `motionary/components/physics` | `<usa-spring>` · `<usa-draggable>` · `<usa-overscroll>` |
|
|
236
|
+
| **Cards** | `motionary/components/cards` | `<usa-card>` · `<usa-card-stack>` · `<usa-sticky-stack>` · `<usa-carousel-3d>` |
|
|
237
|
+
| **Click & buttons** | `motionary/components/click` | `<usa-click>` · `<usa-button>` · `<usa-icon-morph>` · `<usa-like>` · `<usa-hold>` · `<usa-double-tap>` · `<usa-checkbox>` |
|
|
238
|
+
| **UI kit** | `motionary/components/ui` | `<usa-tabs>` · `<usa-drawer>` · `<usa-bottom-sheet>` · `<usa-pull-refresh>` · `<usa-fab>` · `<usa-navbar>` · `<usa-slider>` · `<usa-popover>` · `<usa-badge>` · `<usa-avatar-stack>` |
|
|
239
|
+
| **Page-wide** | `motionary/components/page` | `<usa-cursor>` · `<usa-fullpage>` · `<usa-loading-bar>` · `<usa-back-to-top>` · `<usa-ambient>` · `<usa-splash>` · `<usa-auto-skeleton>` · `<usa-motion-switch>` |
|
|
240
|
+
| **Timeline** | `motionary/components/timeline` | `<usa-timeline>` |
|
|
241
|
+
| **Gestures** | `motionary/components/gesture` | `<usa-swipeable>` · `<usa-pinch-zoom>` |
|
|
242
|
+
| **SVG** | `motionary/components/svg` | `<usa-draw>` · `<usa-morph>` · `<usa-mask-reveal>` · `<usa-anim-icon>` |
|
|
243
|
+
| **WebGL** | `motionary/components/webgl` | `<usa-shader>` · `<usa-distort>` · `<usa-liquid>` · `<usa-post-fx>` |
|
|
244
|
+
| **3D depth** | `motionary/components/depth` | `<usa-cube>` · `<usa-depth>` |
|
|
245
|
+
| **Layout** | `motionary/components/layout` | `<usa-auto-animate>` · `<usa-masonry>` |
|
|
246
|
+
| **Packs** | `motionary/components/packs` | `<usa-pack>` |
|
|
247
|
+
| **Effect registry** | `motionary/components/fx` | `<usa-fx>` |
|
|
248
|
+
| **Effect packs** | `motionary/components/effects` | `<usa-player>` · `<usa-story>` · `<usa-audio>` · `<usa-motion-theme>` · `<usa-gesture-fx>` |
|
|
249
|
+
|
|
250
|
+
</details>
|
|
251
|
+
|
|
252
|
+
## CLI
|
|
253
|
+
|
|
254
|
+
Everything ships in the `motionary` package and runs with `npx`:
|
|
255
|
+
|
|
256
|
+
| Command | What it does |
|
|
257
|
+
|---|---|
|
|
258
|
+
| `npx motionary doctor [paths…] [--json]` | Lists removed import paths and legacy event names in your project. Exits with code 1 when it finds any, so you can use it in CI |
|
|
259
|
+
| `npx motionary export --target css\|wxss\|arkts [--presets a,b] [--rpx] [--out file]` | Exports presets and motion tokens to CSS, mini program WXSS or HarmonyOS ArkTS ([docs/cross-platform.md](./docs/cross-platform.md)) |
|
|
260
|
+
| `npx motionary compat <version> [--json]` | What a project on that version can use, and what changed after it ([docs/version-compat.md](./docs/version-compat.md)) |
|
|
261
|
+
| `npx usa-codemod-13 [--write] [paths…]` | Rewrites the paths removed in 13.0 and CDN URLs pinned to `@10` / `@11` / `@12`. It is a dry run unless you pass `--write`. `usa-codemod-5` … `usa-codemod-12` cover the earlier majors |
|
|
262
|
+
| `npx create-motionary-plugin <name>` | Scaffolds an effect plugin with tests and a signing script |
|
|
263
|
+
| `npx -y -p motionary motionary-mcp` | Starts the MCP server (next section) |
|
|
264
|
+
|
|
265
|
+
## MCP server and AI
|
|
266
|
+
|
|
267
|
+
`motionary-mcp` is a read-only [Model Context Protocol](https://modelcontextprotocol.io) server. It lets Claude, Cursor,
|
|
268
|
+
VS Code, Windsurf, Zed and other MCP clients look up the component catalog and get snippets that already install, import
|
|
269
|
+
and register every prerequisite in the right order.
|
|
270
|
+
|
|
271
|
+
```json
|
|
272
|
+
{ "mcpServers": { "motionary": { "command": "npx", "args": ["-y", "-p", "motionary", "motionary-mcp"] } } }
|
|
273
|
+
```
|
|
152
274
|
|
|
153
|
-
|
|
275
|
+
Claude Code: `claude mcp add motionary -- npx -y -p motionary motionary-mcp`.
|
|
154
276
|
|
|
155
|
-
|
|
277
|
+
- Tools: `list_components`, `search_components`, `get_component`, `get_example`, `scaffold_snippet`, `suggest_motion`,
|
|
278
|
+
`validate_snippet`, `check_compat`.
|
|
279
|
+
- `validate_snippet { mount: true }` mounts the markup in jsdom (an optional peer: `npm i -D jsdom`) with the real bundles
|
|
280
|
+
and checks it against the component contract. The snippet's own scripts never run.
|
|
281
|
+
- Answers match the version installed in your project. `check_compat` lists what that version is missing or does differently.
|
|
282
|
+
- Full guide: [docs/mcp.md](./docs/mcp.md).
|
|
156
283
|
|
|
157
|
-
|
|
284
|
+
**Motion from text.** `motionary/tooling/ai` turns a description like "fade the cards up slowly, one after another" into
|
|
285
|
+
an effect, keyframes, CSS and matching components. The default parser is local and deterministic (English and
|
|
286
|
+
Chinese). To use your own LLM, pass a provider to `suggestMotion()`. Motionary bundles no vendor SDK and makes no
|
|
287
|
+
network request unless you pass a provider. Answers are checked against a JSON Schema, and the local result is used if
|
|
288
|
+
they fail.
|
|
158
289
|
|
|
159
|
-
|
|
290
|
+
```ts
|
|
291
|
+
import { suggestMotion } from 'motionary/tooling/ai';
|
|
292
|
+
const { intent, source } = await suggestMotion('cards cascade in like falling dominoes', { provider }); // provider is optional
|
|
293
|
+
el.animate(intent.keyframes, intent.options);
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
More: [docs/ai-provider.md](./docs/ai-provider.md) · [prompt guide](./docs/ai-prompt-guide.md) · [AGENTS.md](./AGENTS.md) ·
|
|
297
|
+
the site serves [`components.json`](https://harrisoncn.github.io/Motionary/components.json) and
|
|
298
|
+
[`llms.txt`](https://harrisoncn.github.io/Motionary/llms.txt).
|
|
299
|
+
|
|
300
|
+
## Figma plugin
|
|
301
|
+
|
|
302
|
+
[figma-plugin/](./figma-plugin/README.md) (also in `node_modules/motionary/figma-plugin/`) exports the current selection
|
|
303
|
+
as a **complete HTML page** (tokens, prerequisite scripts in order, one element per layer), **CSS tokens** and
|
|
304
|
+
**motion.tokens.json** (W3C design tokens). A layer named after a component (`usa-tilt`) becomes that element. Figma
|
|
305
|
+
variables `motion/duration/*` and `motion/easing/*` override the default tokens. The plugin has no network access and
|
|
306
|
+
never edits the document. See [figma-plugin/README.md](./figma-plugin/README.md) and [docs/motion-tokens.md](./docs/motion-tokens.md).
|
|
307
|
+
|
|
308
|
+
## Accessibility
|
|
309
|
+
|
|
310
|
+
- With `prefers-reduced-motion: reduce`, scroll reveals show content right away (no entrance, parallax or scrub), and
|
|
311
|
+
components switch to calm states (`staticAlternative()`, `adaptKeyframes()`).
|
|
312
|
+
- `motionary/components/a11y`: `setMotionSensitivity()` lets users turn off flashes, loops or parallax. It also has `announce()`
|
|
313
|
+
for live regions, `auditMotionA11y()` and `baselineReport()`. `<usa-motion-switch>` is a ready-made motion toggle for users.
|
|
314
|
+
- Every element follows one [component contract](./docs/component-contract.md) (keyboard, focus, events, lifecycle,
|
|
315
|
+
reduced motion), and `npm run check:contract` enforces it in CI.
|
|
316
|
+
- More: [docs/accessibility.md](./docs/accessibility.md).
|
|
317
|
+
|
|
318
|
+
## Size budgets
|
|
319
|
+
|
|
320
|
+
Every entry point has a fixed gzip budget in [`size-budget.json`](./size-budget.json) (401 entries). CI fails when an
|
|
321
|
+
entry goes over its budget, and budgets are never raised automatically. Measured on the 13.0.0 build (minified + gzip):
|
|
322
|
+
|
|
323
|
+
| What you import | gzip | Budget |
|
|
324
|
+
|---|---:|---:|
|
|
325
|
+
| `motionary/core` (`createMotion`) | 2.53 KB | 10.00 KB |
|
|
326
|
+
| `import ScrollAnimate from 'motionary'` (default instance) | 5.49 KB | 6.00 KB |
|
|
327
|
+
| Everything from `motionary` | 8.77 KB | 9.75 KB |
|
|
328
|
+
| `dist/index.umd.js` (CDN) | 8.93 KB | 9.75 KB |
|
|
329
|
+
| `parallax()` alone | 0.94 KB | 2.00 KB |
|
|
330
|
+
| `motionary/presets/extended` (181 presets) | 4.69 KB | 5.25 KB |
|
|
331
|
+
| `motionary/runtime` (runtime core) | 5.42 KB | 5.50 KB |
|
|
332
|
+
| `motionary/components/reveal` | 4.32 KB | 5.00 KB |
|
|
333
|
+
| `motionary/components/lite` (every element, CSS on demand) | 69.61 KB | 70.00 KB |
|
|
334
|
+
| `motionary/components` (every element + CSS) | 85.66 KB | 93.75 KB |
|
|
335
|
+
| `dist/components.umd.js` (CDN, everything) | 107.40 KB | 115.75 KB |
|
|
336
|
+
|
|
337
|
+
By default there are no scroll listeners (IntersectionObserver is used instead). Animations stay on the compositor
|
|
338
|
+
(`transform`, `opacity`, `filter`, `clip-path`). Imports have no side effects
|
|
339
|
+
([docs/tree-shaking.md](./docs/tree-shaking.md)). Every PR also measures first-screen transfer, script time, GPU resources
|
|
340
|
+
and frame stability in headless Chrome ([docs/perf-ci.md](./docs/perf-ci.md)). Source maps are not shipped to npm. They are
|
|
341
|
+
attached to each GitHub release instead ([docs/source-maps.md](./docs/source-maps.md)). More: [docs/performance.md](./docs/performance.md).
|
|
342
|
+
|
|
343
|
+
**Browsers:** evergreen browsers since 2023 (Chrome / Edge ≥ 111, Safari ≥ 16.4, Firefox ≥ 115, WebView2, Electron ≥ 24).
|
|
344
|
+
Motionary uses View Transitions and scroll-driven animations where the browser has them, and falls back to JavaScript
|
|
345
|
+
where it does not. `baselineReport()` checks a given browser.
|
|
346
|
+
|
|
347
|
+
## Upgrading to 13
|
|
348
|
+
|
|
349
|
+
13.0 breaks one thing: **the import paths deprecated in 11.5 are removed.** Their replacements serve the same files,
|
|
350
|
+
so behaviour and bundle size do not change.
|
|
351
|
+
|
|
352
|
+
```bash
|
|
353
|
+
npx motionary doctor # lists every removed path (and any legacy event name) in your project
|
|
354
|
+
npx usa-codemod-13 --write # rewrites them, plus CDN URLs pinned to @10 / @11 / @12 → @13
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
| Removed | Use instead |
|
|
160
358
|
|---|---|
|
|
161
|
-
|
|
|
162
|
-
|
|
|
163
|
-
|
|
|
164
|
-
|
|
|
165
|
-
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
359
|
+
| ~~motionary/components/core~~ | `motionary/core` |
|
|
360
|
+
| ~~motionary/components/ai~~ | `motionary/tooling/ai` |
|
|
361
|
+
| ~~motionary/components/design~~, ~~motionary/design~~ | `motionary/tooling/design` |
|
|
362
|
+
| ~~motionary/components/angular~~ | `motionary/angular` |
|
|
363
|
+
| ~~motionary/manifest.json~~, ~~motionary/manifest.schema.json~~ | `motionary/tooling/manifest.json`, `motionary/tooling/manifest.schema.json` |
|
|
364
|
+
|
|
365
|
+
The same applies to `use-scroll-animate/…`. Full guide: [docs/upgrading-13.md](./docs/upgrading-13.md).
|
|
366
|
+
Earlier majors: [12](./docs/upgrading-12.md) · [11](./docs/upgrading-11.md) · [10](./docs/upgrading-10.md) ·
|
|
367
|
+
[9](./docs/upgrading-9.md) · [8](./docs/upgrading-8.md) · [7](./docs/upgrading-7.md) · [6](./docs/upgrading-6.md) ·
|
|
368
|
+
[5](./docs/upgrading-5.md) · [4](./docs/upgrading-4.md) · [3](./docs/upgrading-3.md) · [2](./docs/deprecations.md).
|
|
369
|
+
Coming from another library: [AOS](./docs/migration-from-aos.md) · [GSAP ScrollTrigger](./docs/migration-from-gsap-scrolltrigger.md).
|
|
370
|
+
|
|
371
|
+
## Versions and compatibility
|
|
372
|
+
|
|
373
|
+
- **npm dist-tags:** `latest` is the current major with its patch releases (13.0.2). Each minor release also gets its own tag `v<major>-<minor>`
|
|
374
|
+
(for example `v12-9`). `motionary` and `use-scroll-animate` are published together at the same versions.
|
|
375
|
+
- **CDN:** URLs pin a major (`motionary@13`). Exact pins (`motionary@12.4.0`) keep working.
|
|
376
|
+
- **Semver:** breaking changes come only in majors, each with a guide and a codemod. Deprecations stay in place until the
|
|
377
|
+
next major, with `@deprecated` types and no runtime warning.
|
|
378
|
+
- **What each version has:** `since` / `changed` for every component and runtime module ([docs/version-compat.md](./docs/version-compat.md)),
|
|
379
|
+
feature-by-feature support ([docs/compat-matrix.md](./docs/compat-matrix.md)).
|
|
380
|
+
- Details: [docs/versions.md](./docs/versions.md) · [CHANGELOG.md](./CHANGELOG.md).
|
|
381
|
+
|
|
382
|
+
## Documentation
|
|
383
|
+
|
|
384
|
+
| Topic | Docs |
|
|
385
|
+
|---|---|
|
|
386
|
+
| Reference | [API](./docs/API.md) · [Presets](./docs/presets.md) (all 214) · [Components](./docs/components.md) · [Entry points](./docs/entry-points.md) · [Public API by layer](./docs/public-api.md) · [Motion Core](./docs/core.md) |
|
|
387
|
+
| Runtime | [Runtime tiers](./docs/runtime-tiers.md) · [Modules](./docs/runtime/) · [Compatibility matrix](./docs/compat-matrix.md) |
|
|
388
|
+
| Platforms | [Frameworks & SSR](./docs/frameworks-ssr.md) · [Windows apps](./docs/windows-apps.md) · [Hybrid apps (MAUI, Flutter, Electron, Tauri)](./docs/hybrid-apps.md) · [Cross-platform export](./docs/cross-platform.md) · [Examples](./examples/) |
|
|
389
|
+
| Design & AI | [Motion tokens](./docs/motion-tokens.md) · [Figma plugin](./figma-plugin/README.md) · [MCP server](./docs/mcp.md) · [AI provider](./docs/ai-provider.md) · [Prompt guide](./docs/ai-prompt-guide.md) |
|
|
390
|
+
| Quality | [Accessibility](./docs/accessibility.md) · [Component contract](./docs/component-contract.md) · [Performance](./docs/performance.md) · [Perf CI](./docs/perf-ci.md) · [Tree-shaking](./docs/tree-shaking.md) · [Source maps](./docs/source-maps.md) |
|
|
391
|
+
| Project | [Architecture](./docs/architecture.md) · [Roadmap](./docs/ROADMAP.md) · [Versions](./docs/versions.md) · [Changelog](./CHANGELOG.md) |
|
|
392
|
+
|
|
393
|
+
The architecture has four layers: Motion Core, Runtime, Components, and Tooling, with the framework entries on top.
|
|
394
|
+
`test/architecture.test.ts` enforces the import rules between layers ([docs/architecture.md](./docs/architecture.md)).
|
|
395
|
+
|
|
396
|
+
The docs in `docs/` are in English, except the roadmap, which is in Chinese.
|
|
397
|
+
|
|
398
|
+
## Contributing
|
|
399
|
+
|
|
400
|
+
Issues and pull requests are welcome. See [CONTRIBUTING.md](./CONTRIBUTING.md). Before you open a PR, run `npm test`,
|
|
401
|
+
`npm run build`, `npm run check:contract`, `npm run check:peer-docs` and `npm run size:check`. When you change behaviour,
|
|
402
|
+
update this README together with [README_zh.md](./README_zh.md) and [README_ja.md](./README_ja.md).
|
|
403
|
+
|
|
404
|
+
## License
|
|
405
|
+
|
|
406
|
+
MIT © HarrisonCN. See [LICENSE](./LICENSE).
|
|
407
|
+
|
|
408
|
+
## Reference
|
|
409
|
+
|
|
410
|
+
`node scripts/gen-runtime-docs.mjs` generates the tables below from the tested module data. Do not edit them by hand.
|
|
411
|
+
|
|
412
|
+
<details>
|
|
413
|
+
<summary><b>Runtime modules and component prerequisites</b></summary>
|
|
181
414
|
|
|
182
415
|
<!-- runtime:start -->
|
|
183
416
|
## Runtime (`motionary/runtime`) & prerequisites
|
|
@@ -569,6 +802,11 @@ defineGlModel(); // registers <usa-gl-model> — after the prerequisites
|
|
|
569
802
|
|
|
570
803
|
<!-- runtime:end -->
|
|
571
804
|
|
|
805
|
+
</details>
|
|
806
|
+
|
|
807
|
+
<details>
|
|
808
|
+
<summary><b>Stable API and compatibility matrix (frozen in 11.0)</b></summary>
|
|
809
|
+
|
|
572
810
|
<!-- stable:start -->
|
|
573
811
|
## Stable API (11.x) & compatibility matrix
|
|
574
812
|
|
|
@@ -610,72 +848,4 @@ From 11.0 these are stable and follow semver until 12.0 (additions only in minor
|
|
|
610
848
|
Feature by feature: [docs/compat-matrix.md](./docs/compat-matrix.md).
|
|
611
849
|
<!-- stable:end -->
|
|
612
850
|
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
- With `prefers-reduced-motion: reduce`, scroll reveals show content immediately (no entrance, parallax or scrub motion), and components fall back to calm states (`staticAlternative()` / `adaptKeyframes()`).
|
|
616
|
-
- `motionary/components/a11y`: `setMotionSensitivity()` levels let users drop flashes, loops or parallax; `announce()` live regions; `auditMotionA11y()`; `baselineReport()`. `<usa-motion-switch>` is a ready-made user-facing motion toggle.
|
|
617
|
-
- Details: [docs/accessibility.md](./docs/accessibility.md).
|
|
618
|
-
|
|
619
|
-
## Performance & size
|
|
620
|
-
|
|
621
|
-
No scroll listeners by default (IntersectionObserver), animations on the compositor (`transform`, `opacity`, `filter`, `clip-path`), optional off-main-thread native scroll timelines (`engine: 'css'`). Every entry is tree-shakeable and has a gzip budget enforced in CI (`size-budget.json`). Measured for 6.1 (minified + gzip):
|
|
622
|
-
|
|
623
|
-
| What you import | gzip |
|
|
624
|
-
|---|---:|
|
|
625
|
-
| `import ScrollAnimate from 'motionary'` (default instance) | 5.72 kB |
|
|
626
|
-
| Everything from the main entry | 8.69 kB |
|
|
627
|
-
| `dist/index.umd.js` (CDN) | 8.81 kB |
|
|
628
|
-
| `parallax()` alone | 1.22 kB |
|
|
629
|
-
| `motionary/presets/extended` (181 presets) | 4.69 kB |
|
|
630
|
-
| `motionary/components/reveal` | 4.10 kB |
|
|
631
|
-
| `motionary/components/effects` (8 effect packs) | 26.40 kB |
|
|
632
|
-
| `motionary/components/lite` (every component, CSS on demand) | 68.48 kB |
|
|
633
|
-
| `motionary/components` (every component + CSS) | 85.15 kB |
|
|
634
|
-
| `dist/components.umd.js` (CDN, everything) | 106.75 kB |
|
|
635
|
-
|
|
636
|
-
More: [docs/performance.md](./docs/performance.md).
|
|
637
|
-
|
|
638
|
-
## Browser support
|
|
639
|
-
|
|
640
|
-
Evergreen browsers since 2023: Chrome / Edge ≥ 111, Safari ≥ 16.4, Firefox ≥ 115, WebView2, Electron ≥ 24 (Custom Elements, Web Animations, IntersectionObserver, ResizeObserver, constructable stylesheets). View Transitions and scroll-driven animations are progressive — used when present, JS fallback otherwise. Importing on the server (SSR) is a no-op. Check a browser with `baselineReport()`.
|
|
641
|
-
|
|
642
|
-
## Documentation
|
|
643
|
-
|
|
644
|
-
- **Individual entry points (10.8+):** new components ship as their own entry (`motionary/components/snap-carousel`, `motionary/components/gl-model`, `motionary/components/dotlottie`) and are not added to `motionary/components/widgets` or the all-components `motionary/components/lite` bundle (its 70 KB gzip budget is fixed).
|
|
645
|
-
- **Per-component entry points (10.9):** every widget has `motionary/widgets/<name>` (tag without `usa-`, e.g. `motionary/widgets/toast-stack`, `motionary/widgets/dock`) and every 6.x+ effect has `motionary/effects/<name>` (e.g. `motionary/effects/pearlescent`, `motionary/effects/spectrum-mirror`); each registers only its own tag / effect, has a fixed gzip budget, and is listed in `components.json` (`entry`, `effects`). Full list: [docs/entry-points.md](docs/entry-points.md).
|
|
646
|
-
- **Upgrading to 11:** [docs/upgrading-11.md](docs/upgrading-11.md) (`npx usa-codemod-11 --write src`); 10.9 audit: [docs/audit-10.9.md](docs/audit-10.9.md).
|
|
647
|
-
- **MCP server:** `npx -y -p motionary motionary-mcp` — read-only component catalog for MCP clients (search, API, prerequisite-aware snippets; 2.0 adds `suggest_motion` and `validate_snippet`): [docs/mcp.md](docs/mcp.md).
|
|
648
|
-
- **AI assistants:** [AGENTS.md](AGENTS.md) · [prompt guide](docs/ai-prompt-guide.md) · one page per component in [docs/components/](docs/components/README.md) · `components.json` / `llms.txt` / `llms-full.txt` on the site root.
|
|
649
|
-
|
|
650
|
-
- [API reference](./docs/API.md) — every export, option and `data-sa-*` attribute
|
|
651
|
-
- [Presets](./docs/presets.md) — all 214 by category
|
|
652
|
-
- [Components](./docs/components.md) — every `<usa-*>` element, attribute and event
|
|
653
|
-
- [Frameworks & SSR](./docs/frameworks-ssr.md) · [Windows apps](./docs/windows-apps.md) · [Hybrid apps (MAUI, Flutter, Electron, Tauri)](./docs/hybrid-apps.md)
|
|
654
|
-
- [Motion tokens](./docs/motion-tokens.md) · [Migrating from AOS](./docs/migration-from-aos.md) · [from GSAP ScrollTrigger](./docs/migration-from-gsap-scrolltrigger.md)
|
|
655
|
-
- [Demo page](./demo/index.html) — every preset clickable, no build step
|
|
656
|
-
|
|
657
|
-
## Upgrading
|
|
658
|
-
|
|
659
|
-
- From `use-scroll-animate`: `npm i motionary` and replace `use-scroll-animate` with `motionary` in imports and CDN URLs — nothing else changes (the old package name keeps receiving the same releases).
|
|
660
|
-
- [Upgrading to 11.0](./docs/upgrading-11.md) (`npx usa-codemod-11`) · [10.0](./docs/upgrading-10.md) · [Upgrading to 6.0](./docs/upgrading-6.md) (`npx usa-codemod-6`) · [Upgrading to 5.0](./docs/upgrading-5.md) (`npx usa-codemod-5`) · [4.0](./docs/upgrading-4.md) · [3.0](./docs/upgrading-3.md) · [2.0](./docs/deprecations.md)
|
|
661
|
-
- [Changelog](./CHANGELOG.md)
|
|
662
|
-
|
|
663
|
-
## Architecture
|
|
664
|
-
|
|
665
|
-
Four logical layers — Public API (HTML · React · Vue · Svelte · Solid · Angular) → Components · Motion Core · Runtime → Motion Intelligence & Tooling — with import rules enforced by `test/architecture.test.ts`: [docs/architecture.md](./docs/architecture.md).
|
|
666
|
-
|
|
667
|
-
**Tree-shaking (11.1):** importing a module registers nothing and writes nothing to the page until you call `define*()` / `register*()` / `use()`; `sideEffects` lists only CSS, the UMD / IIFE builds, `presets/extended` and `components/lite`. Importing one export pulls in only its own code — see [docs/tree-shaking.md](./docs/tree-shaking.md).
|
|
668
|
-
|
|
669
|
-
**Source maps (11.2):** not shipped to npm (the package is about half the size); every built file still links its map in the release tag on GitHub, so DevTools resolves it on demand — see [docs/source-maps.md](./docs/source-maps.md).
|
|
670
|
-
|
|
671
|
-
**Performance in CI (11.3):** every PR measures, in headless Chrome, the first-screen transfer with on-demand loading, script parse / execute time, WebGL resources (and leaks after removal) and frame stability, against fixed budgets — see [docs/perf-ci.md](./docs/perf-ci.md).
|
|
672
|
-
|
|
673
|
-
**Runtime tiers (11.4):** `motionary/runtime` modules are **basic** (ticker, tween, timeline, scroll, text, CSS / WAAPI keyframes), **standard** (smooth scrolling, drag-snap, SVG, sprites, GIF / APNG / WebP, Lottie) or **advanced** (WebGL, 3D files and decoders, physics) — a page that only uses basic never pays for the rest. The manifest, the Store badges and `RUNTIME_TIERS` say which; see [docs/runtime-tiers.md](./docs/runtime-tiers.md).
|
|
674
|
-
|
|
675
|
-
## Roadmap
|
|
676
|
-
|
|
677
|
-
One version per PR towards 7.0 — particles & fluids, text effects, light & materials, 3D scenes, morphing, transitions, weather, interactive physics: [docs/ROADMAP.md](./docs/ROADMAP.md).
|
|
678
|
-
|
|
679
|
-
## Contributing & license
|
|
680
|
-
|
|
681
|
-
Issues and PRs welcome — see [CONTRIBUTING.md](./CONTRIBUTING.md). MIT © HarrisonCN — see [LICENSE](./LICENSE).
|
|
851
|
+
</details>
|