motionary 11.9.0 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/CHANGELOG.md +27 -0
- package/README.md +75 -73
- package/README_ja.md +4 -4
- package/README_zh.md +4 -4
- package/bin/motionary.mjs +29 -2
- package/bin/xplat.mjs +164 -0
- package/dist/chunks/{anim-image-B0OtraWD.cjs → anim-image-D_WUCgp4.cjs} +2 -2
- package/dist/chunks/{anim-image-C_KpJ7os.js → anim-image-KyCg37rY.js} +2 -2
- package/dist/chunks/{audio-h-eiqo5B.cjs → audio-BSQmg3MB.cjs} +2 -5
- package/dist/chunks/{audio-C10EnE3b.js → audio-DNNfcWi9.js} +2 -5
- package/dist/chunks/{badge-wall-CHvTcDpR.cjs → badge-wall-BPbL8OTC.cjs} +4 -1
- package/dist/chunks/{badge-wall-fWlK0AtX.js → badge-wall-Dg7S7RJn.js} +4 -1
- package/dist/chunks/base-B3me2y0o.cjs +1 -1
- package/dist/chunks/base-zSGb8ujt.js +1 -1
- package/dist/chunks/bg-generator-DKX8nt8T.js +1 -1
- package/dist/chunks/bg-generator-U6fomxZX.cjs +1 -1
- package/dist/chunks/bind-B_CTL6Qn.js +1 -1
- package/dist/chunks/bind-Ui43-n2d.cjs +1 -1
- package/dist/chunks/builtins-Cz3iufK6.cjs +1 -1
- package/dist/chunks/builtins-Simwbnqg.js +1 -1
- package/dist/chunks/carousel-BvdFWXZC.cjs +1 -1
- package/dist/chunks/carousel-C36_TV-w.js +1 -1
- package/dist/chunks/{cart-drawer-CDBjWN5-.js → cart-drawer-BIeW2ITt.js} +4 -1
- package/dist/chunks/{cart-drawer-BMth2aMo.cjs → cart-drawer-BRK4G_aL.cjs} +4 -1
- package/dist/chunks/code-export-B6NVzEhx.js +1 -1
- package/dist/chunks/code-export-BUcIsaA0.cjs +1 -1
- package/dist/chunks/{color-picker-DFvcXhEq.js → color-picker-6qKpXxrS.js} +2 -1
- package/dist/chunks/{color-picker-Dmr2b2J4.cjs → color-picker-CZvB7e4m.cjs} +2 -1
- package/dist/chunks/command-palette-BSTQQK3b.js +1 -1
- package/dist/chunks/command-palette-CNnX1Qlx.cjs +1 -1
- package/dist/chunks/core-BOCM9zD5.js +1 -1
- package/dist/chunks/core-BcQb_f91.js +1 -1
- package/dist/chunks/core-BdLFN0RS.cjs +1 -1
- package/dist/chunks/core-BjcOCpJt.cjs +1 -1
- package/dist/chunks/core-Dj6iomdc.js +1 -1
- package/dist/chunks/core-KIvPGg0c.cjs +1 -1
- package/dist/chunks/countdown-CzDT07_X.js +1 -1
- package/dist/chunks/countdown-D5fCuduX.cjs +1 -1
- package/dist/chunks/date-picker-DJ5URMsx.cjs +1 -1
- package/dist/chunks/date-picker-DKv1uKYq.js +1 -1
- package/dist/chunks/ease-HwYZnZat.cjs +1 -1
- package/dist/chunks/ease-XN8_0sXu.js +1 -1
- package/dist/chunks/equalizer-C8mel4Mn.js +1 -1
- package/dist/chunks/equalizer-D3iO1wBO.cjs +1 -1
- package/dist/chunks/festival-banner-BYn-HCza.js +1 -1
- package/dist/chunks/festival-banner-Dx7QAmxt.cjs +1 -1
- package/dist/chunks/field-BlWcKLcW.js +1 -1
- package/dist/chunks/field-CLbSJL_S.cjs +1 -1
- package/dist/chunks/fx-BaPAanPW.cjs +1 -1
- package/dist/chunks/fx-DUteojZx.js +1 -1
- package/dist/chunks/generative-2LhxG5BJ.js +1 -1
- package/dist/chunks/generative-BHIj-NU0.cjs +1 -1
- package/dist/chunks/{gl-scene-BO28sVfQ.cjs → gl-scene-BzOKrqVW.cjs} +2 -2
- package/dist/chunks/{gl-scene-B9CUF5f3.js → gl-scene-DqFpR0Z7.js} +2 -2
- package/dist/chunks/globe-6qzMhWwL.js +1 -1
- package/dist/chunks/globe-DDPNdPPD.cjs +1 -1
- package/dist/chunks/gpu-Dw1udOJW.cjs +1 -1
- package/dist/chunks/gpu-ML0i9eNv.js +1 -1
- package/dist/chunks/gpu-particles-Ce1Q_xJk.js +1 -1
- package/dist/chunks/gpu-particles-Z95SjKpc.cjs +1 -1
- 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-CDfaqK4L.js → keyframes-DbVzmsRL.js} +2 -2
- package/dist/chunks/{keyframes-DA6Ie3XT.cjs → keyframes-cJHH8OjN.cjs} +2 -2
- package/dist/chunks/{leaderboard-DYRLL45b.cjs → leaderboard-ButHN_NI.cjs} +4 -1
- package/dist/chunks/{leaderboard-BReEpUTf.js → leaderboard-PaGjUBdI.js} +4 -1
- package/dist/chunks/location-card-CLR05EP-.cjs +1 -1
- package/dist/chunks/location-card-D-jdyQge.js +1 -1
- package/dist/chunks/lottie-icon-1x0omshZ.js +1 -1
- package/dist/chunks/lottie-icon-DDKThCMc.cjs +1 -1
- package/dist/chunks/{lottie-player-Bs9X-VZY.js → lottie-player-CHqBhRAB.js} +2 -2
- package/dist/chunks/{lottie-player-B_4d1D6U.cjs → lottie-player-DGUpDJeC.cjs} +2 -2
- package/dist/chunks/{lyrics-CtKFEFtI.cjs → lyrics-gmFffOvn.cjs} +4 -1
- package/dist/chunks/{lyrics-DHri0dBh.js → lyrics-r4Z0TGnm.js} +4 -1
- package/dist/chunks/manifest-Bcz6rQ20.cjs +1 -1
- package/dist/chunks/manifest-pFJWahGJ.js +1 -1
- package/dist/chunks/menu-BTGBkd2U.js +1 -1
- package/dist/chunks/menu-BgO53POm.cjs +1 -1
- package/dist/chunks/{menu-toggle-uNItb_kw.cjs → menu-toggle-BJEK8BJD.cjs} +2 -1
- package/dist/chunks/{menu-toggle-Dpmz7Wm2.js → menu-toggle-Dch8f2GK.js} +2 -1
- package/dist/chunks/nav-morph-BlfdTr2-.js +1 -1
- package/dist/chunks/nav-morph-DvE3FgWw.cjs +1 -1
- package/dist/chunks/otp-B1_JY5KD.cjs +1 -1
- package/dist/chunks/otp-Dxw6l5CL.js +1 -1
- package/dist/chunks/{pagination-CpP1IDsD.cjs → pagination-C5bamOI4.cjs} +2 -1
- package/dist/chunks/{pagination-q9iyalDu.js → pagination-CFOc73i-.js} +2 -1
- package/dist/chunks/{physics-playground-Byj_5mso.cjs → physics-playground-C5K776AL.cjs} +3 -2
- package/dist/chunks/{physics-playground-YlkHVQQ3.js → physics-playground-DHO_tLsW.js} +3 -2
- package/dist/chunks/{player-oFkk6pPT.cjs → player-B7QRAdUN.cjs} +4 -8
- package/dist/chunks/{player-Ba3HWMUt.js → player-BA50IpKZ.js} +4 -8
- package/dist/chunks/presence-230b12uw.cjs +1 -1
- package/dist/chunks/presence-CPc3nH2E.js +1 -1
- package/dist/chunks/presets-BYBVJVeP.js +1 -1
- package/dist/chunks/presets-CUHys3sK.cjs +1 -1
- package/dist/chunks/{prize-wheel-DuS1Ud_o.cjs → prize-wheel-CYEPyee6.cjs} +4 -1
- package/dist/chunks/{prize-wheel-BzYWrEvu.js → prize-wheel-ClMtfLVa.js} +4 -1
- package/dist/chunks/product-gallery-DlVGui98.js +1 -1
- package/dist/chunks/product-gallery-mML9zLXE.cjs +1 -1
- package/dist/chunks/progress-ring-C8OHcD1x.cjs +1 -1
- package/dist/chunks/progress-ring-u5QwkDUc.js +1 -1
- package/dist/chunks/prop-panel-B4SaLelu.cjs +1 -1
- package/dist/chunks/prop-panel-CYTkWP9Y.js +1 -1
- package/dist/chunks/radar-B7ZGs9Ca.js +1 -1
- package/dist/chunks/radar-BWjX0-2G.cjs +1 -1
- package/dist/chunks/{reactions-BCX05Z6_.js → reactions-BTTEhsnZ.js} +4 -1
- package/dist/chunks/{reactions-BNpZ7cPy.cjs → reactions-D2QL8ezS.cjs} +4 -1
- package/dist/chunks/registry-BB1oO-lR.cjs +1 -1
- package/dist/chunks/registry-CYojuxi5.js +1 -1
- package/dist/chunks/{registry-CMjteilk.js → registry-D3VGJOuX.js} +3 -3
- package/dist/chunks/{registry-U0scTJZr.cjs → registry-VKfDCYYI.cjs} +3 -3
- package/dist/chunks/retro-button-CiVnwK4T.js +1 -1
- package/dist/chunks/retro-button-CqLmeF6H.cjs +1 -1
- package/dist/chunks/rive-CfWKBIa5.cjs +1 -1
- package/dist/chunks/rive-CtYlVrH0.js +1 -1
- package/dist/chunks/{runtime-link-2DE2Nz8C.js → runtime-link-CvJOTQYQ.js} +2 -2
- package/dist/chunks/{runtime-link-Cnij6nmH.cjs → runtime-link-CyExCzuU.cjs} +2 -2
- package/dist/chunks/scroll-driven-CQbwzCdn.cjs +1 -1
- package/dist/chunks/scroll-driven-LghshrWq.js +1 -1
- package/dist/chunks/{scroll-scene-CqaCIEZg.js → scroll-scene-BuR-Rq0p.js} +3 -3
- package/dist/chunks/{scroll-scene-D3NqonOT.cjs → scroll-scene-CFHW9iRD.cjs} +3 -3
- package/dist/chunks/segmented-BEuxQKN8.js +1 -1
- package/dist/chunks/segmented-omNqJ1vK.cjs +1 -1
- package/dist/chunks/shader-backdrop-Tnlj5ag3.cjs +1 -1
- package/dist/chunks/shader-backdrop-jJaiqu2T.js +1 -1
- 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-BHvZA7rD.js +1 -1
- package/dist/chunks/sheet-BfH5vWIW.cjs +1 -1
- package/dist/chunks/sign-DvZ1jHxE.js +1 -1
- package/dist/chunks/sign-RAkQIWrM.cjs +1 -1
- package/dist/chunks/skeleton-reveal-Dwm8Z6Iv.js +1 -1
- package/dist/chunks/skeleton-reveal-n4L3iur-.cjs +1 -1
- package/dist/chunks/sparkline-BtSW-HY0.js +1 -1
- package/dist/chunks/sparkline-DZiGHCOf.cjs +1 -1
- package/dist/chunks/spring-CznnvQCN.js +1 -1
- package/dist/chunks/spring-DcM7pQgx.cjs +1 -1
- package/dist/chunks/stagger-B9sKPwQB.js +1 -1
- package/dist/chunks/stagger-DFKwqOQG.cjs +1 -1
- package/dist/chunks/suggestion-chips-BVt6aSMC.cjs +1 -1
- package/dist/chunks/suggestion-chips-CtgmWPtH.js +1 -1
- package/dist/chunks/{switch-CztuZrH3.cjs → switch-BKhvELnx.cjs} +2 -1
- package/dist/chunks/{switch-DU21VZMJ.js → switch-CZCdSuCz.js} +2 -1
- package/dist/chunks/tab-bar-2d1734DE.js +1 -1
- package/dist/chunks/tab-bar-B3ucWWMl.cjs +1 -1
- package/dist/chunks/{ticker-D58R9_k6.cjs → ticker-Bx4j1lSk.cjs} +2 -2
- package/dist/chunks/{ticker-wWXyZQwD.js → ticker-vWmxVVge.js} +2 -2
- package/dist/chunks/tip-BQwC2KtE.cjs +1 -1
- package/dist/chunks/tip-r4VuAjSI.js +1 -1
- package/dist/chunks/toast-stack-D3zrI7U6.js +1 -1
- package/dist/chunks/toast-stack-DfFjAKGz.cjs +1 -1
- package/dist/chunks/{tween-B0nMjJJi.js → tween-DhlovBgd.js} +2 -2
- package/dist/chunks/{tween-DRtewovf.cjs → tween-DjySqWFm.cjs} +2 -2
- package/dist/chunks/upload-progress-CkfDSMr-.js +1 -1
- package/dist/chunks/upload-progress-DmywVhec.cjs +1 -1
- package/dist/chunks/variants-DRi3tBJf.js +1 -1
- package/dist/chunks/variants-cVfgIaXa.cjs +1 -1
- package/dist/chunks/voice-button-CZ5cpeWN.cjs +1 -1
- package/dist/chunks/voice-button-DVovZYBR.js +1 -1
- package/dist/chunks/weather-card-DCzxr5T4.cjs +1 -1
- package/dist/chunks/weather-card-pF9sSKuI.js +1 -1
- package/dist/chunks/worker-canvas-CDc2aIKC.cjs +1 -1
- package/dist/chunks/worker-canvas-Hl3quLAh.js +1 -1
- package/dist/chunks/xp-bar-D4Yq5Dpv.cjs +1 -1
- package/dist/chunks/xp-bar-j1FsL32r.js +1 -1
- package/dist/components/a11y.cjs +1 -1
- package/dist/components/a11y.js +1 -1
- package/dist/components/ai.cjs +1 -1
- package/dist/components/ai.js +1 -1
- package/dist/components/angular.cjs +1 -1
- package/dist/components/angular.js +1 -1
- package/dist/components/background.cjs +13 -1
- package/dist/components/background.js +13 -1
- package/dist/components/bridge.cjs +1 -1
- package/dist/components/bridge.js +1 -1
- package/dist/components/cards.cjs +2 -1
- package/dist/components/cards.js +2 -1
- package/dist/components/click.cjs +4 -1
- package/dist/components/click.js +4 -1
- package/dist/components/core.cjs +1 -1
- package/dist/components/core.js +1 -1
- package/dist/components/depth.cjs +1 -1
- package/dist/components/depth.js +1 -1
- package/dist/components/design.cjs +1 -1
- package/dist/components/design.js +1 -1
- package/dist/components/dotlottie.cjs +4 -4
- package/dist/components/dotlottie.js +4 -4
- package/dist/components/dsl.cjs +1 -1
- package/dist/components/dsl.js +1 -1
- package/dist/components/effects.cjs +3 -3
- package/dist/components/effects.d.cts +4 -4
- package/dist/components/effects.d.ts +4 -4
- package/dist/components/effects.js +5 -5
- package/dist/components/engine.cjs +1 -1
- package/dist/components/engine.js +1 -1
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.js +1 -1
- package/dist/components/fx-3d.cjs +1 -1
- package/dist/components/fx-3d.js +1 -1
- package/dist/components/fx-ai.cjs +1 -1
- package/dist/components/fx-ai.js +1 -1
- package/dist/components/fx-chart.cjs +1 -1
- package/dist/components/fx-chart.js +1 -1
- package/dist/components/fx-cinema.cjs +1 -1
- package/dist/components/fx-cinema.js +1 -1
- package/dist/components/fx-cyber.cjs +1 -1
- package/dist/components/fx-cyber.js +1 -1
- package/dist/components/fx-festival.cjs +1 -1
- package/dist/components/fx-festival.js +1 -1
- package/dist/components/fx-focus.cjs +1 -1
- package/dist/components/fx-focus.js +1 -1
- package/dist/components/fx-form.cjs +1 -1
- package/dist/components/fx-form.js +1 -1
- package/dist/components/fx-game.cjs +1 -1
- package/dist/components/fx-game.js +1 -1
- package/dist/components/fx-genart.cjs +1 -1
- package/dist/components/fx-genart.js +1 -1
- package/dist/components/fx-geo.cjs +1 -1
- package/dist/components/fx-geo.js +1 -1
- package/dist/components/fx-gesture.cjs +1 -1
- package/dist/components/fx-gesture.js +1 -1
- package/dist/components/fx-gpu.cjs +1 -1
- package/dist/components/fx-gpu.js +1 -1
- package/dist/components/fx-light.cjs +1 -1
- package/dist/components/fx-light.js +1 -1
- package/dist/components/fx-lottie.cjs +1 -1
- package/dist/components/fx-lottie.js +1 -1
- package/dist/components/fx-morph.cjs +1 -1
- package/dist/components/fx-morph.js +1 -1
- package/dist/components/fx-music.cjs +2 -2
- package/dist/components/fx-music.d.cts +1 -1
- package/dist/components/fx-music.d.ts +1 -1
- package/dist/components/fx-music.js +2 -2
- package/dist/components/fx-organic.cjs +1 -1
- package/dist/components/fx-organic.js +1 -1
- package/dist/components/fx-paper.cjs +1 -1
- package/dist/components/fx-paper.js +1 -1
- package/dist/components/fx-perf.cjs +1 -1
- package/dist/components/fx-perf.js +1 -1
- package/dist/components/fx-physics.cjs +1 -1
- package/dist/components/fx-physics.js +1 -1
- package/dist/components/fx-retro.cjs +1 -1
- package/dist/components/fx-retro.js +1 -1
- package/dist/components/fx-safe.cjs +1 -1
- package/dist/components/fx-safe.js +1 -1
- package/dist/components/fx-shop.cjs +1 -1
- package/dist/components/fx-shop.js +1 -1
- package/dist/components/fx-social.cjs +1 -1
- package/dist/components/fx-social.js +1 -1
- package/dist/components/fx-spatial.cjs +1 -1
- package/dist/components/fx-spatial.js +1 -1
- package/dist/components/fx-surface.cjs +1 -1
- package/dist/components/fx-surface.js +1 -1
- package/dist/components/fx-text.cjs +1 -1
- package/dist/components/fx-text.js +1 -1
- package/dist/components/fx-transitions.cjs +1 -1
- package/dist/components/fx-transitions.js +1 -1
- package/dist/components/fx-video.cjs +1 -1
- package/dist/components/fx-video.js +1 -1
- package/dist/components/fx-weather.cjs +1 -1
- package/dist/components/fx-weather.js +1 -1
- package/dist/components/fx.cjs +1 -1
- package/dist/components/fx.js +1 -1
- package/dist/components/fx2.cjs +2 -2
- package/dist/components/fx2.d.cts +1 -1
- package/dist/components/fx2.d.ts +1 -1
- package/dist/components/fx2.js +2 -2
- package/dist/components/gesture.cjs +4 -1
- package/dist/components/gesture.js +4 -1
- package/dist/components/gl-model.cjs +4 -4
- package/dist/components/gl-model.js +4 -4
- package/dist/components/interaction.cjs +1 -1
- package/dist/components/interaction.js +1 -1
- package/dist/components/jsx.cjs +1 -1
- package/dist/components/jsx.js +1 -1
- package/dist/components/layout.cjs +4 -1
- package/dist/components/layout.js +4 -1
- package/dist/components/lazy.cjs +1 -1
- package/dist/components/lazy.js +1 -1
- package/dist/components/lite.cjs +56 -1
- package/dist/components/lite.js +56 -1
- package/dist/components/marketplace.cjs +1 -1
- package/dist/components/marketplace.js +1 -1
- package/dist/components/native.cjs +1 -1
- package/dist/components/native.js +1 -1
- package/dist/components/packs.cjs +1 -1
- package/dist/components/packs.js +1 -1
- package/dist/components/page.cjs +16 -1
- package/dist/components/page.js +16 -1
- package/dist/components/perf.cjs +1 -1
- package/dist/components/perf.js +1 -1
- package/dist/components/physics.cjs +1 -1
- package/dist/components/physics.js +1 -1
- package/dist/components/plugins.cjs +2 -2
- package/dist/components/plugins.js +2 -2
- package/dist/components/react.cjs +1 -1
- package/dist/components/react.js +1 -1
- package/dist/components/reveal.cjs +1 -1
- package/dist/components/reveal.js +1 -1
- package/dist/components/snap-carousel.cjs +3 -3
- package/dist/components/snap-carousel.js +3 -3
- package/dist/components/solid.cjs +1 -1
- package/dist/components/solid.js +1 -1
- package/dist/components/svelte.cjs +1 -1
- package/dist/components/svelte.js +1 -1
- package/dist/components/svg.cjs +7 -1
- package/dist/components/svg.js +7 -1
- package/dist/components/text.cjs +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/timeline.cjs +1 -1
- package/dist/components/timeline.js +1 -1
- package/dist/components/tokens.cjs +1 -1
- package/dist/components/tokens.js +1 -1
- package/dist/components/transitions.cjs +1 -1
- package/dist/components/transitions.js +1 -1
- package/dist/components/ui.cjs +13 -1
- package/dist/components/ui.js +13 -1
- package/dist/components/vue.cjs +1 -1
- package/dist/components/vue.js +1 -1
- package/dist/components/webgl.cjs +1 -1
- package/dist/components/webgl.js +1 -1
- package/dist/components/widgets.cjs +18 -18
- package/dist/components/widgets.d.cts +1 -1
- package/dist/components/widgets.d.ts +1 -1
- package/dist/components/widgets.js +30 -30
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/components.umd.js +3 -3
- package/dist/effects/achievement-unlock.cjs +1 -1
- package/dist/effects/achievement-unlock.js +1 -1
- package/dist/effects/aurora-veil.cjs +1 -1
- package/dist/effects/aurora-veil.js +1 -1
- package/dist/effects/badge-pop.cjs +1 -1
- package/dist/effects/badge-pop.js +1 -1
- package/dist/effects/bars-grow.cjs +1 -1
- package/dist/effects/bars-grow.js +1 -1
- package/dist/effects/beat-bounce.cjs +2 -2
- package/dist/effects/beat-bounce.js +2 -2
- package/dist/effects/blob-button.cjs +1 -1
- package/dist/effects/blob-button.js +1 -1
- package/dist/effects/bloom.cjs +1 -1
- package/dist/effects/bloom.js +1 -1
- package/dist/effects/breathe.cjs +1 -1
- package/dist/effects/breathe.js +1 -1
- package/dist/effects/brushed-metal.cjs +1 -1
- package/dist/effects/brushed-metal.js +1 -1
- package/dist/effects/camera-dolly.cjs +1 -1
- package/dist/effects/camera-dolly.js +1 -1
- package/dist/effects/card-flip-3d.cjs +1 -1
- package/dist/effects/card-flip-3d.js +1 -1
- package/dist/effects/chest-open.cjs +1 -1
- package/dist/effects/chest-open.js +1 -1
- package/dist/effects/cloth.cjs +1 -1
- package/dist/effects/cloth.js +1 -1
- package/dist/effects/coin-burst.cjs +1 -1
- package/dist/effects/coin-burst.js +1 -1
- package/dist/effects/color-pulse.cjs +1 -1
- package/dist/effects/color-pulse.js +1 -1
- package/dist/effects/crt-power.cjs +1 -1
- package/dist/effects/crt-power.js +1 -1
- package/dist/effects/crumple.cjs +1 -1
- package/dist/effects/crumple.js +1 -1
- package/dist/effects/data-decode.cjs +1 -1
- package/dist/effects/data-decode.js +1 -1
- package/dist/effects/day-cycle.cjs +1 -1
- package/dist/effects/day-cycle.js +1 -1
- package/dist/effects/depth-in.cjs +1 -1
- package/dist/effects/depth-in.js +1 -1
- package/dist/effects/depth-pop.cjs +1 -1
- package/dist/effects/depth-pop.js +1 -1
- package/dist/effects/depth-stack.cjs +1 -1
- package/dist/effects/depth-stack.js +1 -1
- package/dist/effects/dolly-in.cjs +1 -1
- package/dist/effects/dolly-in.js +1 -1
- package/dist/effects/dots-pop.cjs +1 -1
- package/dist/effects/dots-pop.js +1 -1
- package/dist/effects/field-shake.cjs +1 -1
- package/dist/effects/field-shake.js +1 -1
- package/dist/effects/field-success.cjs +1 -1
- package/dist/effects/field-success.js +1 -1
- package/dist/effects/film-burn.cjs +1 -1
- package/dist/effects/film-burn.js +1 -1
- package/dist/effects/fire.cjs +1 -1
- package/dist/effects/fire.js +1 -1
- package/dist/effects/fireflies.cjs +1 -1
- package/dist/effects/fireflies.js +1 -1
- package/dist/effects/firework-burst.cjs +1 -1
- package/dist/effects/firework-burst.js +1 -1
- package/dist/effects/flip-chars.cjs +1 -1
- package/dist/effects/flip-chars.js +1 -1
- package/dist/effects/fluid.cjs +1 -1
- package/dist/effects/fluid.js +1 -1
- package/dist/effects/fly-to-cart.cjs +1 -1
- package/dist/effects/fly-to-cart.js +1 -1
- package/dist/effects/focus-draw.cjs +1 -1
- package/dist/effects/focus-draw.js +1 -1
- package/dist/effects/focus-glow.cjs +1 -1
- package/dist/effects/focus-glow.js +1 -1
- package/dist/effects/fog.cjs +1 -1
- package/dist/effects/fog.js +1 -1
- package/dist/effects/font-breathe.cjs +1 -1
- package/dist/effects/font-breathe.js +1 -1
- package/dist/effects/form-cascade.cjs +1 -1
- package/dist/effects/form-cascade.js +1 -1
- package/dist/effects/gen-skeleton.cjs +1 -1
- package/dist/effects/gen-skeleton.js +1 -1
- package/dist/effects/glass-frost.cjs +1 -1
- package/dist/effects/glass-frost.js +1 -1
- package/dist/effects/glitch-text.cjs +1 -1
- package/dist/effects/glitch-text.js +1 -1
- package/dist/effects/globe-spin.cjs +1 -1
- package/dist/effects/globe-spin.js +1 -1
- package/dist/effects/god-rays.cjs +1 -1
- package/dist/effects/god-rays.js +1 -1
- package/dist/effects/gpu-lift.cjs +1 -1
- package/dist/effects/gpu-lift.js +1 -1
- package/dist/effects/grain-flicker.cjs +1 -1
- package/dist/effects/grain-flicker.js +1 -1
- package/dist/effects/halftone-in.cjs +1 -1
- package/dist/effects/halftone-in.js +1 -1
- package/dist/effects/highlight-sweep.cjs +1 -1
- package/dist/effects/highlight-sweep.js +1 -1
- package/dist/effects/hologram.cjs +1 -1
- package/dist/effects/hologram.js +1 -1
- package/dist/effects/hud-frame.cjs +1 -1
- package/dist/effects/hud-frame.js +1 -1
- package/dist/effects/icon-pop.cjs +1 -1
- package/dist/effects/icon-pop.js +1 -1
- package/dist/effects/icon-swap.cjs +1 -1
- package/dist/effects/icon-swap.js +1 -1
- package/dist/effects/idle-reveal.cjs +1 -1
- package/dist/effects/idle-reveal.js +1 -1
- package/dist/effects/ink.cjs +1 -1
- package/dist/effects/ink.js +1 -1
- package/dist/effects/jump-cut.cjs +1 -1
- package/dist/effects/jump-cut.js +1 -1
- package/dist/effects/kaleido.cjs +1 -1
- package/dist/effects/kaleido.js +1 -1
- package/dist/effects/label-float.cjs +1 -1
- package/dist/effects/label-float.js +1 -1
- package/dist/effects/lantern-rise.cjs +1 -1
- package/dist/effects/lantern-rise.js +1 -1
- package/dist/effects/leaves.cjs +1 -1
- package/dist/effects/leaves.js +1 -1
- package/dist/effects/letterbox.cjs +1 -1
- package/dist/effects/letterbox.js +1 -1
- package/dist/effects/level-up.cjs +1 -1
- package/dist/effects/level-up.js +1 -1
- package/dist/effects/light-follow.cjs +1 -1
- package/dist/effects/light-follow.js +1 -1
- package/dist/effects/lightning.cjs +1 -1
- package/dist/effects/lightning.js +1 -1
- package/dist/effects/line-draw.cjs +1 -1
- package/dist/effects/line-draw.js +1 -1
- package/dist/effects/liquid-text.cjs +1 -1
- package/dist/effects/liquid-text.js +1 -1
- package/dist/effects/liquid-wipe.cjs +1 -1
- package/dist/effects/liquid-wipe.js +1 -1
- package/dist/effects/lottie-play.cjs +1 -1
- package/dist/effects/lottie-play.js +1 -1
- package/dist/effects/magnet.cjs +1 -1
- package/dist/effects/magnet.js +1 -1
- package/dist/effects/marching-ants.cjs +1 -1
- package/dist/effects/marching-ants.js +1 -1
- package/dist/effects/marker-pulse.cjs +1 -1
- package/dist/effects/marker-pulse.js +1 -1
- package/dist/effects/mention-glow.cjs +1 -1
- package/dist/effects/mention-glow.js +1 -1
- package/dist/effects/mesh-drift.cjs +1 -1
- package/dist/effects/mesh-drift.js +1 -1
- package/dist/effects/message-in.cjs +1 -1
- package/dist/effects/message-in.js +1 -1
- package/dist/effects/mosaic-flip.cjs +1 -1
- package/dist/effects/mosaic-flip.js +1 -1
- package/dist/effects/neon-ignite.cjs +1 -1
- package/dist/effects/neon-ignite.js +1 -1
- package/dist/effects/neon-pulse.cjs +1 -1
- package/dist/effects/neon-pulse.js +1 -1
- package/dist/effects/neon-write.cjs +1 -1
- package/dist/effects/neon-write.js +1 -1
- package/dist/effects/neu-press.cjs +1 -1
- package/dist/effects/neu-press.js +1 -1
- package/dist/effects/noise-reveal.cjs +1 -1
- package/dist/effects/noise-reveal.js +1 -1
- package/dist/effects/number-roll.cjs +1 -1
- package/dist/effects/number-roll.js +1 -1
- package/dist/effects/orbit-camera.cjs +1 -1
- package/dist/effects/orbit-camera.js +1 -1
- package/dist/effects/orbit-in.cjs +1 -1
- package/dist/effects/orbit-in.js +1 -1
- package/dist/effects/origami.cjs +1 -1
- package/dist/effects/origami.js +1 -1
- package/dist/effects/page-curl.cjs +1 -1
- package/dist/effects/page-curl.js +1 -1
- package/dist/effects/pan-reveal.cjs +1 -1
- package/dist/effects/pan-reveal.js +1 -1
- package/dist/effects/paper-unfold.cjs +1 -1
- package/dist/effects/paper-unfold.js +1 -1
- package/dist/effects/particle-text.cjs +1 -1
- package/dist/effects/particle-text.js +1 -1
- package/dist/effects/path-morph.cjs +1 -1
- package/dist/effects/path-morph.js +1 -1
- package/dist/effects/pearlescent.cjs +1 -1
- package/dist/effects/pearlescent.js +1 -1
- package/dist/effects/pencil-sketch.cjs +1 -1
- package/dist/effects/pencil-sketch.js +1 -1
- package/dist/effects/pin-drop.cjs +1 -1
- package/dist/effects/pin-drop.js +1 -1
- package/dist/effects/pinball.cjs +1 -1
- package/dist/effects/pinball.js +1 -1
- package/dist/effects/pinch-hint.cjs +1 -1
- package/dist/effects/pinch-hint.js +1 -1
- package/dist/effects/pixelate-in.cjs +1 -1
- package/dist/effects/pixelate-in.js +1 -1
- package/dist/effects/pointer-shadow.cjs +1 -1
- package/dist/effects/pointer-shadow.js +1 -1
- package/dist/effects/portal-open.cjs +1 -1
- package/dist/effects/portal-open.js +1 -1
- package/dist/effects/price-flip.cjs +1 -1
- package/dist/effects/price-flip.js +1 -1
- package/dist/effects/product-spin.cjs +1 -1
- package/dist/effects/product-spin.js +1 -1
- package/dist/effects/rack-focus.cjs +1 -1
- package/dist/effects/rack-focus.js +1 -1
- package/dist/effects/radial-spectrum.cjs +2 -2
- package/dist/effects/radial-spectrum.js +2 -2
- package/dist/effects/rain-glass.cjs +1 -1
- package/dist/effects/rain-glass.js +1 -1
- package/dist/effects/reaction-burst.cjs +1 -1
- package/dist/effects/reaction-burst.js +1 -1
- package/dist/effects/read-receipt.cjs +1 -1
- package/dist/effects/read-receipt.js +1 -1
- package/dist/effects/refraction.cjs +1 -1
- package/dist/effects/refraction.js +1 -1
- package/dist/effects/ring-sweep.cjs +1 -1
- package/dist/effects/ring-sweep.js +1 -1
- package/dist/effects/ripple-dissolve.cjs +1 -1
- package/dist/effects/ripple-dissolve.js +1 -1
- package/dist/effects/rope.cjs +1 -1
- package/dist/effects/rope.js +1 -1
- package/dist/effects/route-draw.cjs +1 -1
- package/dist/effects/route-draw.js +1 -1
- package/dist/effects/safe-fade.cjs +1 -1
- package/dist/effects/safe-fade.js +1 -1
- package/dist/effects/sakura.cjs +1 -1
- package/dist/effects/sakura.js +1 -1
- package/dist/effects/sale-shine.cjs +1 -1
- package/dist/effects/sale-shine.js +1 -1
- package/dist/effects/sankey-flow.cjs +1 -1
- package/dist/effects/sankey-flow.js +1 -1
- package/dist/effects/scanline-sweep.cjs +1 -1
- package/dist/effects/scanline-sweep.js +1 -1
- package/dist/effects/shatter.cjs +1 -1
- package/dist/effects/shatter.js +1 -1
- package/dist/effects/smoke.cjs +1 -1
- package/dist/effects/smoke.js +1 -1
- package/dist/effects/snowfall.cjs +1 -1
- package/dist/effects/snowfall.js +1 -1
- package/dist/effects/soft-body.cjs +1 -1
- package/dist/effects/soft-body.js +1 -1
- package/dist/effects/sound-particles.cjs +2 -2
- package/dist/effects/sound-particles.js +2 -2
- package/dist/effects/spatial-float.cjs +1 -1
- package/dist/effects/spatial-float.js +1 -1
- package/dist/effects/spectrum-mirror.cjs +2 -2
- package/dist/effects/spectrum-mirror.js +2 -2
- package/dist/effects/splash.cjs +1 -1
- package/dist/effects/splash.js +1 -1
- package/dist/effects/spooky-float.cjs +1 -1
- package/dist/effects/spooky-float.js +1 -1
- package/dist/effects/stock-pulse.cjs +1 -1
- package/dist/effects/stock-pulse.js +1 -1
- package/dist/effects/stream-text.cjs +1 -1
- package/dist/effects/stream-text.js +1 -1
- package/dist/effects/stroke-draw.cjs +1 -1
- package/dist/effects/stroke-draw.js +1 -1
- package/dist/effects/success-check.cjs +1 -1
- package/dist/effects/success-check.js +1 -1
- package/dist/effects/swipe-hint.cjs +1 -1
- package/dist/effects/swipe-hint.js +1 -1
- package/dist/effects/text-trail.cjs +1 -1
- package/dist/effects/text-trail.js +1 -1
- package/dist/effects/thinking-glow.cjs +1 -1
- package/dist/effects/thinking-glow.js +1 -1
- package/dist/effects/tilt-wobble.cjs +1 -1
- package/dist/effects/tilt-wobble.js +1 -1
- package/dist/effects/typing-dots.cjs +1 -1
- package/dist/effects/typing-dots.js +1 -1
- package/dist/effects/underline-sweep.cjs +1 -1
- package/dist/effects/underline-sweep.js +1 -1
- package/dist/effects/vhs-glitch.cjs +1 -1
- package/dist/effects/vhs-glitch.js +1 -1
- package/dist/effects/vine-grow.cjs +1 -1
- package/dist/effects/vine-grow.js +1 -1
- package/dist/effects/vinyl-spin.cjs +2 -2
- package/dist/effects/vinyl-spin.js +2 -2
- package/dist/effects/voice-wave.cjs +1 -1
- package/dist/effects/voice-wave.js +1 -1
- package/dist/effects/water-drop.cjs +1 -1
- package/dist/effects/water-drop.js +1 -1
- package/dist/effects/watercolor.cjs +1 -1
- package/dist/effects/watercolor.js +1 -1
- package/dist/effects/waveform-scope.cjs +2 -2
- package/dist/effects/waveform-scope.js +2 -2
- package/dist/effects/xmas-snow.cjs +1 -1
- package/dist/effects/xmas-snow.js +1 -1
- package/dist/effects/xp-gain.cjs +1 -1
- package/dist/effects/xp-gain.js +1 -1
- package/dist/effects/y2k-shine.cjs +1 -1
- package/dist/effects/y2k-shine.js +1 -1
- package/dist/element.cjs +1 -1
- package/dist/element.js +1 -1
- package/dist/element.umd.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/llms-full.txt +332 -300
- package/dist/llms.txt +2 -2
- package/dist/manifest.json +421 -301
- 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 +2 -2
- package/dist/runtime.d.ts +2 -2
- 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 +4 -1
- package/dist/widgets/add-to-cart.js +4 -1
- package/dist/widgets/badge-wall.cjs +2 -2
- package/dist/widgets/badge-wall.js +2 -2
- package/dist/widgets/bar-chart.cjs +1 -1
- package/dist/widgets/bar-chart.js +1 -1
- package/dist/widgets/bg-generator.cjs +1 -1
- package/dist/widgets/bg-generator.js +1 -1
- package/dist/widgets/carousel.cjs +1 -1
- package/dist/widgets/carousel.js +1 -1
- package/dist/widgets/cart-drawer.cjs +2 -2
- package/dist/widgets/cart-drawer.js +2 -2
- package/dist/widgets/chapter-nav.cjs +1 -1
- package/dist/widgets/chapter-nav.js +1 -1
- package/dist/widgets/chat-composer.cjs +1 -1
- package/dist/widgets/chat-composer.js +1 -1
- package/dist/widgets/clock-control.cjs +1 -1
- package/dist/widgets/clock-control.js +1 -1
- package/dist/widgets/code-export.cjs +1 -1
- package/dist/widgets/code-export.js +1 -1
- package/dist/widgets/color-picker.cjs +2 -2
- package/dist/widgets/color-picker.js +2 -2
- package/dist/widgets/command-palette.cjs +1 -1
- package/dist/widgets/command-palette.js +1 -1
- package/dist/widgets/compare.cjs +1 -1
- package/dist/widgets/compare.js +1 -1
- package/dist/widgets/countdown.cjs +1 -1
- package/dist/widgets/countdown.js +1 -1
- package/dist/widgets/cube-gallery.cjs +1 -1
- package/dist/widgets/cube-gallery.js +1 -1
- package/dist/widgets/date-picker.cjs +1 -1
- package/dist/widgets/date-picker.js +1 -1
- package/dist/widgets/disclosure.cjs +4 -1
- package/dist/widgets/disclosure.js +4 -1
- package/dist/widgets/dock.cjs +1 -1
- package/dist/widgets/dock.js +1 -1
- package/dist/widgets/dotlottie.cjs +4 -4
- package/dist/widgets/dotlottie.js +4 -4
- package/dist/widgets/equalizer.cjs +1 -1
- package/dist/widgets/equalizer.js +1 -1
- package/dist/widgets/festival-banner.cjs +1 -1
- package/dist/widgets/festival-banner.js +1 -1
- package/dist/widgets/field.cjs +1 -1
- package/dist/widgets/field.js +1 -1
- package/dist/widgets/file-drop.cjs +4 -1
- package/dist/widgets/file-drop.js +4 -1
- package/dist/widgets/gauge.cjs +1 -1
- package/dist/widgets/gauge.js +1 -1
- package/dist/widgets/gen-art.cjs +1 -1
- package/dist/widgets/gen-art.js +1 -1
- package/dist/widgets/gesture-sticker.cjs +1 -1
- package/dist/widgets/gesture-sticker.js +1 -1
- package/dist/widgets/gl-model.cjs +4 -4
- package/dist/widgets/gl-model.js +4 -4
- package/dist/widgets/gl-scene.cjs +4 -4
- package/dist/widgets/gl-scene.js +4 -4
- package/dist/widgets/globe.cjs +1 -1
- package/dist/widgets/globe.js +1 -1
- package/dist/widgets/gpu-particles.cjs +1 -1
- package/dist/widgets/gpu-particles.js +1 -1
- package/dist/widgets/gyro-card.cjs +1 -1
- package/dist/widgets/gyro-card.js +1 -1
- package/dist/widgets/hero-video.cjs +1 -1
- package/dist/widgets/hero-video.js +1 -1
- package/dist/widgets/hud-panel.cjs +1 -1
- package/dist/widgets/hud-panel.js +1 -1
- package/dist/widgets/hydrate.cjs +1 -1
- package/dist/widgets/hydrate.js +1 -1
- package/dist/widgets/install-button.cjs +1 -1
- package/dist/widgets/install-button.js +1 -1
- package/dist/widgets/kanban.cjs +4 -1
- package/dist/widgets/kanban.js +4 -1
- package/dist/widgets/keyframe-editor.cjs +5 -2
- package/dist/widgets/keyframe-editor.js +5 -2
- package/dist/widgets/kpi.cjs +2 -1
- package/dist/widgets/kpi.js +2 -1
- package/dist/widgets/leaderboard.cjs +2 -2
- package/dist/widgets/leaderboard.js +2 -2
- package/dist/widgets/liquid-nav.cjs +1 -1
- package/dist/widgets/liquid-nav.js +1 -1
- package/dist/widgets/location-card.cjs +1 -1
- package/dist/widgets/location-card.js +1 -1
- package/dist/widgets/lottie-icon.cjs +1 -1
- package/dist/widgets/lottie-icon.js +1 -1
- package/dist/widgets/lottie-player.cjs +4 -4
- package/dist/widgets/lottie-player.js +4 -4
- package/dist/widgets/lottie.cjs +1 -1
- package/dist/widgets/lottie.js +1 -1
- package/dist/widgets/lyrics.cjs +2 -2
- package/dist/widgets/lyrics.js +2 -2
- package/dist/widgets/masonry-flow.cjs +1 -1
- package/dist/widgets/masonry-flow.js +1 -1
- package/dist/widgets/menu-toggle.cjs +2 -2
- package/dist/widgets/menu-toggle.js +2 -2
- package/dist/widgets/menu.cjs +1 -1
- package/dist/widgets/menu.js +1 -1
- package/dist/widgets/message-list.cjs +4 -1
- package/dist/widgets/message-list.js +4 -1
- package/dist/widgets/milestones.cjs +1 -1
- package/dist/widgets/milestones.js +1 -1
- package/dist/widgets/modal.cjs +1 -1
- package/dist/widgets/modal.js +1 -1
- package/dist/widgets/motion-inspector.cjs +2 -2
- package/dist/widgets/motion-inspector.js +2 -2
- package/dist/widgets/motion-prefs.cjs +1 -1
- package/dist/widgets/motion-prefs.js +1 -1
- package/dist/widgets/motion-prompt.cjs +1 -1
- package/dist/widgets/motion-prompt.js +1 -1
- package/dist/widgets/motion-spec.cjs +1 -1
- package/dist/widgets/motion-spec.js +1 -1
- package/dist/widgets/motion.cjs +1 -1
- package/dist/widgets/motion.js +1 -1
- package/dist/widgets/music-player.cjs +1 -1
- package/dist/widgets/music-player.js +1 -1
- package/dist/widgets/native-preview.cjs +1 -1
- package/dist/widgets/native-preview.js +1 -1
- package/dist/widgets/nav-morph.cjs +1 -1
- package/dist/widgets/nav-morph.js +1 -1
- package/dist/widgets/notification-bell.cjs +4 -1
- package/dist/widgets/notification-bell.js +4 -1
- package/dist/widgets/odometer.cjs +1 -1
- package/dist/widgets/odometer.js +1 -1
- package/dist/widgets/organic-card.cjs +1 -1
- package/dist/widgets/organic-card.js +1 -1
- package/dist/widgets/otp.cjs +1 -1
- package/dist/widgets/otp.js +1 -1
- package/dist/widgets/pagination.cjs +2 -2
- package/dist/widgets/pagination.js +2 -2
- package/dist/widgets/panorama.cjs +1 -1
- package/dist/widgets/panorama.js +1 -1
- package/dist/widgets/parallax-layers.cjs +1 -1
- package/dist/widgets/parallax-layers.js +1 -1
- package/dist/widgets/pause-all.cjs +1 -1
- package/dist/widgets/pause-all.js +1 -1
- package/dist/widgets/perf-monitor.cjs +1 -1
- package/dist/widgets/perf-monitor.js +1 -1
- package/dist/widgets/physics-playground.cjs +4 -4
- package/dist/widgets/physics-playground.js +4 -4
- package/dist/widgets/plugin-card.cjs +3 -3
- package/dist/widgets/plugin-card.js +3 -3
- package/dist/widgets/plugin-store.cjs +1 -1
- package/dist/widgets/plugin-store.js +1 -1
- package/dist/widgets/presence.cjs +1 -1
- package/dist/widgets/presence.js +1 -1
- package/dist/widgets/prize-wheel.cjs +2 -2
- package/dist/widgets/prize-wheel.js +2 -2
- package/dist/widgets/product-gallery.cjs +1 -1
- package/dist/widgets/product-gallery.js +1 -1
- package/dist/widgets/progress-ring.cjs +1 -1
- package/dist/widgets/progress-ring.js +1 -1
- package/dist/widgets/prop-panel.cjs +1 -1
- package/dist/widgets/prop-panel.js +1 -1
- package/dist/widgets/pull-cord.cjs +5 -1
- package/dist/widgets/pull-cord.js +5 -1
- package/dist/widgets/radar.cjs +1 -1
- package/dist/widgets/radar.js +1 -1
- package/dist/widgets/reactions.cjs +2 -2
- package/dist/widgets/reactions.js +2 -2
- package/dist/widgets/red-envelope.cjs +1 -1
- package/dist/widgets/red-envelope.js +1 -1
- package/dist/widgets/retro-button.cjs +1 -1
- package/dist/widgets/retro-button.js +1 -1
- package/dist/widgets/rive.cjs +1 -1
- package/dist/widgets/rive.js +1 -1
- package/dist/widgets/route-transition.cjs +1 -1
- package/dist/widgets/route-transition.js +1 -1
- package/dist/widgets/scene.cjs +1 -1
- package/dist/widgets/scene.js +1 -1
- package/dist/widgets/scroll-ring.cjs +1 -1
- package/dist/widgets/scroll-ring.js +1 -1
- package/dist/widgets/scroll-scene.cjs +4 -4
- package/dist/widgets/scroll-scene.js +4 -4
- package/dist/widgets/segmented.cjs +1 -1
- package/dist/widgets/segmented.js +1 -1
- package/dist/widgets/shader-backdrop.cjs +1 -1
- package/dist/widgets/shader-backdrop.js +1 -1
- package/dist/widgets/sheet.cjs +1 -1
- package/dist/widgets/sheet.js +1 -1
- package/dist/widgets/shortcut.cjs +1 -1
- package/dist/widgets/shortcut.js +1 -1
- package/dist/widgets/skeleton-reveal.cjs +1 -1
- package/dist/widgets/skeleton-reveal.js +1 -1
- package/dist/widgets/sketch-chart.cjs +1 -1
- package/dist/widgets/sketch-chart.js +1 -1
- package/dist/widgets/smooth-scroll.cjs +3 -3
- package/dist/widgets/smooth-scroll.js +3 -3
- package/dist/widgets/snap-carousel.cjs +3 -3
- package/dist/widgets/snap-carousel.js +3 -3
- package/dist/widgets/sparkline.cjs +1 -1
- package/dist/widgets/sparkline.js +1 -1
- package/dist/widgets/spatial-card.cjs +1 -1
- package/dist/widgets/spatial-card.js +1 -1
- package/dist/widgets/star-rating.cjs +1 -1
- package/dist/widgets/star-rating.js +1 -1
- package/dist/widgets/stepper.cjs +2 -1
- package/dist/widgets/stepper.js +2 -1
- package/dist/widgets/sticky-wall.cjs +1 -1
- package/dist/widgets/sticky-wall.js +1 -1
- package/dist/widgets/stories.cjs +1 -1
- package/dist/widgets/stories.js +1 -1
- package/dist/widgets/suggestion-chips.cjs +1 -1
- package/dist/widgets/suggestion-chips.js +1 -1
- package/dist/widgets/swipe-deck.cjs +4 -1
- package/dist/widgets/swipe-deck.js +4 -1
- package/dist/widgets/switch.cjs +2 -2
- package/dist/widgets/switch.js +2 -2
- package/dist/widgets/tab-bar.cjs +1 -1
- package/dist/widgets/tab-bar.js +1 -1
- package/dist/widgets/terminal.cjs +1 -1
- package/dist/widgets/terminal.js +1 -1
- package/dist/widgets/text-splitter.cjs +3 -3
- package/dist/widgets/text-splitter.js +3 -3
- package/dist/widgets/theme-surface.cjs +1 -1
- package/dist/widgets/theme-surface.js +1 -1
- package/dist/widgets/theme-switcher.cjs +1 -1
- package/dist/widgets/theme-switcher.js +1 -1
- package/dist/widgets/tip.cjs +1 -1
- package/dist/widgets/tip.js +1 -1
- package/dist/widgets/toast-stack.cjs +1 -1
- package/dist/widgets/toast-stack.js +1 -1
- package/dist/widgets/token-editor.cjs +1 -1
- package/dist/widgets/token-editor.js +1 -1
- package/dist/widgets/upload-progress.cjs +1 -1
- package/dist/widgets/upload-progress.js +1 -1
- package/dist/widgets/video-card.cjs +1 -1
- package/dist/widgets/video-card.js +1 -1
- package/dist/widgets/voice-button.cjs +1 -1
- package/dist/widgets/voice-button.js +1 -1
- package/dist/widgets/volume-knob.cjs +2 -1
- package/dist/widgets/volume-knob.js +2 -1
- package/dist/widgets/weather-card.cjs +1 -1
- package/dist/widgets/weather-card.js +1 -1
- package/dist/widgets/worker-canvas.cjs +1 -1
- package/dist/widgets/worker-canvas.js +1 -1
- package/dist/widgets/xp-bar.cjs +1 -1
- package/dist/widgets/xp-bar.js +1 -1
- package/dist/widgets.umd.js +2 -2
- package/docs/component-contract.md +12 -11
- package/docs/components/usa-accordion.md +1 -1
- package/docs/components/usa-acrylic.md +1 -1
- package/docs/components/usa-add-to-cart.md +2 -2
- package/docs/components/usa-ambient.md +1 -1
- package/docs/components/usa-anim-icon.md +1 -1
- package/docs/components/usa-audio.md +1 -1
- package/docs/components/usa-aurora.md +1 -1
- package/docs/components/usa-auto-animate.md +2 -2
- package/docs/components/usa-auto-skeleton.md +1 -1
- package/docs/components/usa-avatar-stack.md +1 -1
- package/docs/components/usa-back-to-top.md +2 -2
- package/docs/components/usa-badge-wall.md +2 -2
- package/docs/components/usa-badge.md +1 -1
- package/docs/components/usa-bar-chart.md +1 -1
- package/docs/components/usa-bg-generator.md +1 -1
- package/docs/components/usa-blobs.md +2 -2
- package/docs/components/usa-bottom-sheet.md +1 -1
- package/docs/components/usa-button.md +1 -1
- package/docs/components/usa-card-stack.md +1 -1
- package/docs/components/usa-card.md +1 -1
- package/docs/components/usa-carousel-3d.md +1 -1
- package/docs/components/usa-carousel.md +1 -1
- package/docs/components/usa-cart-drawer.md +2 -2
- package/docs/components/usa-chapter-nav.md +1 -1
- package/docs/components/usa-chat-composer.md +1 -1
- package/docs/components/usa-check.md +1 -1
- package/docs/components/usa-checkbox.md +1 -1
- package/docs/components/usa-click.md +1 -1
- package/docs/components/usa-clock-control.md +1 -1
- package/docs/components/usa-code-export.md +1 -1
- package/docs/components/usa-color-picker.md +1 -1
- package/docs/components/usa-command-palette.md +1 -1
- package/docs/components/usa-compare.md +1 -1
- package/docs/components/usa-countdown.md +1 -1
- package/docs/components/usa-counter.md +1 -1
- package/docs/components/usa-cube-gallery.md +1 -1
- package/docs/components/usa-cube.md +1 -1
- package/docs/components/usa-cursor.md +1 -1
- package/docs/components/usa-date-picker.md +1 -1
- package/docs/components/usa-depth.md +1 -1
- package/docs/components/usa-dialog.md +1 -1
- package/docs/components/usa-disclosure.md +2 -2
- package/docs/components/usa-distort.md +1 -1
- package/docs/components/usa-dock.md +1 -1
- package/docs/components/usa-dot-network.md +2 -2
- package/docs/components/usa-dotlottie.md +6 -6
- package/docs/components/usa-double-tap.md +2 -2
- package/docs/components/usa-draggable.md +1 -1
- package/docs/components/usa-draw.md +2 -2
- package/docs/components/usa-drawer.md +1 -1
- package/docs/components/usa-equalizer.md +1 -1
- package/docs/components/usa-fab.md +1 -1
- package/docs/components/usa-festival-banner.md +1 -1
- package/docs/components/usa-field.md +1 -1
- package/docs/components/usa-file-drop.md +2 -2
- package/docs/components/usa-fullpage.md +2 -2
- package/docs/components/usa-fx.md +1 -1
- package/docs/components/usa-gauge.md +1 -1
- package/docs/components/usa-gen-art.md +1 -1
- package/docs/components/usa-gesture-fx.md +1 -1
- package/docs/components/usa-gesture-sticker.md +1 -1
- package/docs/components/usa-gl-model.md +7 -7
- package/docs/components/usa-gl-scene.md +8 -8
- package/docs/components/usa-glitch.md +1 -1
- package/docs/components/usa-globe.md +1 -1
- package/docs/components/usa-gpu-particles.md +1 -1
- package/docs/components/usa-gradient-text.md +1 -1
- package/docs/components/usa-grain.md +1 -1
- package/docs/components/usa-grid-glow.md +2 -2
- package/docs/components/usa-gyro-card.md +1 -1
- package/docs/components/usa-handwriting.md +1 -1
- package/docs/components/usa-hero-video.md +1 -1
- package/docs/components/usa-hold.md +1 -1
- package/docs/components/usa-hud-panel.md +1 -1
- package/docs/components/usa-hydrate.md +1 -1
- package/docs/components/usa-icon-morph.md +1 -1
- package/docs/components/usa-install-button.md +3 -3
- package/docs/components/usa-kanban.md +2 -2
- package/docs/components/usa-keyframe-editor.md +2 -2
- package/docs/components/usa-kpi.md +1 -1
- package/docs/components/usa-leaderboard.md +2 -2
- package/docs/components/usa-like.md +1 -1
- package/docs/components/usa-liquid-nav.md +1 -1
- package/docs/components/usa-liquid.md +1 -1
- package/docs/components/usa-loading-bar.md +2 -2
- package/docs/components/usa-location-card.md +1 -1
- package/docs/components/usa-lottie-icon.md +1 -1
- package/docs/components/usa-lottie-player.md +5 -5
- package/docs/components/usa-lottie.md +1 -1
- package/docs/components/usa-lyrics.md +2 -2
- package/docs/components/usa-magnetic.md +1 -1
- package/docs/components/usa-marquee.md +1 -1
- package/docs/components/usa-mask-reveal.md +2 -2
- package/docs/components/usa-masonry-flow.md +1 -1
- package/docs/components/usa-masonry.md +1 -1
- package/docs/components/usa-menu-toggle.md +1 -1
- package/docs/components/usa-menu.md +1 -1
- package/docs/components/usa-message-list.md +2 -2
- package/docs/components/usa-milestones.md +1 -1
- package/docs/components/usa-modal.md +1 -1
- package/docs/components/usa-morph.md +1 -1
- package/docs/components/usa-motion-inspector.md +1 -1
- package/docs/components/usa-motion-prefs.md +1 -1
- package/docs/components/usa-motion-prompt.md +1 -1
- package/docs/components/usa-motion-spec.md +1 -1
- package/docs/components/usa-motion-switch.md +2 -2
- package/docs/components/usa-motion-theme.md +1 -1
- package/docs/components/usa-motion.md +1 -1
- package/docs/components/usa-music-player.md +1 -1
- package/docs/components/usa-native-preview.md +1 -1
- package/docs/components/usa-nav-morph.md +1 -1
- package/docs/components/usa-navbar.md +2 -2
- package/docs/components/usa-notification-bell.md +2 -2
- package/docs/components/usa-odometer.md +1 -1
- package/docs/components/usa-organic-card.md +1 -1
- package/docs/components/usa-otp.md +1 -1
- package/docs/components/usa-overscroll.md +1 -1
- package/docs/components/usa-pack.md +1 -1
- package/docs/components/usa-pagination.md +1 -1
- package/docs/components/usa-panorama.md +1 -1
- package/docs/components/usa-parallax-layers.md +1 -1
- package/docs/components/usa-particles.md +1 -1
- package/docs/components/usa-pause-all.md +1 -1
- package/docs/components/usa-perf-monitor.md +1 -1
- package/docs/components/usa-physics-playground.md +6 -6
- package/docs/components/usa-pinch-zoom.md +2 -2
- package/docs/components/usa-player.md +1 -1
- package/docs/components/usa-plugin-card.md +4 -4
- package/docs/components/usa-plugin-store.md +1 -1
- package/docs/components/usa-popover.md +2 -2
- package/docs/components/usa-post-fx.md +1 -1
- package/docs/components/usa-presence.md +1 -1
- package/docs/components/usa-press.md +1 -1
- package/docs/components/usa-prize-wheel.md +2 -2
- package/docs/components/usa-product-gallery.md +1 -1
- package/docs/components/usa-progress-ring.md +1 -1
- package/docs/components/usa-progress.md +1 -1
- package/docs/components/usa-prop-panel.md +1 -1
- package/docs/components/usa-pull-cord.md +2 -2
- package/docs/components/usa-pull-refresh.md +2 -2
- package/docs/components/usa-radar.md +1 -1
- package/docs/components/usa-reactions.md +2 -2
- package/docs/components/usa-red-envelope.md +1 -1
- package/docs/components/usa-retro-button.md +1 -1
- package/docs/components/usa-reveal.md +1 -1
- package/docs/components/usa-ripple.md +1 -1
- package/docs/components/usa-rive.md +3 -3
- package/docs/components/usa-route-transition.md +1 -1
- package/docs/components/usa-scene.md +1 -1
- package/docs/components/usa-scramble.md +1 -1
- package/docs/components/usa-scroll-highlight.md +1 -1
- package/docs/components/usa-scroll-progress.md +1 -1
- package/docs/components/usa-scroll-ring.md +1 -1
- package/docs/components/usa-scroll-scene.md +5 -5
- package/docs/components/usa-scrolly.md +1 -1
- package/docs/components/usa-segmented.md +1 -1
- package/docs/components/usa-shader-backdrop.md +1 -1
- package/docs/components/usa-shader.md +1 -1
- package/docs/components/usa-sheet.md +1 -1
- package/docs/components/usa-shimmer-text.md +1 -1
- package/docs/components/usa-shortcut.md +1 -1
- package/docs/components/usa-skeleton-reveal.md +1 -1
- package/docs/components/usa-skeleton.md +1 -1
- package/docs/components/usa-sketch-chart.md +1 -1
- package/docs/components/usa-slider.md +1 -1
- package/docs/components/usa-smooth-scroll.md +5 -5
- package/docs/components/usa-snap-carousel.md +5 -5
- package/docs/components/usa-sparkline.md +1 -1
- package/docs/components/usa-spatial-card.md +1 -1
- package/docs/components/usa-spinner.md +1 -1
- package/docs/components/usa-splash.md +2 -2
- package/docs/components/usa-split-text.md +1 -1
- package/docs/components/usa-spotlight.md +1 -1
- package/docs/components/usa-spring.md +1 -1
- package/docs/components/usa-stagger.md +1 -1
- package/docs/components/usa-star-rating.md +1 -1
- package/docs/components/usa-stepper.md +1 -1
- package/docs/components/usa-sticky-stack.md +1 -1
- package/docs/components/usa-sticky-wall.md +1 -1
- package/docs/components/usa-stories.md +1 -1
- package/docs/components/usa-story.md +2 -2
- package/docs/components/usa-suggestion-chips.md +1 -1
- package/docs/components/usa-swipe-deck.md +2 -2
- package/docs/components/usa-swipeable.md +1 -1
- package/docs/components/usa-switch.md +1 -1
- package/docs/components/usa-tab-bar.md +1 -1
- package/docs/components/usa-tabs.md +1 -1
- package/docs/components/usa-terminal.md +1 -1
- package/docs/components/usa-text-rotate.md +1 -1
- package/docs/components/usa-text-splitter.md +5 -5
- package/docs/components/usa-theme-surface.md +1 -1
- package/docs/components/usa-theme-switcher.md +1 -1
- package/docs/components/usa-tilt.md +1 -1
- package/docs/components/usa-timeline.md +1 -1
- package/docs/components/usa-tip.md +1 -1
- package/docs/components/usa-toast-stack.md +1 -1
- package/docs/components/usa-toaster.md +1 -1
- package/docs/components/usa-token-editor.md +1 -1
- package/docs/components/usa-typewriter.md +1 -1
- package/docs/components/usa-upload-progress.md +1 -1
- package/docs/components/usa-video-card.md +1 -1
- package/docs/components/usa-view-switch.md +1 -1
- package/docs/components/usa-voice-button.md +1 -1
- package/docs/components/usa-volume-knob.md +1 -1
- package/docs/components/usa-water-ripple.md +2 -2
- package/docs/components/usa-wave-text.md +1 -1
- package/docs/components/usa-weather-card.md +1 -1
- package/docs/components/usa-worker-canvas.md +1 -1
- package/docs/components/usa-xp-bar.md +1 -1
- package/docs/components.md +50 -50
- package/docs/contract-report.json +241 -522
- package/docs/contract-report.md +16 -49
- package/docs/cross-platform.md +41 -0
- package/docs/hybrid-apps.md +1 -1
- package/docs/runtime/core.md +2 -2
- package/docs/runtime/drag-snap.md +3 -3
- package/docs/runtime/format-apng.md +3 -3
- package/docs/runtime/format-css.md +3 -3
- package/docs/runtime/format-gif.md +3 -3
- package/docs/runtime/format-gltf.md +3 -3
- package/docs/runtime/format-motion.md +3 -3
- package/docs/runtime/format-obj.md +3 -3
- package/docs/runtime/format-scene.md +3 -3
- package/docs/runtime/format-sprite.md +3 -3
- package/docs/runtime/format-svg.md +3 -3
- package/docs/runtime/format-webp.md +3 -3
- package/docs/runtime/gl.md +3 -3
- package/docs/runtime/gltf-anim.md +3 -3
- package/docs/runtime/gltf-decoders.md +3 -3
- package/docs/runtime/lottie-state.md +3 -3
- package/docs/runtime/physics.md +3 -3
- package/docs/runtime/scroll.md +3 -3
- package/docs/runtime/smooth.md +3 -3
- package/docs/runtime/text.md +3 -3
- package/docs/runtime/vector.md +3 -3
- package/docs/upgrading-12.md +2 -2
- package/package.json +1 -1
package/dist/llms-full.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Motionary
|
|
1
|
+
# Motionary 12.1.0 — full component reference
|
|
2
2
|
|
|
3
3
|
Generated from the source. Machine-readable version: https://harrisoncn.github.io/Motionary/components.json (schema https://harrisoncn.github.io/Motionary/components.schema.json).
|
|
4
4
|
|
|
@@ -14,7 +14,7 @@ Shared ticker (one rAF loop), tween + timeline engine with easing, module regist
|
|
|
14
14
|
- CDN:
|
|
15
15
|
|
|
16
16
|
```html
|
|
17
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
17
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
```js
|
|
@@ -34,8 +34,8 @@ Import CSS @keyframes text or live CSSKeyframesRule objects and Web Animations A
|
|
|
34
34
|
- CDN:
|
|
35
35
|
|
|
36
36
|
```html
|
|
37
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
38
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
37
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
38
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-css.iife.js"></script>
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
```js
|
|
@@ -56,8 +56,8 @@ Play Motion / Framer-style { initial, animate, transition } JSON (arrays as keyf
|
|
|
56
56
|
- CDN:
|
|
57
57
|
|
|
58
58
|
```html
|
|
59
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
60
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
59
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
60
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-motion.iife.js"></script>
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
```js
|
|
@@ -77,8 +77,8 @@ Scroll-linked scenes: start / end rules, scrub (direct or smoothed), pin, marker
|
|
|
77
77
|
- CDN:
|
|
78
78
|
|
|
79
79
|
```html
|
|
80
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
81
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
80
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
81
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/scroll.iife.js"></script>
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
```js
|
|
@@ -99,8 +99,8 @@ Replay SVG SMIL animations (animate, set, animateTransform, animateMotion) on th
|
|
|
99
99
|
- CDN:
|
|
100
100
|
|
|
101
101
|
```html
|
|
102
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
103
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
102
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
103
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-svg.iife.js"></script>
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
```js
|
|
@@ -123,8 +123,8 @@ Split text into characters (grapheme-aware), words and lines for animation while
|
|
|
123
123
|
- CDN:
|
|
124
124
|
|
|
125
125
|
```html
|
|
126
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
127
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
126
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
127
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/text.iife.js"></script>
|
|
128
128
|
```
|
|
129
129
|
|
|
130
130
|
```js
|
|
@@ -145,8 +145,8 @@ Play TexturePacker / Aseprite sprite sheets and numbered image sequences on a ca
|
|
|
145
145
|
- CDN:
|
|
146
146
|
|
|
147
147
|
```html
|
|
148
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
149
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
148
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
149
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-sprite.iife.js"></script>
|
|
150
150
|
```
|
|
151
151
|
|
|
152
152
|
```js
|
|
@@ -168,8 +168,8 @@ Smooth, inertial wheel scrolling (lerp or fixed-duration glide) for the window o
|
|
|
168
168
|
- CDN:
|
|
169
169
|
|
|
170
170
|
```html
|
|
171
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
172
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
171
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
172
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/smooth.iife.js"></script>
|
|
173
173
|
```
|
|
174
174
|
|
|
175
175
|
```js
|
|
@@ -190,8 +190,8 @@ Decode animated GIFs (own LZW decoder, no DOM) into composited RGBA frames and p
|
|
|
190
190
|
- CDN:
|
|
191
191
|
|
|
192
192
|
```html
|
|
193
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
194
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
193
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
194
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-gif.iife.js"></script>
|
|
195
195
|
```
|
|
196
196
|
|
|
197
197
|
```js
|
|
@@ -213,8 +213,8 @@ Split animated PNGs into standalone frame PNGs (decoded by the browser), composi
|
|
|
213
213
|
- CDN:
|
|
214
214
|
|
|
215
215
|
```html
|
|
216
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
217
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
216
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
217
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-apng.iife.js"></script>
|
|
218
218
|
```
|
|
219
219
|
|
|
220
220
|
```js
|
|
@@ -235,8 +235,8 @@ Split animated WebP files (ANIM / ANMF) into standalone frames (decoded by the b
|
|
|
235
235
|
- CDN:
|
|
236
236
|
|
|
237
237
|
```html
|
|
238
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
239
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
238
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
239
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-webp.iife.js"></script>
|
|
240
240
|
```
|
|
241
241
|
|
|
242
242
|
```js
|
|
@@ -257,8 +257,8 @@ A small WebGL2 renderer with its own API: scene graph, camera, lights, box / pla
|
|
|
257
257
|
- CDN:
|
|
258
258
|
|
|
259
259
|
```html
|
|
260
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
261
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
260
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
261
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/gl.iife.js"></script>
|
|
262
262
|
```
|
|
263
263
|
|
|
264
264
|
```js
|
|
@@ -281,8 +281,8 @@ Load glTF 2.0 (.gltf with external or data: buffers, .glb) into motionary/runtim
|
|
|
281
281
|
- CDN:
|
|
282
282
|
|
|
283
283
|
```html
|
|
284
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
285
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
284
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
285
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-gltf.iife.js"></script>
|
|
286
286
|
```
|
|
287
287
|
|
|
288
288
|
```js
|
|
@@ -306,8 +306,8 @@ Load Wavefront OBJ (+ MTL materials and diffuse textures) into motionary/runtime
|
|
|
306
306
|
- CDN:
|
|
307
307
|
|
|
308
308
|
```html
|
|
309
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
310
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
309
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
310
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-obj.iife.js"></script>
|
|
311
311
|
```
|
|
312
312
|
|
|
313
313
|
```js
|
|
@@ -329,8 +329,8 @@ Plays Lottie (bodymovin JSON) and dotLottie (.lottie) files on Canvas 2D with Mo
|
|
|
329
329
|
- CDN:
|
|
330
330
|
|
|
331
331
|
```html
|
|
332
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
333
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
332
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
333
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/vector.iife.js"></script>
|
|
334
334
|
```
|
|
335
335
|
|
|
336
336
|
```js
|
|
@@ -372,8 +372,8 @@ A small 2D rigid-body engine written for Motionary (own implementation and API
|
|
|
372
372
|
- CDN:
|
|
373
373
|
|
|
374
374
|
```html
|
|
375
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
376
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
375
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
376
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/physics.iife.js"></script>
|
|
377
377
|
```
|
|
378
378
|
|
|
379
379
|
```js
|
|
@@ -396,8 +396,8 @@ The versioned motionary-scene@1 format: a JSON description of a 2D physics scene
|
|
|
396
396
|
- CDN:
|
|
397
397
|
|
|
398
398
|
```html
|
|
399
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
400
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
399
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
400
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-scene.iife.js"></script>
|
|
401
401
|
```
|
|
402
402
|
|
|
403
403
|
```js
|
|
@@ -419,8 +419,8 @@ Pointer drag along one axis with velocity tracking, inertial throws, rubber-band
|
|
|
419
419
|
- CDN:
|
|
420
420
|
|
|
421
421
|
```html
|
|
422
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
423
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
422
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
423
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/drag-snap.iife.js"></script>
|
|
424
424
|
```
|
|
425
425
|
|
|
426
426
|
```js
|
|
@@ -442,8 +442,8 @@ Plays glTF 2.0 animations on models loaded by motionary/runtime/format-gltf: tra
|
|
|
442
442
|
- CDN:
|
|
443
443
|
|
|
444
444
|
```html
|
|
445
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
446
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
445
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
446
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/gltf-anim.iife.js"></script>
|
|
447
447
|
```
|
|
448
448
|
|
|
449
449
|
```js
|
|
@@ -467,8 +467,8 @@ Resolves Lottie slots with dotLottie themes (Color / Scalar / Vector / Text rule
|
|
|
467
467
|
- CDN:
|
|
468
468
|
|
|
469
469
|
```html
|
|
470
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
471
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
470
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
471
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/lottie-state.iife.js"></script>
|
|
472
472
|
```
|
|
473
473
|
|
|
474
474
|
```js
|
|
@@ -492,8 +492,8 @@ Lets motionary/runtime/format-gltf load KHR_draco_mesh_compression meshes and KH
|
|
|
492
492
|
- CDN:
|
|
493
493
|
|
|
494
494
|
```html
|
|
495
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
496
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
495
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
496
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/gltf-decoders.iife.js"></script>
|
|
497
497
|
```
|
|
498
498
|
|
|
499
499
|
```js
|
|
@@ -549,7 +549,7 @@ provideGltfDecoder('ktx2', () => window.BASIS);
|
|
|
549
549
|
Smooth expand / collapse for native <details> — semantics, keyboard and find-in-page kept; no wrapper elements.
|
|
550
550
|
|
|
551
551
|
- Import: `import { defineAccordion } from 'motionary/components/transitions'; defineAccordion();`
|
|
552
|
-
- CDN: https://unpkg.com/motionary@
|
|
552
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
553
553
|
- Attributes: `multiple`, `duration`
|
|
554
554
|
- Events: `usa:toggle`
|
|
555
555
|
- Methods: `toggleItem()`
|
|
@@ -566,7 +566,7 @@ Smooth expand / collapse for native <details> — semantics, keyboard and find-i
|
|
|
566
566
|
Windows Fluent materials: frosted acrylic (backdrop blur + tint + noise) and mica. Solid fallback when transparency is reduced.
|
|
567
567
|
|
|
568
568
|
- Import: `import { defineAcrylic } from 'motionary/components/background'; defineAcrylic();`
|
|
569
|
-
- CDN: https://unpkg.com/motionary@
|
|
569
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
570
570
|
- Attributes: `tint`, `tint-opacity`, `blur`, `shimmer`
|
|
571
571
|
|
|
572
572
|
```html
|
|
@@ -581,7 +581,8 @@ Windows Fluent materials: frosted acrylic (backdrop blur + tint + noise) and mic
|
|
|
581
581
|
7.3: a buy button — the product photo flies on an arc into the cart, the cart badge bumps and the button morphs into a ✓ “Added” state. Works with <usa-cart-drawer> (calls add(item)) or any [data-cart] icon.
|
|
582
582
|
|
|
583
583
|
- Import: `import { defineAddToCart } from 'motionary/components/widgets'; defineAddToCart();`
|
|
584
|
-
- CDN: https://unpkg.com/motionary@
|
|
584
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
585
|
+
- Attributes: `label`, `added`, `item`, `cart`, `from`, `hold`
|
|
585
586
|
- Events: `usa:add`
|
|
586
587
|
- Methods: `add()`
|
|
587
588
|
|
|
@@ -598,7 +599,7 @@ Windows Fluent materials: frosted acrylic (backdrop blur + tint + noise) and mic
|
|
|
598
599
|
A fixed page-wide layer: drifting particles, falling snow, twinkling stars, film grain or a gradient that shifts with scroll.
|
|
599
600
|
|
|
600
601
|
- Import: `import { defineAmbient } from 'motionary/components/page'; defineAmbient();`
|
|
601
|
-
- CDN: https://unpkg.com/motionary@
|
|
602
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
602
603
|
- Attributes: `effect`, `density`, `color`, `opacity`, `speed`
|
|
603
604
|
- Methods: `mount()`, `upd()`, `resize()`, `resize()`, `draw()`, `draw()`, `unmount()`, `caf()`
|
|
604
605
|
|
|
@@ -611,7 +612,7 @@ A fixed page-wide layer: drifting particles, falling snow, twinkling stars, film
|
|
|
611
612
|
Stroke icons that move: the bell rings, the heart beats, the check draws, the gear turns. Hover, click, in view or loop; decorative unless labelled.
|
|
612
613
|
|
|
613
614
|
- Import: `import { defineAnimIcon } from 'motionary/components/svg'; defineAnimIcon();`
|
|
614
|
-
- CDN: https://unpkg.com/motionary@
|
|
615
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
615
616
|
- Attributes: `name`, `size`, `label`, `trigger`
|
|
616
617
|
- Methods: `play()`
|
|
617
618
|
|
|
@@ -625,7 +626,7 @@ Stroke icons that move: the bell rings, the heart beats, the check draws, the ge
|
|
|
625
626
|
5.6: <usa-audio> renders a toggle (a user gesture starts Web Audio), detects beats and plays any registered effect on children with data-usa-beat="effect". JS: bindBeat(el, "pop"). Beats play nothing under reduced motion.
|
|
626
627
|
|
|
627
628
|
- Import: `import { defineAudio } from 'motionary/components/effects'; defineAudio();`
|
|
628
|
-
- CDN: https://unpkg.com/motionary@
|
|
629
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
629
630
|
- Attributes: `source`, `label`, `threshold`, `cooldown`
|
|
630
631
|
- Events: `usa:beat`, `usa:audio-error`
|
|
631
632
|
- Methods: `toggle()`
|
|
@@ -642,7 +643,7 @@ Stroke icons that move: the bell rings, the heart beats, the check draws, the ge
|
|
|
642
643
|
A slow drifting gradient mesh behind its content. Transforms only, paused off-screen, still under reduced motion.
|
|
643
644
|
|
|
644
645
|
- Import: `import { defineAurora } from 'motionary/components/background'; defineAurora();`
|
|
645
|
-
- CDN: https://unpkg.com/motionary@
|
|
646
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
646
647
|
- Attributes: `colors`, `speed`, `intensity`
|
|
647
648
|
|
|
648
649
|
```html
|
|
@@ -656,7 +657,8 @@ A slow drifting gradient mesh behind its content. Transforms only, paused off-sc
|
|
|
656
657
|
Wrap a list or grid: items that are added fade in, removed ones fade out in place, and everything else glides to its new spot — on sort, filter or resize. Zero code at the call site.
|
|
657
658
|
|
|
658
659
|
- Import: `import { defineAutoAnimate } from 'motionary/components/layout'; defineAutoAnimate();`
|
|
659
|
-
- CDN: https://unpkg.com/motionary@
|
|
660
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
661
|
+
- Attributes: `duration`, `no-scale`
|
|
660
662
|
- Methods: `enable()`, `disable()`
|
|
661
663
|
|
|
662
664
|
```html
|
|
@@ -676,7 +678,7 @@ Wrap a list or grid: items that are added fade in, removed ones fade out in plac
|
|
|
676
678
|
Set loading and every heading, paragraph, image and button inside becomes a shimmering placeholder of its own size — no extra markup.
|
|
677
679
|
|
|
678
680
|
- Import: `import { defineAutoSkeleton } from 'motionary/components/page'; defineAutoSkeleton();`
|
|
679
|
-
- CDN: https://unpkg.com/motionary@
|
|
681
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
680
682
|
- Attributes: `loading`
|
|
681
683
|
|
|
682
684
|
```html
|
|
@@ -691,7 +693,7 @@ Set loading and every heading, paragraph, image and button inside becomes a shim
|
|
|
691
693
|
Overlapping avatars that spread apart with a spring on hover; extras collapse into “+N”.
|
|
692
694
|
|
|
693
695
|
- Import: `import { defineAvatarStack } from 'motionary/components/ui'; defineAvatarStack();`
|
|
694
|
-
- CDN: https://unpkg.com/motionary@
|
|
696
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
695
697
|
- Attributes: `max`, `size`, `overlap`, `label`
|
|
696
698
|
- Methods: `adoptVariants()`, `mount()`
|
|
697
699
|
|
|
@@ -707,7 +709,8 @@ Overlapping avatars that spread apart with a spring on hover; extras collapse in
|
|
|
707
709
|
Appears after you scroll, shows reading progress as a ring and springs the page back up, then moves focus to the top.
|
|
708
710
|
|
|
709
711
|
- Import: `import { defineBackToTop } from 'motionary/components/page'; defineBackToTop();`
|
|
710
|
-
- CDN: https://unpkg.com/motionary@
|
|
712
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
713
|
+
- Attributes: `label`, `offset`, `focus-target`
|
|
711
714
|
|
|
712
715
|
```html
|
|
713
716
|
<usa-back-to-top offset="400"></usa-back-to-top>
|
|
@@ -718,7 +721,7 @@ Appears after you scroll, shows reading progress as a ring and springs the page
|
|
|
718
721
|
Count or dot badge that bumps with a spring when its value changes; 99+ capping, optional pulse.
|
|
719
722
|
|
|
720
723
|
- Import: `import { defineBadge } from 'motionary/components/ui'; defineBadge();`
|
|
721
|
-
- CDN: https://unpkg.com/motionary@
|
|
724
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
722
725
|
- Attributes: `value`, `max`, `dot`, `label`, `show-zero`
|
|
723
726
|
|
|
724
727
|
```html
|
|
@@ -732,7 +735,8 @@ Count or dot badge that bumps with a spring when its value changes; 99+ capping,
|
|
|
732
735
|
7.5: an achievement grid — locked badges are grey with a 🔒; unlock(name) flips a badge to its colour side with a shine and the “n / m unlocked” counter updates.
|
|
733
736
|
|
|
734
737
|
- Import: `import { defineBadgeWall } from 'motionary/components/widgets'; defineBadgeWall();`
|
|
735
|
-
- CDN: https://unpkg.com/motionary@
|
|
738
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
739
|
+
- Attributes: `label`
|
|
736
740
|
- Events: `usa:unlock`
|
|
737
741
|
- Methods: `unlock()`
|
|
738
742
|
|
|
@@ -749,7 +753,7 @@ Count or dot badge that bumps with a spring when its value changes; 99+ capping,
|
|
|
749
753
|
7.2: bars grow from the baseline in a stagger on first view and new data glides every bar to its new height — bars that appear grow in, bars that leave shrink away. Data from values/labels, <data> children or the data property.
|
|
750
754
|
|
|
751
755
|
- Import: `import { defineBarChart } from 'motionary/components/widgets'; defineBarChart();`
|
|
752
|
-
- CDN: https://unpkg.com/motionary@
|
|
756
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
753
757
|
- Attributes: `horizontal`, `unit`, `max`, `values`, `labels`, `label`
|
|
754
758
|
|
|
755
759
|
```html
|
|
@@ -762,7 +766,7 @@ Count or dot badge that bumps with a spring when its value changes; 99+ capping,
|
|
|
762
766
|
9.3: a background generator — pick a palette and a style (mesh gradient, grain, stripes, dots), shuffle the seed and copy the CSS.
|
|
763
767
|
|
|
764
768
|
- Import: `import { defineBgGenerator } from 'motionary/components/widgets'; defineBgGenerator();`
|
|
765
|
-
- CDN: https://unpkg.com/motionary@
|
|
769
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
766
770
|
- Attributes: `label`, `palette`, `style`, `seed`
|
|
767
771
|
- Events: `usa:change`
|
|
768
772
|
- Methods: `shuffle()`, `copy()`
|
|
@@ -776,7 +780,8 @@ Count or dot badge that bumps with a spring when its value changes; 99+ capping,
|
|
|
776
780
|
Soft colour blobs that slowly morph and drift — a fluid gradient backdrop.
|
|
777
781
|
|
|
778
782
|
- Import: `import { defineBlobs } from 'motionary/components/background'; defineBlobs();`
|
|
779
|
-
- CDN: https://unpkg.com/motionary@
|
|
783
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
784
|
+
- Attributes: `colors`, `speed`, `blur`
|
|
780
785
|
- Methods: `mount()`
|
|
781
786
|
|
|
782
787
|
```html
|
|
@@ -788,7 +793,7 @@ Soft colour blobs that slowly morph and drift — a fluid gradient backdrop.
|
|
|
788
793
|
A draggable sheet with snap points, inertia and drag-down-to-dismiss — the iOS / Android pattern for web and Windows web-view apps.
|
|
789
794
|
|
|
790
795
|
- Import: `import { defineBottomSheet } from 'motionary/components/ui'; defineBottomSheet();`
|
|
791
|
-
- CDN: https://unpkg.com/motionary@
|
|
796
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
792
797
|
- Attributes: `open`, `snap`, `start`
|
|
793
798
|
- Methods: `show()`, `close()`
|
|
794
799
|
|
|
@@ -801,7 +806,7 @@ A draggable sheet with snap points, inertia and drag-down-to-dismiss — the iOS
|
|
|
801
806
|
Spring-driven button click deformation: squash & stretch, elastic border-radius wobble, gooey liquid droplets, and a dent toward the pressed point. Combine them with deform="squash wobble".
|
|
802
807
|
|
|
803
808
|
- Import: `import { defineButton } from 'motionary/components/click'; defineButton();`
|
|
804
|
-
- CDN: https://unpkg.com/motionary@
|
|
809
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
805
810
|
- Attributes: `deform`, `state`, `shape`, `disabled`, `morph`, `haptic`, `reset`
|
|
806
811
|
- Events: `usa:submit`, `usa:state`
|
|
807
812
|
- Methods: `morphTo()`
|
|
@@ -819,7 +824,7 @@ Spring-driven button click deformation: squash & stretch, elastic border-radius
|
|
|
819
824
|
Ten card effects you can combine (effect="lift sheen"): flip (hover or click, x/y axis), holo, glass, border-glow, conic-border, lift, spotlight, sheen, parallax-layers and expand (card → detail with FLIP + spring).
|
|
820
825
|
|
|
821
826
|
- Import: `import { defineCard } from 'motionary/components/cards'; defineCard();`
|
|
822
|
-
- CDN: https://unpkg.com/motionary@
|
|
827
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
823
828
|
- Attributes: `effect`, `trigger`, `disabled`, `color`, `depth`
|
|
824
829
|
- Events: `usa:flip`, `usa:expand`, `usa:collapse`
|
|
825
830
|
- Methods: `flip()`, `expand()`, `collapse()`
|
|
@@ -843,7 +848,7 @@ Ten card effects you can combine (effect="lift sheen"): flip (hover or click, x/
|
|
|
843
848
|
A deck where the top card swipes away left or right (pointer, touch, arrow keys) and the next springs forward. loop sends cards to the back.
|
|
844
849
|
|
|
845
850
|
- Import: `import { defineCardStack } from 'motionary/components/cards'; defineCardStack();`
|
|
846
|
-
- CDN: https://unpkg.com/motionary@
|
|
851
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
847
852
|
- Attributes: `visible`, `offset`, `disabled`, `threshold`, `loop`
|
|
848
853
|
- Events: `usa:swipe`, `usa:empty`
|
|
849
854
|
- Methods: `swipe()`
|
|
@@ -861,7 +866,7 @@ A deck where the top card swipes away left or right (pointer, touch, arrow keys)
|
|
|
861
866
|
6.2: swipe, drag, arrow keys, dots and autoplay (pauses on hover, focus, off screen). Four transitions — slide, fade, scale and a 3D "cards" coverflow. Reduced motion: slides switch without movement.
|
|
862
867
|
|
|
863
868
|
- Import: `import { defineCarousel } from 'motionary/components/widgets'; defineCarousel();`
|
|
864
|
-
- CDN: https://unpkg.com/motionary@
|
|
869
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
865
870
|
- Attributes: `effect`, `autoplay`, `loop`, `no-controls`, `no-dots`, `label`, `index`
|
|
866
871
|
- Events: `usa:change`
|
|
867
872
|
- Methods: `next()`, `prev()`, `goTo()`
|
|
@@ -879,7 +884,7 @@ A deck where the top card swipes away left or right (pointer, touch, arrow keys)
|
|
|
879
884
|
Items on a 3D ring, rotated by drag, arrow keys, clicks or autoplay — with spring motion. Reduced motion shows one flat item at a time.
|
|
880
885
|
|
|
881
886
|
- Import: `import { defineCarousel3d } from 'motionary/components/cards'; defineCarousel3d();`
|
|
882
|
-
- CDN: https://unpkg.com/motionary@
|
|
887
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
883
888
|
- Attributes: `radius`, `perspective`, `autoplay`, `index`
|
|
884
889
|
- Events: `usa:change`
|
|
885
890
|
- Methods: `next()`, `prev()`, `goTo()`
|
|
@@ -897,7 +902,8 @@ Items on a 3D ring, rotated by drag, arrow keys, clicks or autoplay — with spr
|
|
|
897
902
|
7.3: a cart button with a count badge and a drawer that slides in from the side — lines slide in (or bump their quantity), removed lines collapse, the badge bumps and the total rolls. Esc / backdrop close; focus is managed.
|
|
898
903
|
|
|
899
904
|
- Import: `import { defineCartDrawer } from 'motionary/components/widgets'; defineCartDrawer();`
|
|
900
|
-
- CDN: https://unpkg.com/motionary@
|
|
905
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
906
|
+
- Attributes: `label`, `items`, `currency`
|
|
901
907
|
- Events: `usa:open`, `usa:close`, `usa:change`
|
|
902
908
|
- Methods: `add()`, `removeItem()`, `toggle()`
|
|
903
909
|
|
|
@@ -911,7 +917,7 @@ Items on a 3D ring, rotated by drag, arrow keys, clicks or autoplay — with spr
|
|
|
911
917
|
9.1: chapter navigation for long-form stories — one entry per chapter with a reading-progress bar that fills as you scroll, the current chapter highlighted, click to glide there.
|
|
912
918
|
|
|
913
919
|
- Import: `import { defineChapterNav } from 'motionary/components/widgets'; defineChapterNav();`
|
|
914
|
-
- CDN: https://unpkg.com/motionary@
|
|
920
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
915
921
|
- Attributes: `for`, `orientation`, `label`
|
|
916
922
|
- Events: `usa:chapter`
|
|
917
923
|
- Methods: `goTo()`
|
|
@@ -929,7 +935,7 @@ Items on a 3D ring, rotated by drag, arrow keys, clicks or autoplay — with spr
|
|
|
929
935
|
7.8: an AI chat input that grows with its text; Enter sends, the send button pops when there is text and morphs into Stop while busy, with a thinking glow running round the composer.
|
|
930
936
|
|
|
931
937
|
- Import: `import { defineChatComposer } from 'motionary/components/widgets'; defineChatComposer();`
|
|
932
|
-
- CDN: https://unpkg.com/motionary@
|
|
938
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
933
939
|
- Attributes: `placeholder`, `label`, `rows`, `busy`, `value`
|
|
934
940
|
- Events: `usa:stop`, `usa:send`
|
|
935
941
|
- Methods: `send()`, `clear()`
|
|
@@ -944,7 +950,7 @@ Items on a 3D ring, rotated by drag, arrow keys, clicks or autoplay — with spr
|
|
|
944
950
|
The circle draws itself, then a check, cross or exclamation strokes in with a pop. Great after a payment or upload.
|
|
945
951
|
|
|
946
952
|
- Import: `import { defineCheck } from 'motionary/components/feedback'; defineCheck();`
|
|
947
|
-
- CDN: https://unpkg.com/motionary@
|
|
953
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
948
954
|
- Attributes: `kind`, `size`, `label`, `start`
|
|
949
955
|
- Events: `usa:complete`
|
|
950
956
|
- Methods: `play()`, `reset()`
|
|
@@ -958,7 +964,7 @@ The circle draws itself, then a check, cross or exclamation strokes in with a po
|
|
|
958
964
|
Form-associated checkbox: the box springs and the check draws itself; indeterminate state, circle shape.
|
|
959
965
|
|
|
960
966
|
- Import: `import { defineCheckbox } from 'motionary/components/click'; defineCheckbox();`
|
|
961
|
-
- CDN: https://unpkg.com/motionary@
|
|
967
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
962
968
|
- Attributes: `checked`, `indeterminate`, `disabled`, `label`, `value`
|
|
963
969
|
- Events: `usa:change`
|
|
964
970
|
- Methods: `toggle()`
|
|
@@ -972,7 +978,7 @@ Form-associated checkbox: the box springs and the check draws itself; indetermin
|
|
|
972
978
|
Wrap anything: ripple, burst (circle, star, heart, emoji), confetti, squish, press-spring and error shake — combinable, keyboard-friendly, optional haptics.
|
|
973
979
|
|
|
974
980
|
- Import: `import { defineClick } from 'motionary/components/click'; defineClick();`
|
|
975
|
-
- CDN: https://unpkg.com/motionary@
|
|
981
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
976
982
|
- Attributes: `effect`, `disabled`, `trigger`, `color`, `count`, `shape`, `haptic`
|
|
977
983
|
- Events: `usa:click-effect`
|
|
978
984
|
- Methods: `play()`, `shake()`
|
|
@@ -988,7 +994,7 @@ Wrap anything: ripple, burst (circle, star, heart, emoji), confetti, squish, pre
|
|
|
988
994
|
8.0: a pause / speed bar for the unified motion clock — pause, slow down or speed up every Motionary animation and frame loop on the page at once (motionClock in motionary/engine).
|
|
989
995
|
|
|
990
996
|
- Import: `import { defineClockControl } from 'motionary/components/widgets'; defineClockControl();`
|
|
991
|
-
- CDN: https://unpkg.com/motionary@
|
|
997
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
992
998
|
- Attributes: `speeds`, `label`
|
|
993
999
|
- Events: `usa:change`
|
|
994
1000
|
|
|
@@ -1006,7 +1012,7 @@ createTimeline().add(a, [{ opacity: 0 }, { opacity: 1 }], 400).add(b, [{ transfo
|
|
|
1006
1012
|
8.9 low-code: shows copy-paste code (HTML, React, Vue or JSON) for a live, configured component next to it, follows its attribute changes and copies with one click.
|
|
1007
1013
|
|
|
1008
1014
|
- Import: `import { defineCodeExport } from 'motionary/components/widgets'; defineCodeExport();`
|
|
1009
|
-
- CDN: https://unpkg.com/motionary@
|
|
1015
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1010
1016
|
- Attributes: `for`, `formats`
|
|
1011
1017
|
- Events: `usa:copy`
|
|
1012
1018
|
- Methods: `copy()`
|
|
@@ -1022,7 +1028,7 @@ createTimeline().add(a, [{ opacity: 0 }, { opacity: 1 }], 400).add(b, [{ transfo
|
|
|
1022
1028
|
6.9: a saturation / brightness square and a hue strip with spring-follow thumbs (both keyboard sliders), a preview chip that morphs to the new colour and swatches that pop.
|
|
1023
1029
|
|
|
1024
1030
|
- Import: `import { defineColorPicker } from 'motionary/components/widgets'; defineColorPicker();`
|
|
1025
|
-
- CDN: https://unpkg.com/motionary@
|
|
1031
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1026
1032
|
- Attributes: `swatches`
|
|
1027
1033
|
- Events: `usa:change`, `usa:input`
|
|
1028
1034
|
|
|
@@ -1035,7 +1041,7 @@ createTimeline().add(a, [{ opacity: 0 }, { opacity: 1 }], 400).add(b, [{ transfo
|
|
|
1035
1041
|
7.9: a ⌘K command palette on the native <dialog> — scales in, filters as you type with fuzzy matching and highlighted letters, results stagger in and a highlight glides between rows (↑ ↓ Enter).
|
|
1036
1042
|
|
|
1037
1043
|
- Import: `import { defineCommandPalette } from 'motionary/components/widgets'; defineCommandPalette();`
|
|
1038
|
-
- CDN: https://unpkg.com/motionary@
|
|
1044
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1039
1045
|
- Attributes: `placeholder`, `label`, `hotkey`, `inline`
|
|
1040
1046
|
- Events: `usa:run`, `usa:open`, `usa:close`
|
|
1041
1047
|
- Methods: `setCommands()`, `show()`, `close()`, `toggle()`
|
|
@@ -1053,7 +1059,7 @@ createTimeline().add(a, [{ opacity: 0 }, { opacity: 1 }], 400).add(b, [{ transfo
|
|
|
1053
1059
|
6.5: drag the handle (or hover with the hover attribute), click to jump, or use the keyboard slider; horizontal or vertical; an intro sweep plays once when it scrolls into view.
|
|
1054
1060
|
|
|
1055
1061
|
- Import: `import { defineCompare } from 'motionary/components/widgets'; defineCompare();`
|
|
1056
|
-
- CDN: https://unpkg.com/motionary@
|
|
1062
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1057
1063
|
- Attributes: `orientation`, `labels`, `label`, `position`, `hover`, `intro`
|
|
1058
1064
|
- Events: `usa:change`
|
|
1059
1065
|
|
|
@@ -1069,7 +1075,7 @@ createTimeline().add(a, [{ opacity: 0 }, { opacity: 1 }], 400).add(b, [{ transfo
|
|
|
1069
1075
|
7.3: a split-flap countdown to a date (to) or for a number of seconds — every digit flips when it changes; fires usa:done at zero. The timer label updates once a minute so screen readers are not flooded.
|
|
1070
1076
|
|
|
1071
1077
|
- Import: `import { defineCountdown } from 'motionary/components/widgets'; defineCountdown();`
|
|
1072
|
-
- CDN: https://unpkg.com/motionary@
|
|
1078
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1073
1079
|
- Attributes: `to`, `seconds`, `units`, `labels`, `label`
|
|
1074
1080
|
- Events: `usa:tick`, `usa:done`
|
|
1075
1081
|
- Methods: `start()`, `stop()`
|
|
@@ -1083,7 +1089,7 @@ createTimeline().add(a, [{ opacity: 0 }, { opacity: 1 }], 400).add(b, [{ transfo
|
|
|
1083
1089
|
Counts up to a number when visible, locale-formatted with tabular digits. Set .value to animate live dashboards.
|
|
1084
1090
|
|
|
1085
1091
|
- Import: `import { defineCounter } from 'motionary/components/text'; defineCounter();`
|
|
1086
|
-
- CDN: https://unpkg.com/motionary@
|
|
1092
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1087
1093
|
- Attributes: `to`, `decimals`, `locale`, `prefix`, `suffix`, `grouping`, `from`, `start`, `duration`
|
|
1088
1094
|
- Events: `usa:complete`
|
|
1089
1095
|
- Methods: `play()`, `format()`
|
|
@@ -1097,7 +1103,7 @@ Counts up to a number when visible, locale-formatted with tabular digits. Set .v
|
|
|
1097
1103
|
Up to six children become the faces of a CSS 3D cube. Drag / swipe, arrow keys, autoplay or show("top"); spring-driven, the front face is the only one exposed to screen readers.
|
|
1098
1104
|
|
|
1099
1105
|
- Import: `import { defineCube } from 'motionary/components/depth'; defineCube();`
|
|
1100
|
-
- CDN: https://unpkg.com/motionary@
|
|
1106
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1101
1107
|
- Attributes: `size`, `autoplay`, `perspective`
|
|
1102
1108
|
- Events: `usa:change`
|
|
1103
1109
|
- Methods: `show()`, `next()`, `prev()`
|
|
@@ -1113,7 +1119,7 @@ Up to six children become the faces of a CSS 3D cube. Drag / swipe, arrow keys,
|
|
|
1113
1119
|
6.5: slides sit on adjacent faces of a 3D cube that turns between them — swipe, arrow keys, buttons or autoplay (pauses on hover / focus / off screen); turn around the Y or X axis.
|
|
1114
1120
|
|
|
1115
1121
|
- Import: `import { defineCubeGallery } from 'motionary/components/widgets'; defineCubeGallery();`
|
|
1116
|
-
- CDN: https://unpkg.com/motionary@
|
|
1122
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1117
1123
|
- Attributes: `axis`, `autoplay`, `label`
|
|
1118
1124
|
- Events: `usa:change`
|
|
1119
1125
|
- Methods: `next()`, `prev()`, `goTo()`
|
|
@@ -1131,7 +1137,7 @@ Up to six children become the faces of a CSS 3D cube. Drag / swipe, arrow keys,
|
|
|
1131
1137
|
A spring-lagged ring, a magnetic ring that wraps buttons and links, or a soft glow following the pointer. Mouse / pen only. (6.0: for a comet tail use the comet-trail effect.)
|
|
1132
1138
|
|
|
1133
1139
|
- Import: `import { defineCursor } from 'motionary/components/page'; defineCursor();`
|
|
1134
|
-
- CDN: https://unpkg.com/motionary@
|
|
1140
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1135
1141
|
- Attributes: `mode`, `size`, `color`, `hide-native`, `targets`
|
|
1136
1142
|
|
|
1137
1143
|
```html
|
|
@@ -1143,7 +1149,7 @@ A spring-lagged ring, a magnetic ring that wraps buttons and links, or a soft gl
|
|
|
1143
1149
|
6.9: months slide in from the direction of travel, the chosen day pops inside a spring circle, today has a ring. A real date grid: arrows, PageUp / PageDown, Home / End, min / max.
|
|
1144
1150
|
|
|
1145
1151
|
- Import: `import { defineDatePicker } from 'motionary/components/widgets'; defineDatePicker();`
|
|
1146
|
-
- CDN: https://unpkg.com/motionary@
|
|
1152
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1147
1153
|
- Attributes: `min`, `max`, `first-day`, `locale`
|
|
1148
1154
|
- Events: `usa:change`
|
|
1149
1155
|
- Methods: `showMonth()`
|
|
@@ -1157,7 +1163,7 @@ A spring-lagged ring, a magnetic ring that wraps buttons and links, or a soft gl
|
|
|
1157
1163
|
Layers with data-depth (-1…1) shift and scale by depth as the pointer moves, the phone tilts (source="orientation") or the page scrolls; optional whole-scene rotation.
|
|
1158
1164
|
|
|
1159
1165
|
- Import: `import { defineDepth } from 'motionary/components/depth'; defineDepth();`
|
|
1160
|
-
- CDN: https://unpkg.com/motionary@
|
|
1166
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1161
1167
|
- Attributes: `source`, `strength`, `rotate`
|
|
1162
1168
|
- Methods: `requestPermission()`
|
|
1163
1169
|
|
|
@@ -1176,7 +1182,7 @@ Layers with data-depth (-1…1) shift and scale by depth as the pointer moves, t
|
|
|
1176
1182
|
Animated modal, side drawers and bottom sheet on the native <dialog>: top layer, focus trap, Esc, backdrop click.
|
|
1177
1183
|
|
|
1178
1184
|
- Import: `import { defineDialog } from 'motionary/components/transitions'; defineDialog();`
|
|
1179
|
-
- CDN: https://unpkg.com/motionary@
|
|
1185
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1180
1186
|
- Attributes: `open`, `kind`, `label`, `no-esc`, `no-backdrop-close`
|
|
1181
1187
|
- Events: `usa:open`, `usa:beforeclose`, `usa:close`
|
|
1182
1188
|
- Slots: default
|
|
@@ -1195,7 +1201,8 @@ Animated modal, side drawers and bottom sheet on the native <dialog>: top layer,
|
|
|
1195
1201
|
6.2: native <details> that spring open and closed (height + fade) with an overshooting chevron; one open at a time unless multiple. Find-in-page and keyboard keep working.
|
|
1196
1202
|
|
|
1197
1203
|
- Import: `import { defineDisclosure } from 'motionary/components/widgets'; defineDisclosure();`
|
|
1198
|
-
- CDN: https://unpkg.com/motionary@
|
|
1204
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1205
|
+
- Attributes: `multiple`, `spring`
|
|
1199
1206
|
- Events: `usa:toggle`
|
|
1200
1207
|
- Methods: `toggle()`, `openAll()`, `closeAll()`
|
|
1201
1208
|
|
|
@@ -1211,7 +1218,7 @@ Animated modal, side drawers and bottom sheet on the native <dialog>: top layer,
|
|
|
1211
1218
|
The image bulges and splits into RGB around the pointer. Without WebGL (or a cross-origin image without CORS) it falls back to a gentle CSS zoom.
|
|
1212
1219
|
|
|
1213
1220
|
- Import: `import { defineDistort } from 'motionary/components/webgl'; defineDistort();`
|
|
1214
|
-
- CDN: https://unpkg.com/motionary@
|
|
1221
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1215
1222
|
|
|
1216
1223
|
```html
|
|
1217
1224
|
<usa-distort>
|
|
@@ -1224,7 +1231,7 @@ The image bulges and splits into RGB around the pointer. Without WebGL (or a cro
|
|
|
1224
1231
|
6.6: items magnify with a smooth cosine falloff as the pointer moves along the dock, neighbours make room, labels pop above the hovered item and a click bounces it. Keyboard focus magnifies too.
|
|
1225
1232
|
|
|
1226
1233
|
- Import: `import { defineDock } from 'motionary/components/widgets'; defineDock();`
|
|
1227
|
-
- CDN: https://unpkg.com/motionary@
|
|
1234
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1228
1235
|
- Attributes: `orientation`, `magnify`, `range`, `label`, `bounce`
|
|
1229
1236
|
|
|
1230
1237
|
```html
|
|
@@ -1240,7 +1247,8 @@ The image bulges and splits into RGB around the pointer. Without WebGL (or a cro
|
|
|
1240
1247
|
A dot grid that swells and links up with lines around the pointer.
|
|
1241
1248
|
|
|
1242
1249
|
- Import: `import { defineDotNetwork } from 'motionary/components/background'; defineDotNetwork();`
|
|
1243
|
-
- CDN: https://unpkg.com/motionary@
|
|
1250
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1251
|
+
- Attributes: `gap`, `radius`, `color`
|
|
1244
1252
|
- Methods: `mount()`
|
|
1245
1253
|
|
|
1246
1254
|
```html
|
|
@@ -1252,7 +1260,7 @@ A dot grid that swells and links up with lines around the pointer.
|
|
|
1252
1260
|
10.9: plays .lottie files with their themes (slots recoloured by a theme from the file) and state machines — playback states, event / numeric / boolean guards, pointer and completion interactions, input and theme actions (OpenUrl is refused). Tap the dot: it starts pulsing, three taps switch it to the dark theme. Requires motionary/runtime/vector + motionary/runtime/lottie-state — npm i motionary, then use(vector, lottieState). Its own entry point: motionary/components/dotlottie.
|
|
1253
1261
|
|
|
1254
1262
|
- Import: `import { defineDotLottie } from 'motionary/components/dotlottie'; defineDotLottie();`
|
|
1255
|
-
- CDN: https://unpkg.com/motionary@
|
|
1263
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1256
1264
|
- Attributes: `theme`, `state-machine`
|
|
1257
1265
|
- Events: `usa:error`, `usa:state`, `usa:custom`, `usa:runtime-missing`
|
|
1258
1266
|
- Methods: `fire()`, `setInput()`, `setTheme()`
|
|
@@ -1271,12 +1279,12 @@ defineDotLottie(); // registers <usa-dotlottie> — after the prerequisites
|
|
|
1271
1279
|
```
|
|
1272
1280
|
|
|
1273
1281
|
```html
|
|
1274
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
1275
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
1276
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
1282
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
1283
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/vector.iife.js"></script>
|
|
1284
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/lottie-state.iife.js"></script>
|
|
1277
1285
|
<!-- then the component bundles -->
|
|
1278
|
-
<script src="https://unpkg.com/motionary@
|
|
1279
|
-
<script src="https://unpkg.com/motionary@
|
|
1286
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
1287
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
1280
1288
|
```
|
|
1281
1289
|
|
|
1282
1290
|
```html
|
|
@@ -1288,7 +1296,8 @@ defineDotLottie(); // registers <usa-dotlottie> — after the prerequisites
|
|
|
1288
1296
|
Double tap or double click a photo to pop a heart (or any emoji) at the tap point. L for keyboard users.
|
|
1289
1297
|
|
|
1290
1298
|
- Import: `import { defineDoubleTap } from 'motionary/components/click'; defineDoubleTap();`
|
|
1291
|
-
- CDN: https://unpkg.com/motionary@
|
|
1299
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1300
|
+
- Attributes: `disabled`, `delay`, `icon`, `color`
|
|
1292
1301
|
- Events: `usa:double-tap`
|
|
1293
1302
|
- Methods: `pop()`
|
|
1294
1303
|
|
|
@@ -1303,7 +1312,7 @@ Double tap or double click a photo to pop a heart (or any emoji) at the tap poin
|
|
|
1303
1312
|
Drag with mouse, touch, pen or arrow keys. spring-back returns home with a wobble; inertia glides after a flick; snap to a grid or points; rubber-band bounds.
|
|
1304
1313
|
|
|
1305
1314
|
- Import: `import { defineDraggable } from 'motionary/components/physics'; defineDraggable();`
|
|
1306
|
-
- CDN: https://unpkg.com/motionary@
|
|
1315
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1307
1316
|
- Attributes: `axis`, `disabled`, `preset`, `bounds`, `spring-back`, `inertia`, `snap`, `step`
|
|
1308
1317
|
- Events: `usa:settle`, `usa:drag-start`, `usa:drag`, `usa:drag-end`
|
|
1309
1318
|
- Methods: `moveTo()`, `reset()`
|
|
@@ -1320,7 +1329,8 @@ Drag with mouse, touch, pen or arrow keys. spring-back returns home with a wobbl
|
|
|
1320
1329
|
Every stroke of the SVG inside draws itself — on view, hover, click or scrubbed with scroll — staggered between shapes, optional fill afterwards. No getTotalLength() needed.
|
|
1321
1330
|
|
|
1322
1331
|
- Import: `import { defineDraw } from 'motionary/components/svg'; defineDraw();`
|
|
1323
|
-
- CDN: https://unpkg.com/motionary@
|
|
1332
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1333
|
+
- Attributes: `duration`, `stagger`, `trigger`, `repeat`
|
|
1324
1334
|
- Events: `usa:complete`
|
|
1325
1335
|
- Methods: `play()`
|
|
1326
1336
|
|
|
@@ -1335,7 +1345,7 @@ Every stroke of the SVG inside draws itself — on view, hover, click or scrubbe
|
|
|
1335
1345
|
A side panel that springs in, drags / swipes closed, traps the page behind a backdrop and returns focus on close. Left, right, top or bottom.
|
|
1336
1346
|
|
|
1337
1347
|
- Import: `import { defineDrawer } from 'motionary/components/ui'; defineDrawer();`
|
|
1338
|
-
- CDN: https://unpkg.com/motionary@
|
|
1348
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1339
1349
|
- Methods: `show()`, `close()`
|
|
1340
1350
|
|
|
1341
1351
|
```html
|
|
@@ -1348,7 +1358,7 @@ A side panel that springs in, drags / swipes closed, traps the page behind a bac
|
|
|
1348
1358
|
7.1: one vertical slider per band with springy caps and a smooth response curve drawn through them; presets glide every band to its gain.
|
|
1349
1359
|
|
|
1350
1360
|
- Import: `import { defineEqualizer } from 'motionary/components/widgets'; defineEqualizer();`
|
|
1351
|
-
- CDN: https://unpkg.com/motionary@
|
|
1361
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1352
1362
|
- Attributes: `bands`, `preset`, `label`
|
|
1353
1363
|
- Events: `usa:change`
|
|
1354
1364
|
- Methods: `applyPreset()`
|
|
@@ -1363,7 +1373,7 @@ A side panel that springs in, drags / swipes closed, traps the page behind a bac
|
|
|
1363
1373
|
A floating action button whose actions fan out with a staggered spring: up, down, left, right or radial.
|
|
1364
1374
|
|
|
1365
1375
|
- Import: `import { defineFab } from 'motionary/components/ui'; defineFab();`
|
|
1366
|
-
- CDN: https://unpkg.com/motionary@
|
|
1376
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1367
1377
|
- Attributes: `direction`, `gap`
|
|
1368
1378
|
- Events: `usa:toggle`
|
|
1369
1379
|
- Methods: `toggle()`
|
|
@@ -1381,7 +1391,7 @@ A floating action button whose actions fan out with a staggered spring: up, down
|
|
|
1381
1391
|
8.1: an announcement banner with an ambient festive scene behind the text — lunar lanterns and sparkles, Christmas lights and snow, Halloween bats and moon, or fireworks.
|
|
1382
1392
|
|
|
1383
1393
|
- Import: `import { defineFestivalBanner } from 'motionary/components/widgets'; defineFestivalBanner();`
|
|
1384
|
-
- CDN: https://unpkg.com/motionary@
|
|
1394
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1385
1395
|
- Attributes: `theme`, `label`, `dismissible`
|
|
1386
1396
|
- Events: `usa:dismiss`
|
|
1387
1397
|
- Methods: `dismiss()`
|
|
@@ -1395,7 +1405,7 @@ A floating action button whose actions fan out with a staggered spring: up, down
|
|
|
1395
1405
|
7.7: a text input whose label floats up on focus, with a growing underline; validates on blur — invalid shakes and slides the message in, valid draws a check. strength adds a 4-step password meter.
|
|
1396
1406
|
|
|
1397
1407
|
- Import: `import { defineField } from 'motionary/components/widgets'; defineField();`
|
|
1398
|
-
- CDN: https://unpkg.com/motionary@
|
|
1408
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1399
1409
|
- Attributes: `label`, `hint`, `error`, `strength`
|
|
1400
1410
|
- Events: `usa:invalid`, `usa:valid`
|
|
1401
1411
|
- Methods: `validate()`
|
|
@@ -1410,7 +1420,8 @@ A floating action button whose actions fan out with a staggered spring: up, down
|
|
|
1410
1420
|
6.9: dragging files over it lights marching-ants borders and lifts the icon; dropped (or browsed) files fly into a list with progress bars that end in a drawn check.
|
|
1411
1421
|
|
|
1412
1422
|
- Import: `import { defineFileDrop } from 'motionary/components/widgets'; defineFileDrop();`
|
|
1413
|
-
- CDN: https://unpkg.com/motionary@
|
|
1423
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1424
|
+
- Attributes: `label`, `accept`, `multiple`, `simulate`
|
|
1414
1425
|
- Events: `usa:files`
|
|
1415
1426
|
- Methods: `setProgress()`, `addFiles()`, `clear()`
|
|
1416
1427
|
|
|
@@ -1426,7 +1437,8 @@ A floating action button whose actions fan out with a staggered spring: up, down
|
|
|
1426
1437
|
Full-screen sections that snap one at a time, with keyboard paging, dot navigation and a usa:section event.
|
|
1427
1438
|
|
|
1428
1439
|
- Import: `import { defineFullpage } from 'motionary/components/page'; defineFullpage();`
|
|
1429
|
-
- CDN: https://unpkg.com/motionary@
|
|
1440
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1441
|
+
- Attributes: `dots`, `axis`
|
|
1430
1442
|
- Events: `usa:section`
|
|
1431
1443
|
- Methods: `go()`, `next()`, `prev()`
|
|
1432
1444
|
|
|
@@ -1442,7 +1454,7 @@ Full-screen sections that snap one at a time, with keyboard paging, dot navigati
|
|
|
1442
1454
|
<usa-fx> plays any registered effect on its child: pulse, pop, jelly, wiggle, heartbeat, bounce, flash (≤ 2 per second), tada, shake. Click the button.
|
|
1443
1455
|
|
|
1444
1456
|
- Import: `import { defineFx } from 'motionary/components/fx'; defineFx();`
|
|
1445
|
-
- CDN: https://unpkg.com/motionary@
|
|
1457
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1446
1458
|
- Attributes: `effect`, `trigger`, `options`, `self`, `once`
|
|
1447
1459
|
- Methods: `play()`
|
|
1448
1460
|
|
|
@@ -1457,7 +1469,7 @@ Full-screen sections that snap one at a time, with keyboard paging, dot navigati
|
|
|
1457
1469
|
7.2: a semicircular gauge — the needle swings to the value on a damped spring (overshoot, settle), the arc fills in the colour of its zone and the number counts. role="meter".
|
|
1458
1470
|
|
|
1459
1471
|
- Import: `import { defineGauge } from 'motionary/components/widgets'; defineGauge();`
|
|
1460
|
-
- CDN: https://unpkg.com/motionary@
|
|
1472
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1461
1473
|
- Attributes: `min`, `max`, `zones`, `unit`, `label`, `value`
|
|
1462
1474
|
|
|
1463
1475
|
```html
|
|
@@ -1469,7 +1481,7 @@ Full-screen sections that snap one at a time, with keyboard paging, dot navigati
|
|
|
1469
1481
|
9.3: seeded generative art on a canvas — flow fields, circle packing, Truchet tiles or layered waves in curated palettes; it draws itself in on screen and a tap re-seeds it.
|
|
1470
1482
|
|
|
1471
1483
|
- Import: `import { defineGenArt } from 'motionary/components/widgets'; defineGenArt();`
|
|
1472
|
-
- CDN: https://unpkg.com/motionary@
|
|
1484
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1473
1485
|
- Attributes: `art`, `seed`, `palette`, `label`
|
|
1474
1486
|
- Events: `usa:generate`
|
|
1475
1487
|
- Methods: `generate()`, `toDataURL()`
|
|
@@ -1483,7 +1495,7 @@ Full-screen sections that snap one at a time, with keyboard paging, dot navigati
|
|
|
1483
1495
|
5.7: <usa-gesture-fx> plays any registered effect on a fling (fast release), a two-finger twist or a long press that charges --usa-charge 0 → 1. JS: bindGesture(el, "fling", "tada").
|
|
1484
1496
|
|
|
1485
1497
|
- Import: `import { defineGestureFx } from 'motionary/components/effects'; defineGestureFx();`
|
|
1486
|
-
- CDN: https://unpkg.com/motionary@
|
|
1498
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1487
1499
|
- Attributes: `gesture`, `effect`, `options`, `self`, `velocity`, `angle`, `duration`
|
|
1488
1500
|
|
|
1489
1501
|
```html
|
|
@@ -1497,7 +1509,7 @@ Full-screen sections that snap one at a time, with keyboard paging, dot navigati
|
|
|
1497
1509
|
8.7: a multi-touch sticker — drag with one finger, pinch with two to scale and twist to rotate, all at once, with a lifted shadow while held (wheel / Shift + wheel and keyboard on desktop).
|
|
1498
1510
|
|
|
1499
1511
|
- Import: `import { defineGestureSticker } from 'motionary/components/widgets'; defineGestureSticker();`
|
|
1500
|
-
- CDN: https://unpkg.com/motionary@
|
|
1512
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1501
1513
|
- Attributes: `min`, `max`, `label`
|
|
1502
1514
|
- Events: `usa:transform`
|
|
1503
1515
|
- Methods: `transformTo()`, `reset()`
|
|
@@ -1513,7 +1525,7 @@ Full-screen sections that snap one at a time, with keyboard paging, dot navigati
|
|
|
1513
1525
|
10.9: <usa-gl-scene> for compressed glTF — Draco meshes and KTX2 (Basis Universal) textures decoded by the official decoders (Google draco3d, Binomial’s Basis Universal transcoder), lazy-loaded optional peers: only the decoder a file needs is fetched. Requires motionary/runtime/gl + format-gltf + gltf-decoders and draco3d (+ the Basis transcoder for KTX2 textures). Its own entry point: motionary/components/gl-model.
|
|
1514
1526
|
|
|
1515
1527
|
- Import: `import { defineGlModel } from 'motionary/components/gl-model'; defineGlModel();`
|
|
1516
|
-
- CDN: https://unpkg.com/motionary@
|
|
1528
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1517
1529
|
- Events: `usa:runtime-missing`
|
|
1518
1530
|
- Requires: motionary/runtime/gl + motionary/runtime/format-gltf + motionary/runtime/gltf-decoders + draco3d + basis_transcoder.js
|
|
1519
1531
|
- Install: `npm i motionary && npm i draco3d && curl -LO https://cdn.jsdelivr.net/gh/BinomialLLC/basis_universal@1.16.4/webgl/transcoder/build/basis_transcoder.js -LO https://cdn.jsdelivr.net/gh/BinomialLLC/basis_universal@1.16.4/webgl/transcoder/build/basis_transcoder.wasm`
|
|
@@ -1534,15 +1546,15 @@ defineGlModel(); // registers <usa-gl-model> — after the prerequisites
|
|
|
1534
1546
|
```
|
|
1535
1547
|
|
|
1536
1548
|
```html
|
|
1537
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
1538
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
1539
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
1540
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
1549
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
1550
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/gl.iife.js"></script>
|
|
1551
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-gltf.iife.js"></script>
|
|
1552
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/gltf-decoders.iife.js"></script>
|
|
1541
1553
|
<script src="https://www.gstatic.com/draco/versioned/decoders/1.5.7/draco_decoder.js"></script>
|
|
1542
1554
|
<script src="https://cdn.jsdelivr.net/gh/BinomialLLC/basis_universal@1.16.4/webgl/transcoder/build/basis_transcoder.js"></script>
|
|
1543
1555
|
<!-- then the component bundles -->
|
|
1544
|
-
<script src="https://unpkg.com/motionary@
|
|
1545
|
-
<script src="https://unpkg.com/motionary@
|
|
1556
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
1557
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
1546
1558
|
```
|
|
1547
1559
|
|
|
1548
1560
|
```html
|
|
@@ -1554,7 +1566,7 @@ defineGlModel(); // registers <usa-gl-model> — after the prerequisites
|
|
|
1554
1566
|
10.5: a WebGL2 3D viewer on Motionary’s own renderer — glTF 2.0 / GLB and OBJ / MTL models or built-in shapes, PBR-style materials, orbit controls (drag, wheel, pinch, arrow keys), auto-rotate and video textures. Requires motionary/runtime/gl (+ format-gltf for .gltf / .glb, format-obj for .obj, gltf-anim for glTF animation — 10.8) — npm i motionary, then use(gl, formatGltf, formatObj, gltfAnim) before it mounts.
|
|
1555
1567
|
|
|
1556
1568
|
- Import: `import { defineGlScene } from 'motionary/components/widgets'; defineGlScene();`
|
|
1557
|
-
- CDN: https://unpkg.com/motionary@
|
|
1569
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1558
1570
|
- Attributes: `src`, `shape`, `color`, `metallic`, `roughness`, `background`, `exposure`, `controls`, `auto-rotate`, `video`, `video-scrub`, `label`, `animation`, `animation-speed`
|
|
1559
1571
|
- Events: `usa:error`, `usa:load`, `usa:runtime-missing`
|
|
1560
1572
|
- Methods: `reload()`
|
|
@@ -1575,14 +1587,14 @@ defineGlScene(); // registers <usa-gl-scene> — after the prerequisites
|
|
|
1575
1587
|
```
|
|
1576
1588
|
|
|
1577
1589
|
```html
|
|
1578
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
1579
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
1580
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
1581
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
1582
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
1590
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
1591
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/gl.iife.js"></script>
|
|
1592
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-gltf.iife.js"></script>
|
|
1593
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-obj.iife.js"></script>
|
|
1594
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/gltf-anim.iife.js"></script>
|
|
1583
1595
|
<!-- then the component bundles -->
|
|
1584
|
-
<script src="https://unpkg.com/motionary@
|
|
1585
|
-
<script src="https://unpkg.com/motionary@
|
|
1596
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
1597
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
1586
1598
|
```
|
|
1587
1599
|
|
|
1588
1600
|
```html
|
|
@@ -1594,7 +1606,7 @@ defineGlScene(); // registers <usa-gl-scene> — after the prerequisites
|
|
|
1594
1606
|
An RGB-split, sliced glitch — always on or on hover.
|
|
1595
1607
|
|
|
1596
1608
|
- Import: `import { defineGlitch } from 'motionary/components/text'; defineGlitch();`
|
|
1597
|
-
- CDN: https://unpkg.com/motionary@
|
|
1609
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1598
1610
|
- Attributes: `text`, `intensity`
|
|
1599
1611
|
- Methods: `mount()`, `splitChars()`
|
|
1600
1612
|
|
|
@@ -1607,7 +1619,7 @@ An RGB-split, sliced glitch — always on or on hover.
|
|
|
1607
1619
|
7.6: an SVG globe in orthographic projection — graticule, pulsing markers, spins while on screen, drag to turn it, flyTo(name) brings a city round to the front. No WebGL, no tiles.
|
|
1608
1620
|
|
|
1609
1621
|
- Import: `import { defineGlobe } from 'motionary/components/widgets'; defineGlobe();`
|
|
1610
|
-
- CDN: https://unpkg.com/motionary@
|
|
1622
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1611
1623
|
- Attributes: `markers`, `speed`, `tilt`, `lon`
|
|
1612
1624
|
- Events: `usa:focus`
|
|
1613
1625
|
- Methods: `flyTo()`
|
|
@@ -1622,7 +1634,7 @@ An RGB-split, sliced glitch — always on or on hover.
|
|
|
1622
1634
|
10.5 (WebGPU effects 2.0): tens of thousands of particles simulated by a WebGPU compute shader and drawn as instanced quads — swirl, galaxy or fountain, pointer repulsion, trails; Canvas 2D fallback where WebGPU is missing.
|
|
1623
1635
|
|
|
1624
1636
|
- Import: `import { defineGpuParticles } from 'motionary/components/widgets'; defineGpuParticles();`
|
|
1625
|
-
- CDN: https://unpkg.com/motionary@
|
|
1637
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1626
1638
|
- Attributes: `count`, `mode`, `colors`, `size`, `speed`, `trail`, `pointer`, `label`
|
|
1627
1639
|
- Events: `usa:backend`
|
|
1628
1640
|
|
|
@@ -1635,7 +1647,7 @@ An RGB-split, sliced glitch — always on or on hover.
|
|
|
1635
1647
|
Text filled with a multi-colour gradient that keeps flowing.
|
|
1636
1648
|
|
|
1637
1649
|
- Import: `import { defineGradientText } from 'motionary/components/text'; defineGradientText();`
|
|
1638
|
-
- CDN: https://unpkg.com/motionary@
|
|
1650
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1639
1651
|
- Attributes: `colors`, `speed`, `angle`
|
|
1640
1652
|
- Methods: `mount()`, `splitChars()`
|
|
1641
1653
|
|
|
@@ -1648,7 +1660,7 @@ Text filled with a multi-colour gradient that keeps flowing.
|
|
|
1648
1660
|
An SVG-noise grain overlay — no image to ship. animated makes it jitter like film.
|
|
1649
1661
|
|
|
1650
1662
|
- Import: `import { defineGrain } from 'motionary/components/background'; defineGrain();`
|
|
1651
|
-
- CDN: https://unpkg.com/motionary@
|
|
1663
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1652
1664
|
- Attributes: `opacity`, `blend`, `scale`
|
|
1653
1665
|
|
|
1654
1666
|
```html
|
|
@@ -1662,7 +1674,8 @@ An SVG-noise grain overlay — no image to ship. animated makes it jitter like f
|
|
|
1662
1674
|
A line grid behind the content that lights up around the pointer.
|
|
1663
1675
|
|
|
1664
1676
|
- Import: `import { defineGridGlow } from 'motionary/components/background'; defineGridGlow();`
|
|
1665
|
-
- CDN: https://unpkg.com/motionary@
|
|
1677
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1678
|
+
- Attributes: `size`, `radius`, `color`
|
|
1666
1679
|
- Methods: `mount()`
|
|
1667
1680
|
|
|
1668
1681
|
```html
|
|
@@ -1676,7 +1689,7 @@ A line grid behind the content that lights up around the pointer.
|
|
|
1676
1689
|
8.7: a 3D card that tilts with the phone’s gyroscope (and with the pointer on desktop), with a moving glare and layers that float at different depths.
|
|
1677
1690
|
|
|
1678
1691
|
- Import: `import { defineGyroCard } from 'motionary/components/widgets'; defineGyroCard();`
|
|
1679
|
-
- CDN: https://unpkg.com/motionary@
|
|
1692
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1680
1693
|
- Attributes: `max`, `glare`
|
|
1681
1694
|
- Events: `usa:tilt`
|
|
1682
1695
|
- Methods: `tilt()`, `wobble()`
|
|
@@ -1693,7 +1706,7 @@ A line grid behind the content that lights up around the pointer.
|
|
|
1693
1706
|
The text draws itself stroke by stroke, then fills in — signatures, hero words.
|
|
1694
1707
|
|
|
1695
1708
|
- Import: `import { defineHandwriting } from 'motionary/components/text'; defineHandwriting();`
|
|
1696
|
-
- CDN: https://unpkg.com/motionary@
|
|
1709
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1697
1710
|
- Attributes: `text`, `size`, `font`, `stroke`, `duration`
|
|
1698
1711
|
- Events: `usa:complete`
|
|
1699
1712
|
- Methods: `mount()`, `splitChars()`
|
|
@@ -1707,7 +1720,7 @@ The text draws itself stroke by stroke, then fills in — signatures, hero words
|
|
|
1707
1720
|
9.4: a full-bleed hero with a background video — poster first, cross-fade to the video, a readable scrim, an always-there pause button and an optional scroll-scrubbed mode.
|
|
1708
1721
|
|
|
1709
1722
|
- Import: `import { defineHeroVideo } from 'motionary/components/widgets'; defineHeroVideo();`
|
|
1710
|
-
- CDN: https://unpkg.com/motionary@
|
|
1723
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1711
1724
|
- Attributes: `label`, `scrub`, `poster`
|
|
1712
1725
|
- Methods: `toggle()`
|
|
1713
1726
|
|
|
@@ -1723,7 +1736,7 @@ The text draws itself stroke by stroke, then fills in — signatures, hero words
|
|
|
1723
1736
|
Press and hold (pointer, Space or Enter) while a ring fills; releasing early rewinds. For destructive actions.
|
|
1724
1737
|
|
|
1725
1738
|
- Import: `import { defineHold } from 'motionary/components/click'; defineHold();`
|
|
1726
|
-
- CDN: https://unpkg.com/motionary@
|
|
1739
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1727
1740
|
- Attributes: `duration`, `disabled`, `color`, `label`
|
|
1728
1741
|
- Events: `usa:progress`, `usa:confirm`, `usa:cancel`
|
|
1729
1742
|
- Methods: `cancel()`
|
|
@@ -1737,7 +1750,7 @@ Press and hold (pointer, Space or Enter) while a ring fills; releasing early rew
|
|
|
1737
1750
|
8.4: a sci-fi HUD panel — angled corners, a glowing frame that draws itself in when the panel scrolls into view, a header with a blinking status light, and data rows that fill in as animated bar readouts.
|
|
1738
1751
|
|
|
1739
1752
|
- Import: `import { defineHudPanel } from 'motionary/components/widgets'; defineHudPanel();`
|
|
1740
|
-
- CDN: https://unpkg.com/motionary@
|
|
1753
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1741
1754
|
- Attributes: `title`, `status`, `color`
|
|
1742
1755
|
- Events: `usa:boot`
|
|
1743
1756
|
- Methods: `boot()`
|
|
@@ -1754,7 +1767,7 @@ Press and hold (pointer, Space or Enter) while a ring fills; releasing early rew
|
|
|
1754
1767
|
8.0: server-rendered children animate in on hydration — hidden only while JS is on and not yet upgraded (ssrHead() in the head, 3 s CSS fallback), then staggered in on the unified clock.
|
|
1755
1768
|
|
|
1756
1769
|
- Import: `import { defineHydrate } from 'motionary/components/widgets'; defineHydrate();`
|
|
1757
|
-
- CDN: https://unpkg.com/motionary@
|
|
1770
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1758
1771
|
- Attributes: `effect`, `stagger`, `duration`
|
|
1759
1772
|
- Events: `usa:hydrated`
|
|
1760
1773
|
- Methods: `replay()`
|
|
@@ -1773,7 +1786,7 @@ Press and hold (pointer, Space or Enter) while a ring fills; releasing early rew
|
|
|
1773
1786
|
Icons that morph point-by-point with a spring: play ↔ pause, menu ↔ close, plus ↔ minus, check, arrow. toggle makes it a button with per-icon labels.
|
|
1774
1787
|
|
|
1775
1788
|
- Import: `import { defineIconMorph } from 'motionary/components/click'; defineIconMorph();`
|
|
1776
|
-
- CDN: https://unpkg.com/motionary@
|
|
1789
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1777
1790
|
- Attributes: `icons`, `size`, `toggle`, `index`, `preset`, `labels`
|
|
1778
1791
|
- Events: `usa:change`
|
|
1779
1792
|
- Methods: `next()`, `show()`
|
|
@@ -1788,13 +1801,13 @@ Icons that morph point-by-point with a spring: play ↔ pause, menu ↔ close, p
|
|
|
1788
1801
|
10.1: one-click install snippet with npm / pnpm / yarn / bun / CDN tabs and a copy button that confirms with a check; `cdn` sets the URL of the CDN tab.
|
|
1789
1802
|
|
|
1790
1803
|
- Import: `import { defineInstallButton } from 'motionary/components/widgets'; defineInstallButton();`
|
|
1791
|
-
- CDN: https://unpkg.com/motionary@
|
|
1804
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1792
1805
|
- Attributes: `package`, `managers`, `cdn`, `dev`, `manager`
|
|
1793
1806
|
- Events: `usa:copy`
|
|
1794
1807
|
- Methods: `command()`, `copy()`
|
|
1795
1808
|
|
|
1796
1809
|
```html
|
|
1797
|
-
<usa-install-button package="motionary" managers="npm pnpm yarn bun cdn" cdn="https://cdn.jsdelivr.net/npm/motionary@
|
|
1810
|
+
<usa-install-button package="motionary" managers="npm pnpm yarn bun cdn" cdn="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></usa-install-button>
|
|
1798
1811
|
```
|
|
1799
1812
|
|
|
1800
1813
|
### <usa-kanban> — Kanban board (drag-sort)
|
|
@@ -1802,7 +1815,8 @@ Icons that morph point-by-point with a spring: play ↔ pause, menu ↔ close, p
|
|
|
1802
1815
|
6.8: drag cards between columns — the card lifts and tilts toward the drag, a placeholder opens where it will land and the other cards glide aside (FLIP). Full keyboard support: Space picks up, arrows move, Space drops.
|
|
1803
1816
|
|
|
1804
1817
|
- Import: `import { defineKanban } from 'motionary/components/widgets'; defineKanban();`
|
|
1805
|
-
- CDN: https://unpkg.com/motionary@
|
|
1818
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1819
|
+
- Attributes: `label`
|
|
1806
1820
|
- Events: `usa:move`
|
|
1807
1821
|
- Methods: `cardsOf()`, `move()`
|
|
1808
1822
|
|
|
@@ -1822,7 +1836,8 @@ Icons that morph point-by-point with a spring: play ↔ pause, menu ↔ close, p
|
|
|
1822
1836
|
6.9: a compact timeline for <usa-player> JSON — drag a bar to move a track, drag its edge to resize, scrub the playhead or press play; exports format use-scroll-animate/animation v1.
|
|
1823
1837
|
|
|
1824
1838
|
- Import: `import { defineKeyframeEditor } from 'motionary/components/widgets'; defineKeyframeEditor();`
|
|
1825
|
-
- CDN: https://unpkg.com/motionary@
|
|
1839
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1840
|
+
- Attributes: `for`
|
|
1826
1841
|
- Events: `usa:change`
|
|
1827
1842
|
- Methods: `toJSON()`, `play()`, `seek()`
|
|
1828
1843
|
|
|
@@ -1839,7 +1854,7 @@ Icons that morph point-by-point with a spring: play ↔ pause, menu ↔ close, p
|
|
|
1839
1854
|
7.2: the value counts up keeping prefix, suffix and decimals ("$12.4k", "98.2%"), the delta chip slides in with an arrow coloured by sign, and an optional trend draws a sparkline. Setting value rolls and flashes the card.
|
|
1840
1855
|
|
|
1841
1856
|
- Import: `import { defineKpi } from 'motionary/components/widgets'; defineKpi();`
|
|
1842
|
-
- CDN: https://unpkg.com/motionary@
|
|
1857
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1843
1858
|
- Attributes: `label`, `delta`, `caption`, `trend`, `invert`, `locale`
|
|
1844
1859
|
|
|
1845
1860
|
```html
|
|
@@ -1851,7 +1866,8 @@ Icons that morph point-by-point with a spring: play ↔ pause, menu ↔ close, p
|
|
|
1851
1866
|
7.5: a ranked list — when scores change, rows glide to their new rank, climbers flash green with ▲n and fallers red with ▼n, scores roll and the top three get medals.
|
|
1852
1867
|
|
|
1853
1868
|
- Import: `import { defineLeaderboard } from 'motionary/components/widgets'; defineLeaderboard();`
|
|
1854
|
-
- CDN: https://unpkg.com/motionary@
|
|
1869
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1870
|
+
- Attributes: `label`, `limit`, `me`
|
|
1855
1871
|
- Events: `usa:rank`
|
|
1856
1872
|
- Methods: `setScore()`
|
|
1857
1873
|
|
|
@@ -1869,7 +1885,7 @@ Icons that morph point-by-point with a spring: play ↔ pause, menu ↔ close, p
|
|
|
1869
1885
|
A heart that pops with a spring and bursts into particles; aria-pressed, optional count.
|
|
1870
1886
|
|
|
1871
1887
|
- Import: `import { defineLike } from 'motionary/components/click'; defineLike();`
|
|
1872
|
-
- CDN: https://unpkg.com/motionary@
|
|
1888
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1873
1889
|
- Attributes: `liked`, `count`, `label`, `disabled`, `size`, `color`, `haptic`
|
|
1874
1890
|
- Events: `usa:change`
|
|
1875
1891
|
- Methods: `toggle()`
|
|
@@ -1883,7 +1899,7 @@ A heart that pops with a spring and bursts into particles; aria-pressed, optiona
|
|
|
1883
1899
|
Click or tap to send water ripples through the image; hover adds a gentle wobble. The plain image stays when WebGL is unavailable.
|
|
1884
1900
|
|
|
1885
1901
|
- Import: `import { defineLiquid } from 'motionary/components/webgl'; defineLiquid();`
|
|
1886
|
-
- CDN: https://unpkg.com/motionary@
|
|
1902
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1887
1903
|
|
|
1888
1904
|
```html
|
|
1889
1905
|
<usa-liquid strength="1">
|
|
@@ -1896,7 +1912,7 @@ Click or tap to send water ripples through the image; hover adds a gentle wobble
|
|
|
1896
1912
|
8.3: a navigation bar whose active indicator is a drop of liquid — it stretches like a droplet towards the next item and settles with a wobble (gooey SVG filter).
|
|
1897
1913
|
|
|
1898
1914
|
- Import: `import { defineLiquidNav } from 'motionary/components/widgets'; defineLiquidNav();`
|
|
1899
|
-
- CDN: https://unpkg.com/motionary@
|
|
1915
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1900
1916
|
- Attributes: `label`, `value`
|
|
1901
1917
|
- Events: `usa:change`
|
|
1902
1918
|
|
|
@@ -1911,7 +1927,8 @@ Click or tap to send water ripples through the image; hover adds a gentle wobble
|
|
|
1911
1927
|
A slim NProgress-style bar for route changes and fetches: loadingBar.start() trickles, done() completes and fades.
|
|
1912
1928
|
|
|
1913
1929
|
- Import: `import { defineLoadingBar } from 'motionary/components/page'; defineLoadingBar();`
|
|
1914
|
-
- CDN: https://unpkg.com/motionary@
|
|
1930
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
1931
|
+
- Attributes: `label`, `color`, `height`
|
|
1915
1932
|
- Methods: `start()`, `set()`, `done()`
|
|
1916
1933
|
|
|
1917
1934
|
```html
|
|
@@ -1926,7 +1943,7 @@ A slim NProgress-style bar for route changes and fetches: loadingBar.start() tri
|
|
|
1926
1943
|
7.6: a place card with a stylised mini map — the route from the origin draws itself, the pin drops in with a bounce and a ring pulses; distance computed with haversine (km or mi).
|
|
1927
1944
|
|
|
1928
1945
|
- Import: `import { defineLocationCard } from 'motionary/components/widgets'; defineLocationCard();`
|
|
1929
|
-
- CDN: https://unpkg.com/motionary@
|
|
1946
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1930
1947
|
- Attributes: `name`, `address`, `lat`, `lon`, `from-lat`, `from-lon`, `distance`, `href`, `unit`
|
|
1931
1948
|
- Events: `usa:arrive`
|
|
1932
1949
|
- Methods: `replay()`
|
|
@@ -1941,7 +1958,7 @@ A slim NProgress-style bar for route changes and fetches: loadingBar.start() tri
|
|
|
1941
1958
|
9.2: plays Lottie (After Effects / bodymovin) files without lottie-web — vector layers render as SVG and their keyframes run as native animations on Motionary’s clock.
|
|
1942
1959
|
|
|
1943
1960
|
- Import: `import { defineLottie } from 'motionary/components/widgets'; defineLottie();`
|
|
1944
|
-
- CDN: https://unpkg.com/motionary@
|
|
1961
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1945
1962
|
- Attributes: `src`, `loop`, `speed`, `label`
|
|
1946
1963
|
- Events: `usa:error`, `usa:load`, `usa:complete`
|
|
1947
1964
|
- Methods: `play()`, `pause()`, `stop()`
|
|
@@ -1955,7 +1972,7 @@ A slim NProgress-style bar for route changes and fetches: loadingBar.start() tri
|
|
|
1955
1972
|
9.2: an animated icon set shipped as tiny Lottie files — heart beat, bell swing, check draw-in, spinner, star twinkle, bolt zap — on click, hover, enter or loop.
|
|
1956
1973
|
|
|
1957
1974
|
- Import: `import { defineLottieIcon } from 'motionary/components/widgets'; defineLottieIcon();`
|
|
1958
|
-
- CDN: https://unpkg.com/motionary@
|
|
1975
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1959
1976
|
- Attributes: `name`, `size`, `color`, `label`, `trigger`
|
|
1960
1977
|
- Methods: `play()`
|
|
1961
1978
|
|
|
@@ -1969,7 +1986,7 @@ A slim NProgress-style bar for route changes and fetches: loadingBar.start() tri
|
|
|
1969
1986
|
10.6: plays Lottie JSON and dotLottie (.lottie) files with Motionary’s own Canvas 2D renderer — shapes, gradients, trim paths, masks, track mattes, precomps and images; autoplay, loop, bounce, segments / markers, play on hover or scrub with scroll. Requires motionary/runtime/vector — npm i motionary, then use(vector) before it mounts.
|
|
1970
1987
|
|
|
1971
1988
|
- Import: `import { defineLottiePlayer } from 'motionary/components/widgets'; defineLottiePlayer();`
|
|
1972
|
-
- CDN: https://unpkg.com/motionary@
|
|
1989
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
1973
1990
|
- Attributes: `src`, `animation`, `autoplay`, `loop`, `speed`, `mode`, `segment`, `hover`, `scrub`, `fit`, `background`, `label`
|
|
1974
1991
|
- Events: `usa:complete`, `usa:load`, `usa:error`, `usa:runtime-missing`
|
|
1975
1992
|
- Methods: `play()`, `pause()`, `stop()`, `seek()`
|
|
@@ -1987,11 +2004,11 @@ defineLottiePlayer(); // registers <usa-lottie-player> — after the prerequisit
|
|
|
1987
2004
|
```
|
|
1988
2005
|
|
|
1989
2006
|
```html
|
|
1990
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
1991
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
2007
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
2008
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/vector.iife.js"></script>
|
|
1992
2009
|
<!-- then the component bundles -->
|
|
1993
|
-
<script src="https://unpkg.com/motionary@
|
|
1994
|
-
<script src="https://unpkg.com/motionary@
|
|
2010
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
2011
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
1995
2012
|
```
|
|
1996
2013
|
|
|
1997
2014
|
```html
|
|
@@ -2003,7 +2020,8 @@ defineLottiePlayer(); // registers <usa-lottie-player> — after the prerequisit
|
|
|
2003
2020
|
7.1: LRC or [data-t] lines; the active line glows, scrolls to the centre and a highlight sweeps across it while past lines dim. Follows an <audio>, <video> or <usa-music-player> via for.
|
|
2004
2021
|
|
|
2005
2022
|
- Import: `import { defineLyrics } from 'motionary/components/widgets'; defineLyrics();`
|
|
2006
|
-
- CDN: https://unpkg.com/motionary@
|
|
2023
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2024
|
+
- Attributes: `label`, `for`
|
|
2007
2025
|
- Events: `usa:seek`
|
|
2008
2026
|
|
|
2009
2027
|
```html
|
|
@@ -2020,7 +2038,7 @@ defineLottiePlayer(); // registers <usa-lottie-player> — after the prerequisit
|
|
|
2020
2038
|
Content leans toward the pointer when it comes near and springs back. Fine pointers only; off under reduced motion.
|
|
2021
2039
|
|
|
2022
2040
|
- Import: `import { defineMagnetic } from 'motionary/components/interaction'; defineMagnetic();`
|
|
2023
|
-
- CDN: https://unpkg.com/motionary@
|
|
2041
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2024
2042
|
- Attributes: `strength`, `radius`, `disabled`
|
|
2025
2043
|
|
|
2026
2044
|
```html
|
|
@@ -2032,7 +2050,7 @@ Content leans toward the pointer when it comes near and springs back. Fine point
|
|
|
2032
2050
|
A seamless infinite ticker with constant speed, pause on hover, soft edges and vertical mode. Clones are hidden from AT.
|
|
2033
2051
|
|
|
2034
2052
|
- Import: `import { defineMarquee } from 'motionary/components/background'; defineMarquee();`
|
|
2035
|
-
- CDN: https://unpkg.com/motionary@
|
|
2053
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2036
2054
|
- Attributes: `speed`, `direction`, `gap`, `paused`, `pause-on-hover`
|
|
2037
2055
|
- Methods: `pause()`, `resume()`
|
|
2038
2056
|
|
|
@@ -2048,7 +2066,8 @@ A seamless infinite ticker with constant speed, pause on hover, soft edges and v
|
|
|
2048
2066
|
Reveal images or sections through a growing mask: circle, diamond, star, iris or wipes, from any origin.
|
|
2049
2067
|
|
|
2050
2068
|
- Import: `import { defineMaskReveal } from 'motionary/components/svg'; defineMaskReveal();`
|
|
2051
|
-
- CDN: https://unpkg.com/motionary@
|
|
2069
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2070
|
+
- Attributes: `shape`, `at`, `duration`, `delay`, `trigger`, `repeat`
|
|
2052
2071
|
- Events: `usa:complete`
|
|
2053
2072
|
- Methods: `reveal()`
|
|
2054
2073
|
|
|
@@ -2063,7 +2082,7 @@ Reveal images or sections through a growing mask: circle, diamond, star, iris or
|
|
|
2063
2082
|
Pinterest-style masonry: items drop into the shortest column and glide when the width, the items or their sizes change. CSS columns before JS runs.
|
|
2064
2083
|
|
|
2065
2084
|
- Import: `import { defineMasonry } from 'motionary/components/layout'; defineMasonry();`
|
|
2066
|
-
- CDN: https://unpkg.com/motionary@
|
|
2085
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2067
2086
|
- Attributes: `columns`, `min`, `gap`
|
|
2068
2087
|
- Methods: `enable()`, `disable()`
|
|
2069
2088
|
|
|
@@ -2079,7 +2098,7 @@ Pinterest-style masonry: items drop into the shortest column and glide when the
|
|
|
2079
2098
|
6.5: a masonry grid whose items glide to their new places (FLIP) on resize, insert / remove, filter(), shuffle() and sort(); hidden items scale out, new ones scale in.
|
|
2080
2099
|
|
|
2081
2100
|
- Import: `import { defineMasonryFlow } from 'motionary/components/widgets'; defineMasonryFlow();`
|
|
2082
|
-
- CDN: https://unpkg.com/motionary@
|
|
2101
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2083
2102
|
- Attributes: `min`, `gap`
|
|
2084
2103
|
- Events: `usa:layout`
|
|
2085
2104
|
- Methods: `layout()`, `filter()`, `shuffle()`, `sort()`
|
|
@@ -2098,7 +2117,7 @@ Pinterest-style masonry: items drop into the shortest column and glide when the
|
|
|
2098
2117
|
6.3: the list scales (or folds / slides) out of its button and the items cascade in. Full menu keyboard support — arrows, Home / End, Esc, Tab — and outside clicks close it.
|
|
2099
2118
|
|
|
2100
2119
|
- Import: `import { defineMenu } from 'motionary/components/widgets'; defineMenu();`
|
|
2101
|
-
- CDN: https://unpkg.com/motionary@
|
|
2120
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2102
2121
|
- Attributes: `placement`, `effect`
|
|
2103
2122
|
- Events: `usa:select`, `usa:open`, `usa:close`
|
|
2104
2123
|
- Methods: `open()`, `close()`, `toggle()`
|
|
@@ -2118,7 +2137,7 @@ Pinterest-style masonry: items drop into the shortest column and glide when the
|
|
|
2118
2137
|
6.6: the three bars morph into a cross, a back arrow, a minus or a spinning plus-to-cross; a real toggle button with aria-expanded that can open the element it controls (for).
|
|
2119
2138
|
|
|
2120
2139
|
- Import: `import { defineMenuToggle } from 'motionary/components/widgets'; defineMenuToggle();`
|
|
2121
|
-
- CDN: https://unpkg.com/motionary@
|
|
2140
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2122
2141
|
- Attributes: `variant`, `label`, `for`
|
|
2123
2142
|
- Events: `usa:toggle`
|
|
2124
2143
|
- Methods: `toggle()`
|
|
@@ -2133,7 +2152,8 @@ Pinterest-style masonry: items drop into the shortest column and glide when the
|
|
|
2133
2152
|
7.4: a chat thread — new bubbles pop in from their side, consecutive messages group, the list sticks to the bottom (or shows a “↓ New messages” pill when you scrolled up) and typing(name) shows animated typing dots.
|
|
2134
2153
|
|
|
2135
2154
|
- Import: `import { defineMessageList } from 'motionary/components/widgets'; defineMessageList();`
|
|
2136
|
-
- CDN: https://unpkg.com/motionary@
|
|
2155
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2156
|
+
- Attributes: `label`
|
|
2137
2157
|
- Events: `usa:message`
|
|
2138
2158
|
- Methods: `push()`, `typing()`
|
|
2139
2159
|
|
|
@@ -2150,7 +2170,7 @@ Pinterest-style masonry: items drop into the shortest column and glide when the
|
|
|
2150
2170
|
6.5: a progress line grows down the rail as you scroll; each milestone pops its dot and slides its card in when the line reaches it. Alternating sides on wide screens, one column on phones; data-date labels.
|
|
2151
2171
|
|
|
2152
2172
|
- Import: `import { defineMilestones } from 'motionary/components/widgets'; defineMilestones();`
|
|
2153
|
-
- CDN: https://unpkg.com/motionary@
|
|
2173
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2154
2174
|
- Attributes: `layout`
|
|
2155
2175
|
- Events: `usa:reach`
|
|
2156
2176
|
|
|
@@ -2167,7 +2187,7 @@ Pinterest-style masonry: items drop into the shortest column and glide when the
|
|
|
2167
2187
|
6.3: native <dialog> (top layer, focus trap, Esc) with animated open / close and a blurred backdrop — scale, slide-up, flip, or origin: it grows out of the button that opened it. Focus returns to the opener.
|
|
2168
2188
|
|
|
2169
2189
|
- Import: `import { defineModal } from 'motionary/components/widgets'; defineModal();`
|
|
2170
|
-
- CDN: https://unpkg.com/motionary@
|
|
2190
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2171
2191
|
|
|
2172
2192
|
```html
|
|
2173
2193
|
<button data-usa-open="welcome">Open</button>
|
|
@@ -2183,7 +2203,7 @@ Pinterest-style masonry: items drop into the shortest column and glide when the
|
|
|
2183
2203
|
Morph an SVG path through a list of shapes (paths="A | B | C") on click, hover, in view or automatically. Same-structure paths morph point by point.
|
|
2184
2204
|
|
|
2185
2205
|
- Import: `import { defineMorph } from 'motionary/components/svg'; defineMorph();`
|
|
2186
|
-
- CDN: https://unpkg.com/motionary@
|
|
2206
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2187
2207
|
- Attributes: `paths`, `trigger`, `duration`, `interval`
|
|
2188
2208
|
- Events: `usa:change`
|
|
2189
2209
|
- Methods: `next()`
|
|
@@ -2198,7 +2218,7 @@ Morph an SVG path through a list of shapes (paths="A | B | C") on click, hover,
|
|
|
2198
2218
|
9.0: the declarative motion DSL — describe motion as one readable string (“enter: fade-up 600ms stagger 80ms; hover: pop”) on <usa-motion> or any element’s data-motion, no JavaScript per element.
|
|
2199
2219
|
|
|
2200
2220
|
- Import: `import { defineMotion } from 'motionary/components/widgets'; defineMotion();`
|
|
2201
|
-
- CDN: https://unpkg.com/motionary@
|
|
2221
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2202
2222
|
- Attributes: `rules`
|
|
2203
2223
|
- Events: `usa:motion-error`
|
|
2204
2224
|
|
|
@@ -2216,7 +2236,7 @@ Morph an SVG path through a list of shapes (paths="A | B | C") on click, hover,
|
|
|
2216
2236
|
10.2: a live panel listing the running animations in a scope (CSS animations, transitions, element.animate(), components) with state and progress, plus the motionary/runtime ticker when present — pause / play all, 0.25× slow motion and per-row scrub.
|
|
2217
2237
|
|
|
2218
2238
|
- Import: `import { defineMotionInspector } from 'motionary/components/widgets'; defineMotionInspector();`
|
|
2219
|
-
- CDN: https://unpkg.com/motionary@
|
|
2239
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2220
2240
|
- Attributes: `scope`, `interval`
|
|
2221
2241
|
- Events: `usa:change`
|
|
2222
2242
|
- Methods: `refresh()`, `pauseAll()`, `playAll()`, `setRate()`, `animations()`
|
|
@@ -2230,7 +2250,7 @@ Morph an SVG path through a list of shapes (paths="A | B | C") on click, hover,
|
|
|
2230
2250
|
9.5: a motion settings panel for your users — motion level (full, gentle, minimal, none), animation speed, pause autoplaying video, no parallax — applied instantly to every Motionary animation and remembered.
|
|
2231
2251
|
|
|
2232
2252
|
- Import: `import { defineMotionPrefs } from 'motionary/components/widgets'; defineMotionPrefs();`
|
|
2233
|
-
- CDN: https://unpkg.com/motionary@
|
|
2253
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2234
2254
|
- Attributes: `label`
|
|
2235
2255
|
- Events: `usa:change`
|
|
2236
2256
|
- Methods: `reset()`
|
|
@@ -2244,7 +2264,7 @@ Morph an SVG path through a list of shapes (paths="A | B | C") on click, hover,
|
|
|
2244
2264
|
10.7 (AI-assisted motion): describe a motion in English or Chinese and get a live preview plus ready code — Web Animations, CSS (with a reduced-motion guard) or a Motionary component. A small deterministic parser (motionary/components/ai), no model and no network; the same parser powers suggest_motion in motionary-mcp 2.0.
|
|
2245
2265
|
|
|
2246
2266
|
- Import: `import { defineMotionPrompt } from 'motionary/components/widgets'; defineMotionPrompt();`
|
|
2247
|
-
- CDN: https://unpkg.com/motionary@
|
|
2267
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2248
2268
|
- Attributes: `value`, `format`, `placeholder`, `label`
|
|
2249
2269
|
- Events: `usa:suggest`, `usa:copy`
|
|
2250
2270
|
- Methods: `suggest()`
|
|
@@ -2258,7 +2278,7 @@ Morph an SVG path through a list of shapes (paths="A | B | C") on click, hover,
|
|
|
2258
2278
|
9.7: a motion spec sheet for design hand-off — each rule of a motion string with its trigger, a duration bar on a shared timeline and the easing curve, a Play playhead and Copy CSS; pairs with the Figma plugin and Framer export of motionary/design.
|
|
2259
2279
|
|
|
2260
2280
|
- Import: `import { defineMotionSpec } from 'motionary/components/widgets'; defineMotionSpec();`
|
|
2261
|
-
- CDN: https://unpkg.com/motionary@
|
|
2281
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2262
2282
|
- Attributes: `rules`, `label`
|
|
2263
2283
|
- Events: `usa:copy`
|
|
2264
2284
|
- Methods: `play()`
|
|
@@ -2272,7 +2292,8 @@ Morph an SVG path through a list of shapes (paths="A | B | C") on click, hover,
|
|
|
2272
2292
|
Let users pick Off · Low · Normal · High for the whole app; scales every component, persists, and Off equals reduced motion.
|
|
2273
2293
|
|
|
2274
2294
|
- Import: `import { defineMotionSwitch } from 'motionary/components/page'; defineMotionSwitch();`
|
|
2275
|
-
- CDN: https://unpkg.com/motionary@
|
|
2295
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2296
|
+
- Attributes: `labels`, `label`
|
|
2276
2297
|
- Events: `usa:change`
|
|
2277
2298
|
|
|
2278
2299
|
```html
|
|
@@ -2285,7 +2306,7 @@ Let users pick Off · Low · Normal · High for the whole app; scales every comp
|
|
|
2285
2306
|
5.8: <usa-motion-theme name> applies a theme pack — design tokens (--usa-theme-*), motion tokens and effect presets per role (enter / hover / click / attention / background). Neon, paper, glass, retro and brutalist; applyMotionTheme() for the whole page.
|
|
2286
2307
|
|
|
2287
2308
|
- Import: `import { defineMotionTheme } from 'motionary/components/effects'; defineMotionTheme();`
|
|
2288
|
-
- CDN: https://unpkg.com/motionary@
|
|
2309
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2289
2310
|
- Attributes: `name`
|
|
2290
2311
|
|
|
2291
2312
|
```html
|
|
@@ -2301,7 +2322,7 @@ Let users pick Off · Low · Normal · High for the whole app; scales every comp
|
|
|
2301
2322
|
7.1: the cover spins like a record while playing, play morphs to pause, mini equalizer bars dance and the progress bar is a scrubbable slider. Plays a child <audio> or simulates a track.
|
|
2302
2323
|
|
|
2303
2324
|
- Import: `import { defineMusicPlayer } from 'motionary/components/widgets'; defineMusicPlayer();`
|
|
2304
|
-
- CDN: https://unpkg.com/motionary@
|
|
2325
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2305
2326
|
- Attributes: `title`, `artist`, `cover`, `src`, `duration`
|
|
2306
2327
|
- Events: `usa:play`, `usa:pause`, `usa:seek`
|
|
2307
2328
|
- Methods: `play()`, `pause()`, `toggle()`, `seek()`
|
|
@@ -2317,7 +2338,7 @@ Let users pick Off · Low · Normal · High for the whole app; scales every comp
|
|
|
2317
2338
|
9.8: preview web motion as it will feel on a phone — an iOS / Android device frame replays the entrance with the rule’s curve and presses with a spring — and copy the generated React Native and Flutter code.
|
|
2318
2339
|
|
|
2319
2340
|
- Import: `import { defineNativePreview } from 'motionary/components/widgets'; defineNativePreview();`
|
|
2320
|
-
- CDN: https://unpkg.com/motionary@
|
|
2341
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2321
2342
|
- Attributes: `rules`, `platform`, `name`
|
|
2322
2343
|
- Events: `usa:replay`
|
|
2323
2344
|
- Methods: `replay()`, `code()`
|
|
@@ -2333,7 +2354,7 @@ Let users pick Off · Low · Normal · High for the whole app; scales every comp
|
|
|
2333
2354
|
6.6: the indicator follows the hovered or focused link — stretching from the old one, leading edge first — and settles back on the current page. Underline, pill, blob or dot.
|
|
2334
2355
|
|
|
2335
2356
|
- Import: `import { defineNavMorph } from 'motionary/components/widgets'; defineNavMorph();`
|
|
2336
|
-
- CDN: https://unpkg.com/motionary@
|
|
2357
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2337
2358
|
- Attributes: `indicator`, `label`, `active`
|
|
2338
2359
|
- Events: `usa:change`
|
|
2339
2360
|
|
|
@@ -2350,7 +2371,8 @@ Let users pick Off · Low · Normal · High for the whole app; scales every comp
|
|
|
2350
2371
|
Hides while you scroll down, slides back on the first scroll up; shrink makes it compact once scrolled. This page’s demo scrolls an inner box.
|
|
2351
2372
|
|
|
2352
2373
|
- Import: `import { defineNavbar } from 'motionary/components/ui'; defineNavbar();`
|
|
2353
|
-
- CDN: https://unpkg.com/motionary@
|
|
2374
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2375
|
+
- Attributes: `target`, `threshold`
|
|
2354
2376
|
- Events: `usa:hide`, `usa:show`
|
|
2355
2377
|
- Methods: `show()`
|
|
2356
2378
|
|
|
@@ -2365,7 +2387,8 @@ Hides while you scroll down, slides back on the first scroll up; shrink makes it
|
|
|
2365
2387
|
7.4: a bell with an unread badge and a dropdown — notify() swings the bell, bumps the badge and slides the notice in; “Mark all read” shrinks the badge away. Esc / outside click close it.
|
|
2366
2388
|
|
|
2367
2389
|
- Import: `import { defineNotificationBell } from 'motionary/components/widgets'; defineNotificationBell();`
|
|
2368
|
-
- CDN: https://unpkg.com/motionary@
|
|
2390
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2391
|
+
- Attributes: `label`
|
|
2369
2392
|
- Events: `usa:notify`, `usa:read`
|
|
2370
2393
|
- Methods: `notify()`, `markAllRead()`, `ring()`
|
|
2371
2394
|
|
|
@@ -2381,7 +2404,7 @@ Hides while you scroll down, slides back on the first scroll up; shrink makes it
|
|
|
2381
2404
|
6.4: rolling digit wheels — every digit spins forward to its new value, new digits slide in, locale grouping via Intl.NumberFormat, decimals, prefix / suffix. The accessible name is the formatted number.
|
|
2382
2405
|
|
|
2383
2406
|
- Import: `import { defineOdometer } from 'motionary/components/widgets'; defineOdometer();`
|
|
2384
|
-
- CDN: https://unpkg.com/motionary@
|
|
2407
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2385
2408
|
- Attributes: `value`, `locale`, `decimals`, `prefix`, `suffix`, `duration`
|
|
2386
2409
|
|
|
2387
2410
|
```html
|
|
@@ -2394,7 +2417,7 @@ Hides while you scroll down, slides back on the first scroll up; shrink makes it
|
|
|
2394
2417
|
8.3: a card with a soft, living blob shape — its outline slowly breathes on screen, morphs on hover and comes in leaf, ocean, petal and sand tints.
|
|
2395
2418
|
|
|
2396
2419
|
- Import: `import { defineOrganicCard } from 'motionary/components/widgets'; defineOrganicCard();`
|
|
2397
|
-
- CDN: https://unpkg.com/motionary@
|
|
2420
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2398
2421
|
- Attributes: `tint`, `seed`
|
|
2399
2422
|
- Methods: `morph()`
|
|
2400
2423
|
|
|
@@ -2409,7 +2432,7 @@ Hides while you scroll down, slides back on the first scroll up; shrink makes it
|
|
|
2409
2432
|
7.7: one-time-code boxes that auto-advance, step back on Backspace and take a pasted code; digits pop in, error() shakes the row red, success() sends a green wave across it.
|
|
2410
2433
|
|
|
2411
2434
|
- Import: `import { defineOtp } from 'motionary/components/widgets'; defineOtp();`
|
|
2412
|
-
- CDN: https://unpkg.com/motionary@
|
|
2435
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2413
2436
|
- Attributes: `length`, `mode`, `label`, `value`
|
|
2414
2437
|
- Events: `usa:complete`
|
|
2415
2438
|
- Methods: `fillCode()`, `clear()`, `error()`, `success()`
|
|
@@ -2424,7 +2447,7 @@ Hides while you scroll down, slides back on the first scroll up; shrink makes it
|
|
|
2424
2447
|
A scroll container whose edges stretch with iOS-style rubber-band resistance and spring back — touch, trackpad and wheel.
|
|
2425
2448
|
|
|
2426
2449
|
- Import: `import { defineOverscroll } from 'motionary/components/physics'; defineOverscroll();`
|
|
2427
|
-
- CDN: https://unpkg.com/motionary@
|
|
2450
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2428
2451
|
- Attributes: `axis`, `disabled`, `max`, `preset`
|
|
2429
2452
|
|
|
2430
2453
|
```html
|
|
@@ -2438,7 +2461,7 @@ A scroll container whose edges stretch with iOS-style rubber-band resistance and
|
|
|
2438
2461
|
Product cards reveal and lift, “Add to cart” presses and flies the product into the cart (which bumps), prices count up, badges pulse.
|
|
2439
2462
|
|
|
2440
2463
|
- Import: `import { definePack } from 'motionary/components/packs'; definePack();`
|
|
2441
|
-
- CDN: https://unpkg.com/motionary@
|
|
2464
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2442
2465
|
- Attributes: `name`
|
|
2443
2466
|
|
|
2444
2467
|
```html
|
|
@@ -2457,7 +2480,7 @@ Product cards reveal and lift, “Add to cart” presses and flies the product i
|
|
|
2457
2480
|
6.7: the highlight springs to the chosen page (squashing on the way) and page numbers slide in from the direction of travel when the window shifts. Prev / next, ellipses, aria-current.
|
|
2458
2481
|
|
|
2459
2482
|
- Import: `import { definePagination } from 'motionary/components/widgets'; definePagination();`
|
|
2460
|
-
- CDN: https://unpkg.com/motionary@
|
|
2483
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2461
2484
|
- Attributes: `total`, `siblings`, `label`
|
|
2462
2485
|
- Events: `usa:change`
|
|
2463
2486
|
|
|
@@ -2470,7 +2493,7 @@ Product cards reveal and lift, “Add to cart” presses and flies the product i
|
|
|
2470
2493
|
8.8: a 360° panorama — drag or swipe to look around with inertia, a slow auto-rotate, a compass for the heading and a “View in XR” badge when the browser offers WebXR.
|
|
2471
2494
|
|
|
2472
2495
|
- Import: `import { definePanorama } from 'motionary/components/widgets'; definePanorama();`
|
|
2473
|
-
- CDN: https://unpkg.com/motionary@
|
|
2496
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2474
2497
|
- Attributes: `src`, `autorotate`, `label`
|
|
2475
2498
|
- Events: `usa:xr`, `usa:xr-request`, `usa:look`
|
|
2476
2499
|
- Methods: `lookAt()`
|
|
@@ -2484,7 +2507,7 @@ Product cards reveal and lift, “Add to cart” presses and flies the product i
|
|
|
2484
2507
|
10.4: a parallax container — children with data-depth move at different speeds while it crosses the viewport (native view() scroll timeline first, JS fallback), optional pointer tilt; static under reduced motion.
|
|
2485
2508
|
|
|
2486
2509
|
- Import: `import { defineParallaxLayers } from 'motionary/components/widgets'; defineParallaxLayers();`
|
|
2487
|
-
- CDN: https://unpkg.com/motionary@
|
|
2510
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2488
2511
|
- Attributes: `range`, `engine`, `horizontal`, `pointer`, `strength`, `preview`
|
|
2489
2512
|
- Events: `usa:progress`
|
|
2490
2513
|
- Methods: `layers()`
|
|
@@ -2501,7 +2524,7 @@ Product cards reveal and lift, “Add to cart” presses and flies the product i
|
|
|
2501
2524
|
A canvas constellation that drifts away from the pointer. Runs only while visible, DPR ≤ 2, a still frame under reduced motion.
|
|
2502
2525
|
|
|
2503
2526
|
- Import: `import { defineParticles } from 'motionary/components/background'; defineParticles();`
|
|
2504
|
-
- CDN: https://unpkg.com/motionary@
|
|
2527
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2505
2528
|
- Attributes: `count`, `color`, `size`, `speed`, `links`, `interactive`, `paused`
|
|
2506
2529
|
- Methods: `reset()`
|
|
2507
2530
|
|
|
@@ -2514,7 +2537,7 @@ A canvas constellation that drifts away from the pointer. Runs only while visibl
|
|
|
2514
2537
|
9.5: one button that pauses all motion on the page (WCAG 2.2.2) — Motionary’s shared clock, every CSS / Web animation and autoplaying media — and resumes it again; `scope` limits it to one area.
|
|
2515
2538
|
|
|
2516
2539
|
- Import: `import { definePauseAll } from 'motionary/components/widgets'; definePauseAll();`
|
|
2517
|
-
- CDN: https://unpkg.com/motionary@
|
|
2540
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2518
2541
|
- Attributes: `label`, `scope`, `resume-label`
|
|
2519
2542
|
- Events: `usa:pause-all`
|
|
2520
2543
|
- Methods: `toggle()`
|
|
@@ -2528,7 +2551,7 @@ A canvas constellation that drifts away from the pointer. Runs only while visibl
|
|
|
2528
2551
|
9.6: a live performance overlay for motion work — FPS with a sparkline, active Motionary animations, frame-loop callbacks, long tasks and the shared clock — flagging jank.
|
|
2529
2552
|
|
|
2530
2553
|
- Import: `import { definePerfMonitor } from 'motionary/components/widgets'; definePerfMonitor();`
|
|
2531
|
-
- CDN: https://unpkg.com/motionary@
|
|
2554
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2532
2555
|
- Attributes: `corner`, `warn`
|
|
2533
2556
|
- Events: `usa:jank`
|
|
2534
2557
|
|
|
@@ -2541,7 +2564,7 @@ A canvas constellation that drifts away from the pointer. Runs only while visibl
|
|
|
2541
2564
|
10.7: a 2D rigid-body sandbox on Motionary’s own physics engine — circles, boxes and polygons, friction, restitution, constraints, sleeping — loaded from a versioned motionary-scene@1 JSON (or a preset: balls, pyramid, pendulum, dominoes). Drag bodies, tap to spawn, arrow keys nudge. Requires motionary/runtime/physics + motionary/runtime/format-scene — npm i motionary, then use(physics, formatScene) before it mounts.
|
|
2542
2565
|
|
|
2543
2566
|
- Import: `import { definePhysicsPlayground } from 'motionary/components/widgets'; definePhysicsPlayground();`
|
|
2544
|
-
- CDN: https://unpkg.com/motionary@
|
|
2567
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2545
2568
|
- Attributes: `preset`, `src`, `gravity`, `spawn`, `label`
|
|
2546
2569
|
- Events: `usa:collision`, `usa:load`, `usa:error`, `usa:runtime-missing`
|
|
2547
2570
|
- Methods: `reset()`, `play()`, `pause()`, `toScene()`
|
|
@@ -2560,12 +2583,12 @@ definePhysicsPlayground(); // registers <usa-physics-playground> — after the p
|
|
|
2560
2583
|
```
|
|
2561
2584
|
|
|
2562
2585
|
```html
|
|
2563
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
2564
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
2565
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
2586
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
2587
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/physics.iife.js"></script>
|
|
2588
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/format-scene.iife.js"></script>
|
|
2566
2589
|
<!-- then the component bundles -->
|
|
2567
|
-
<script src="https://unpkg.com/motionary@
|
|
2568
|
-
<script src="https://unpkg.com/motionary@
|
|
2590
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
2591
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
2569
2592
|
```
|
|
2570
2593
|
|
|
2571
2594
|
```html
|
|
@@ -2577,7 +2600,8 @@ definePhysicsPlayground(); // registers <usa-physics-playground> — after the p
|
|
|
2577
2600
|
Pinch with two fingers or Ctrl + wheel / trackpad pinch, pan while zoomed, double-tap to toggle; scale and position spring back inside the bounds.
|
|
2578
2601
|
|
|
2579
2602
|
- Import: `import { definePinchZoom } from 'motionary/components/gesture'; definePinchZoom();`
|
|
2580
|
-
- CDN: https://unpkg.com/motionary@
|
|
2603
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2604
|
+
- Attributes: `min`, `max`, `preset`, `double-tap`
|
|
2581
2605
|
- Events: `usa:zoom`
|
|
2582
2606
|
- Methods: `zoomTo()`
|
|
2583
2607
|
|
|
@@ -2592,7 +2616,7 @@ Pinch with two fingers or Ctrl + wheel / trackpad pinch, pan while zoomed, doubl
|
|
|
2592
2616
|
5.9: <usa-player> plays a JSON animation — timeline presets, your own keyframes and any registered effect on a shared clock; play / pause / seek / rate / loop, scroll-scrubbing (trigger="scroll"). Export one from the Playground (<usa-player> JSON tab).
|
|
2593
2617
|
|
|
2594
2618
|
- Import: `import { definePlayer } from 'motionary/components/effects'; definePlayer();`
|
|
2595
|
-
- CDN: https://unpkg.com/motionary@
|
|
2619
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2596
2620
|
- Attributes: `src`, `trigger`, `loop`, `rate`, `controls`
|
|
2597
2621
|
- Events: `usa:finish`, `usa:ready`
|
|
2598
2622
|
- Methods: `load()`, `play()`, `pause()`, `seek()`
|
|
@@ -2609,7 +2633,7 @@ Pinch with two fingers or Ctrl + wheel / trackpad pinch, pan while zoomed, doubl
|
|
|
2609
2633
|
10.1: a plugin’s name, version and author with a Motionary compatibility badge (semver `engine` range), a signature badge (SHA-256 integrity checked with Web Crypto), an animated download counter and expandable details. Requires motionary/runtime — npm i motionary, then use() before the card mounts.
|
|
2610
2634
|
|
|
2611
2635
|
- Import: `import { definePluginCard } from 'motionary/components/widgets'; definePluginCard();`
|
|
2612
|
-
- CDN: https://unpkg.com/motionary@
|
|
2636
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2613
2637
|
- Attributes: `name`, `title`, `version`, `author`, `engine`, `downloads`, `integrity`, `src`
|
|
2614
2638
|
- Events: `usa:toggle`, `usa:verified`, `usa:runtime-missing`
|
|
2615
2639
|
- Methods: `toggle()`, `verify()`, `compat()`
|
|
@@ -2626,10 +2650,10 @@ definePluginCard(); // registers <usa-plugin-card> — after the prerequisites
|
|
|
2626
2650
|
```
|
|
2627
2651
|
|
|
2628
2652
|
```html
|
|
2629
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
2653
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
2630
2654
|
<!-- then the component bundles -->
|
|
2631
|
-
<script src="https://unpkg.com/motionary@
|
|
2632
|
-
<script src="https://unpkg.com/motionary@
|
|
2655
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
2656
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
2633
2657
|
```
|
|
2634
2658
|
|
|
2635
2659
|
```html
|
|
@@ -2643,7 +2667,7 @@ definePluginCard(); // registers <usa-plugin-card> — after the prerequisites
|
|
|
2643
2667
|
9.0: the plugin marketplace as a component — search the catalogue of effect packs, see each plugin’s effects and install it with one click (imports and registers the pack).
|
|
2644
2668
|
|
|
2645
2669
|
- Import: `import { definePluginStore } from 'motionary/components/widgets'; definePluginStore();`
|
|
2646
|
-
- CDN: https://unpkg.com/motionary@
|
|
2670
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2647
2671
|
- Attributes: `query`, `label`
|
|
2648
2672
|
- Events: `usa:install`, `usa:install-error`
|
|
2649
2673
|
- Methods: `search()`, `install()`
|
|
@@ -2661,7 +2685,8 @@ definePluginCard(); // registers <usa-plugin-card> — after the prerequisites
|
|
|
2661
2685
|
Click-to-open panel that springs from its trigger; Esc / outside click closes, focus returns.
|
|
2662
2686
|
|
|
2663
2687
|
- Import: `import { definePopover } from 'motionary/components/ui'; definePopover();`
|
|
2664
|
-
- CDN: https://unpkg.com/motionary@
|
|
2688
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2689
|
+
- Attributes: `placement`
|
|
2665
2690
|
- Methods: `toggle()`
|
|
2666
2691
|
|
|
2667
2692
|
```html
|
|
@@ -2676,7 +2701,7 @@ Click-to-open panel that springs from its trigger; Esc / outside click closes, f
|
|
|
2676
2701
|
Chainable GPU passes over an image (4.8): vignette, grain, chromatic aberration, scanlines, CRT, bloom, pixelate, duotone and glitch, with one intensity. Without WebGL the image gets an approximate CSS filter.
|
|
2677
2702
|
|
|
2678
2703
|
- Import: `import { definePostFx } from 'motionary/components/webgl'; definePostFx();`
|
|
2679
|
-
- CDN: https://unpkg.com/motionary@
|
|
2704
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2680
2705
|
|
|
2681
2706
|
```html
|
|
2682
2707
|
<usa-post-fx effects="vignette grain" intensity="0.6">
|
|
@@ -2689,7 +2714,7 @@ Chainable GPU passes over an image (4.8): vignette, grain, chromatic aberration,
|
|
|
2689
2714
|
7.4: an avatar with a live status dot (online, away, busy, offline) — coming online sends a ripple, speaking adds a pulsing ring and story an animated gradient ring. Initials when there is no photo.
|
|
2690
2715
|
|
|
2691
2716
|
- Import: `import { definePresence } from 'motionary/components/widgets'; definePresence();`
|
|
2692
|
-
- CDN: https://unpkg.com/motionary@
|
|
2717
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2693
2718
|
- Attributes: `status`, `speaking`, `name`, `src`
|
|
2694
2719
|
|
|
2695
2720
|
```html
|
|
@@ -2703,7 +2728,7 @@ Chainable GPU passes over an image (4.8): vignette, grain, chromatic aberration,
|
|
|
2703
2728
|
Tactile press: dips while pressed and springs back, or bounces once with bounce. Mouse, touch, pen and keyboard.
|
|
2704
2729
|
|
|
2705
2730
|
- Import: `import { definePress } from 'motionary/components/interaction'; definePress();`
|
|
2706
|
-
- CDN: https://unpkg.com/motionary@
|
|
2731
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2707
2732
|
- Attributes: `disabled`, `scale`, `bounce`
|
|
2708
2733
|
|
|
2709
2734
|
```html
|
|
@@ -2715,7 +2740,8 @@ Tactile press: dips while pressed and springs back, or bounces once with bounce.
|
|
|
2715
2740
|
7.5: a lottery wheel — Spin whirls it and it eases out on the result (random or spin(index)), the pointer ticks and the wheel glows; usa:result reports the prize.
|
|
2716
2741
|
|
|
2717
2742
|
- Import: `import { definePrizeWheel } from 'motionary/components/widgets'; definePrizeWheel();`
|
|
2718
|
-
- CDN: https://unpkg.com/motionary@
|
|
2743
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2744
|
+
- Attributes: `segments`, `label`, `turns`, `duration`
|
|
2719
2745
|
- Events: `usa:result`
|
|
2720
2746
|
- Methods: `spin()`
|
|
2721
2747
|
|
|
@@ -2728,7 +2754,7 @@ Tactile press: dips while pressed and springs back, or bounces once with bounce.
|
|
|
2728
2754
|
7.3: product photos with a thumbnail strip — the stage cross-slides in the direction of travel, the selection ring glides between thumbnails, hover zooms under the pointer, swipe and ←/→ work.
|
|
2729
2755
|
|
|
2730
2756
|
- Import: `import { defineProductGallery } from 'motionary/components/widgets'; defineProductGallery();`
|
|
2731
|
-
- CDN: https://unpkg.com/motionary@
|
|
2757
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2732
2758
|
- Attributes: `index`, `nozoom`, `zoom`
|
|
2733
2759
|
- Events: `usa:change`
|
|
2734
2760
|
- Methods: `go()`, `next()`, `prev()`
|
|
@@ -2746,7 +2772,7 @@ Tactile press: dips while pressed and springs back, or bounces once with bounce.
|
|
|
2746
2772
|
Determinate bars glide between values; without a value it shows the Fluent indeterminate animation. Paused / error states.
|
|
2747
2773
|
|
|
2748
2774
|
- Import: `import { defineProgress } from 'motionary/components/feedback'; defineProgress();`
|
|
2749
|
-
- CDN: https://unpkg.com/motionary@
|
|
2775
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2750
2776
|
- Attributes: `value`, `max`, `indeterminate`, `label`
|
|
2751
2777
|
- Events: `usa:complete`
|
|
2752
2778
|
|
|
@@ -2760,7 +2786,7 @@ Determinate bars glide between values; without a value it shows the Fluent indet
|
|
|
2760
2786
|
6.4: the arc eases to every new value with a little overshoot while the label counts up; ring, bar or semicircle gauge, gradient strokes, indeterminate spinner without a value. role="progressbar", usa:complete at 100%.
|
|
2761
2787
|
|
|
2762
2788
|
- Import: `import { defineProgressRing } from 'motionary/components/widgets'; defineProgressRing();`
|
|
2763
|
-
- CDN: https://unpkg.com/motionary@
|
|
2789
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2764
2790
|
- Attributes: `variant`, `value`, `max`, `gradient`, `no-label`, `duration`
|
|
2765
2791
|
- Events: `usa:complete`
|
|
2766
2792
|
|
|
@@ -2776,7 +2802,7 @@ Determinate bars glide between values; without a value it shows the Fluent indet
|
|
|
2776
2802
|
8.9 low-code: a property editor for a live component — typed fields (number / range, select, color, switch, text) bound to its attributes, so the component re-renders as you edit.
|
|
2777
2803
|
|
|
2778
2804
|
- Import: `import { definePropPanel } from 'motionary/components/widgets'; definePropPanel();`
|
|
2779
|
-
- CDN: https://unpkg.com/motionary@
|
|
2805
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2780
2806
|
- Attributes: `for`, `props`, `label`
|
|
2781
2807
|
- Events: `usa:prop`
|
|
2782
2808
|
- Methods: `reset()`
|
|
@@ -2791,7 +2817,8 @@ Determinate bars glide between values; without a value it shows the Fluent indet
|
|
|
2791
2817
|
6.8: pull the cord down and let go — past the threshold the lamp switches, and the cord swings back on a damped spring. Click, Space or Enter tug it too; role="switch".
|
|
2792
2818
|
|
|
2793
2819
|
- Import: `import { definePullCord } from 'motionary/components/widgets'; definePullCord();`
|
|
2794
|
-
- CDN: https://unpkg.com/motionary@
|
|
2820
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2821
|
+
- Attributes: `label`, `threshold`
|
|
2795
2822
|
- Events: `usa:change`
|
|
2796
2823
|
- Methods: `toggle()`
|
|
2797
2824
|
|
|
@@ -2804,7 +2831,8 @@ Determinate bars glide between values; without a value it shows the Fluent indet
|
|
|
2804
2831
|
Pull down at the top of a list: the spinner stretches in with rubber-band resistance; release past the threshold to refresh.
|
|
2805
2832
|
|
|
2806
2833
|
- Import: `import { definePullRefresh } from 'motionary/components/ui'; definePullRefresh();`
|
|
2807
|
-
- CDN: https://unpkg.com/motionary@
|
|
2834
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2835
|
+
- Attributes: `threshold`, `disabled`, `label`
|
|
2808
2836
|
- Methods: `refresh()`
|
|
2809
2837
|
|
|
2810
2838
|
```html
|
|
@@ -2819,7 +2847,7 @@ Pull down at the top of a list: the spinner stretches in with rubber-band resist
|
|
|
2819
2847
|
8.4: a sci-fi radar scope — a conic beam sweeps round and each target lights up and fades as the beam passes over it.
|
|
2820
2848
|
|
|
2821
2849
|
- Import: `import { defineRadar } from 'motionary/components/widgets'; defineRadar();`
|
|
2822
|
-
- CDN: https://unpkg.com/motionary@
|
|
2850
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2823
2851
|
- Attributes: `targets`, `rings`, `speed`, `label`
|
|
2824
2852
|
- Events: `usa:ping`
|
|
2825
2853
|
- Methods: `setTargets()`
|
|
@@ -2833,7 +2861,8 @@ Pull down at the top of a list: the spinner stretches in with rubber-band resist
|
|
|
2833
2861
|
7.4: a reaction bar — clicking a pill toggles your reaction: the emoji pops, the count rolls and copies float up; + springs open a picker. Each pill is a toggle button with a count label.
|
|
2834
2862
|
|
|
2835
2863
|
- Import: `import { defineReactions } from 'motionary/components/widgets'; defineReactions();`
|
|
2836
|
-
- CDN: https://unpkg.com/motionary@
|
|
2864
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2865
|
+
- Attributes: `emojis`, `counts`, `picker`
|
|
2837
2866
|
- Events: `usa:react`
|
|
2838
2867
|
- Methods: `toggle()`
|
|
2839
2868
|
|
|
@@ -2846,7 +2875,7 @@ Pull down at the top of a list: the spinner stretches in with rubber-band resist
|
|
|
2846
2875
|
8.1: a Lunar New Year red envelope — tap and the flap swings open, the card slides out with the amount counting up and gold coins pop out.
|
|
2847
2876
|
|
|
2848
2877
|
- Import: `import { defineRedEnvelope } from 'motionary/components/widgets'; defineRedEnvelope();`
|
|
2849
|
-
- CDN: https://unpkg.com/motionary@
|
|
2878
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2850
2879
|
- Attributes: `amount`, `currency`, `message`, `from`, `opened`
|
|
2851
2880
|
- Events: `usa:open`
|
|
2852
2881
|
- Methods: `open()`, `close()`
|
|
@@ -2860,7 +2889,7 @@ Pull down at the top of a list: the spinner stretches in with rubber-band resist
|
|
|
2860
2889
|
8.2: buttons in four eras with matching press motion — 8-bit pixel (stepped press), CRT phosphor (flicker), Y2K chrome pill (bounce) and Windows 95 bevel (sink).
|
|
2861
2890
|
|
|
2862
2891
|
- Import: `import { defineRetroButton } from 'motionary/components/widgets'; defineRetroButton();`
|
|
2863
|
-
- CDN: https://unpkg.com/motionary@
|
|
2892
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2864
2893
|
- Attributes: `variant`, `disabled`, `type`
|
|
2865
2894
|
|
|
2866
2895
|
```html
|
|
@@ -2873,7 +2902,7 @@ Pull down at the top of a list: the spinner stretches in with rubber-band resist
|
|
|
2873
2902
|
Fade, slide, zoom, blur or flip content in as it enters the viewport. 12 effects, replay on re-entry with repeat.
|
|
2874
2903
|
|
|
2875
2904
|
- Import: `import { defineReveal } from 'motionary/components/reveal'; defineReveal();`
|
|
2876
|
-
- CDN: https://unpkg.com/motionary@
|
|
2905
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2877
2906
|
- Attributes: `effect`, `distance`, `repeat`, `threshold`, `root-margin`, `duration`, `delay`, `easing`
|
|
2878
2907
|
- Events: `usa:enter`, `usa:leave`, `usa:complete`
|
|
2879
2908
|
- Methods: `reveal()`, `reset()`
|
|
@@ -2889,7 +2918,7 @@ Fade, slide, zoom, blur or flip content in as it enters the viewport. 12 effects
|
|
|
2889
2918
|
Ink ripple from the pointer — or from the centre for Space/Enter — on any button, list item or card.
|
|
2890
2919
|
|
|
2891
2920
|
- Import: `import { defineRipple } from 'motionary/components/interaction'; defineRipple();`
|
|
2892
|
-
- CDN: https://unpkg.com/motionary@
|
|
2921
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2893
2922
|
- Attributes: `disabled`, `centered`, `color`, `opacity`, `duration`
|
|
2894
2923
|
- Methods: `ripple()`
|
|
2895
2924
|
|
|
@@ -2902,7 +2931,7 @@ Ink ripple from the pointer — or from the centre for Space/Enter — on any bu
|
|
|
2902
2931
|
10.6: plays Rive (.riv) files — artboards, animations and state machines with inputs — through the official Rive runtime @rive-app/canvas, an optional peer dependency that is lazy-loaded on first use (Motionary does not reimplement the proprietary .riv format). Requires @rive-app/canvas — npm i @rive-app/canvas, or load its CDN script first; missing → a clear message in place.
|
|
2903
2932
|
|
|
2904
2933
|
- Import: `import { defineRive } from 'motionary/components/widgets'; defineRive();`
|
|
2905
|
-
- CDN: https://unpkg.com/motionary@
|
|
2934
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2906
2935
|
- Attributes: `src`, `artboard`, `animation`, `state-machine`, `autoplay`, `fit`, `label`, `runtime-src`
|
|
2907
2936
|
- Events: `usa:load`, `usa:error`, `usa:runtime-missing`
|
|
2908
2937
|
- Methods: `play()`, `pause()`, `input()`
|
|
@@ -2921,8 +2950,8 @@ defineRive(); // registers <usa-rive> — after the prerequisites
|
|
|
2921
2950
|
```html
|
|
2922
2951
|
<script src="https://unpkg.com/@rive-app/canvas@2.44.1/rive.js"></script>
|
|
2923
2952
|
<!-- then the component bundles -->
|
|
2924
|
-
<script src="https://unpkg.com/motionary@
|
|
2925
|
-
<script src="https://unpkg.com/motionary@
|
|
2953
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
2954
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
2926
2955
|
```
|
|
2927
2956
|
|
|
2928
2957
|
```html
|
|
@@ -2934,7 +2963,7 @@ defineRive(); // registers <usa-rive> — after the prerequisites
|
|
|
2934
2963
|
10.3: View Transitions 2.0 — link clicks swap the container’s content with the target page (fetched) or an inline <template data-route>, animated with the View Transitions API (Web Animations fallback); data-shared elements morph between routes; cross-document enables native MPA transitions.
|
|
2935
2964
|
|
|
2936
2965
|
- Import: `import { defineRouteTransition } from 'motionary/components/widgets'; defineRouteTransition();`
|
|
2937
|
-
- CDN: https://unpkg.com/motionary@
|
|
2966
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2938
2967
|
- Attributes: `effect`, `engine`, `cross-document`, `current`, `links`, `history`, `selector`
|
|
2939
2968
|
- Events: `usa:navigate`, `usa:navigated`
|
|
2940
2969
|
- Methods: `navigate()`
|
|
@@ -2951,7 +2980,7 @@ defineRive(); // registers <usa-rive> — after the prerequisites
|
|
|
2951
2980
|
9.1: a scroll-scrubbed cinematic shot — while the scene crosses the screen its image follows a camera move (dolly, pan, tilt, zoom, orbit) and captions fade in on cue.
|
|
2952
2981
|
|
|
2953
2982
|
- Import: `import { defineScene } from 'motionary/components/widgets'; defineScene();`
|
|
2954
|
-
- CDN: https://unpkg.com/motionary@
|
|
2983
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
2955
2984
|
- Attributes: `camera`, `strength`, `autoplay`
|
|
2956
2985
|
- Events: `usa:shot`
|
|
2957
2986
|
- Methods: `setProgress()`
|
|
@@ -2968,7 +2997,7 @@ defineRive(); // registers <usa-rive> — after the prerequisites
|
|
|
2968
2997
|
Decodes text out of random glyphs, left to right. Trigger on view, hover/focus or manually.
|
|
2969
2998
|
|
|
2970
2999
|
- Import: `import { defineScramble } from 'motionary/components/text'; defineScramble();`
|
|
2971
|
-
- CDN: https://unpkg.com/motionary@
|
|
3000
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2972
3001
|
- Attributes: `text`, `trigger`, `duration`, `chars`
|
|
2973
3002
|
- Events: `usa:complete`
|
|
2974
3003
|
- Methods: `play()`
|
|
@@ -2982,7 +3011,7 @@ Decodes text out of random glyphs, left to right. Trigger on view, hover/focus o
|
|
|
2982
3011
|
Words light up one by one as you read down the page, or a highlighter marker sweeps behind the text.
|
|
2983
3012
|
|
|
2984
3013
|
- Import: `import { defineScrollHighlight } from 'motionary/components/text'; defineScrollHighlight();`
|
|
2985
|
-
- CDN: https://unpkg.com/motionary@
|
|
3014
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
2986
3015
|
- Attributes: `mode`, `text`, `color`, `dim`
|
|
2987
3016
|
- Methods: `mount()`
|
|
2988
3017
|
|
|
@@ -2996,7 +3025,7 @@ Words light up one by one as you read down the page, or a highlighter marker swe
|
|
|
2996
3025
|
Reading progress of the page or of one article. Compositor-only scaleX, role="progressbar".
|
|
2997
3026
|
|
|
2998
3027
|
- Import: `import { defineScrollProgress } from 'motionary/components/reveal'; defineScrollProgress();`
|
|
2999
|
-
- CDN: https://unpkg.com/motionary@
|
|
3028
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3000
3029
|
- Attributes: `target`, `label`
|
|
3001
3030
|
- Events: `usa:progress`
|
|
3002
3031
|
- Methods: `update()`
|
|
@@ -3012,7 +3041,7 @@ Reading progress of the page or of one article. Compositor-only scaleX, role="pr
|
|
|
3012
3041
|
10.4: a circular scroll-progress indicator for the page or any scroll container (for=".article"), optional percentage label and back-to-top button. Scroll-driven 3.0: native animation-timeline: scroll() first (no script per frame), a small JS loop where scroll timelines are missing.
|
|
3013
3042
|
|
|
3014
3043
|
- Import: `import { defineScrollRing } from 'motionary/components/widgets'; defineScrollRing();`
|
|
3015
|
-
- CDN: https://unpkg.com/motionary@
|
|
3044
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3016
3045
|
- Attributes: `for`, `engine`, `label`, `back-to-top`, `size`, `thickness`, `horizontal`, `preview`
|
|
3017
3046
|
- Events: `usa:progress`, `usa:top`
|
|
3018
3047
|
|
|
@@ -3025,7 +3054,7 @@ Reading progress of the page or of one article. Compositor-only scaleX, role="pr
|
|
|
3025
3054
|
10.2: a scroll-linked scene — children with data-scrub="opacity: 0 -> 1; x: -80 -> 0" are tweened as you scroll, scrubbed directly or smoothed (scrub="120"), with optional pin, markers and stagger. Requires motionary/runtime/scroll — npm i motionary, then use(scroll) before the scene mounts.
|
|
3026
3055
|
|
|
3027
3056
|
- Import: `import { defineScrollScene } from 'motionary/components/widgets'; defineScrollScene();`
|
|
3028
|
-
- CDN: https://unpkg.com/motionary@
|
|
3057
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3029
3058
|
- Attributes: `start`, `end`, `scrub`, `pin`, `markers`, `stagger`, `toggle-class`, `preview`
|
|
3030
3059
|
- Events: `usa:enter`, `usa:leave`, `usa:progress`, `usa:runtime-missing`
|
|
3031
3060
|
- Methods: `refresh()`, `timeline()`
|
|
@@ -3043,11 +3072,11 @@ defineScrollScene(); // registers <usa-scroll-scene> — after the prerequisites
|
|
|
3043
3072
|
```
|
|
3044
3073
|
|
|
3045
3074
|
```html
|
|
3046
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
3047
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
3075
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
3076
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/scroll.iife.js"></script>
|
|
3048
3077
|
<!-- then the component bundles -->
|
|
3049
|
-
<script src="https://unpkg.com/motionary@
|
|
3050
|
-
<script src="https://unpkg.com/motionary@
|
|
3078
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
3079
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
3051
3080
|
```
|
|
3052
3081
|
|
|
3053
3082
|
```html
|
|
@@ -3062,7 +3091,7 @@ defineScrollScene(); // registers <usa-scroll-scene> — after the prerequisites
|
|
|
3062
3091
|
A pinned graphic while [data-step] blocks scroll past; the active step drives the graphic via attributes, a CSS variable and events.
|
|
3063
3092
|
|
|
3064
3093
|
- Import: `import { defineScrolly } from 'motionary/components/reveal'; defineScrolly();`
|
|
3065
|
-
- CDN: https://unpkg.com/motionary@
|
|
3094
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3066
3095
|
- Attributes: `offset`
|
|
3067
3096
|
- Events: `usa:step`
|
|
3068
3097
|
|
|
@@ -3079,7 +3108,7 @@ A pinned graphic while [data-step] blocks scroll past; the active step drives th
|
|
|
3079
3108
|
6.7: an iOS-style thumb slides under the chosen segment with a spring and stretches while it travels. A real radio group: arrow keys, Home / End. iOS, pill or outline.
|
|
3080
3109
|
|
|
3081
3110
|
- Import: `import { defineSegmented } from 'motionary/components/widgets'; defineSegmented();`
|
|
3082
|
-
- CDN: https://unpkg.com/motionary@
|
|
3111
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3083
3112
|
- Attributes: `variant`, `label`, `value`
|
|
3084
3113
|
- Events: `usa:change`
|
|
3085
3114
|
|
|
@@ -3096,7 +3125,7 @@ A pinned graphic while [data-step] blocks scroll past; the active step drives th
|
|
|
3096
3125
|
A GPU shader behind your content: gradient, plasma, waves or aurora presets — or your own fragment shader in a <script type="x-shader/x-fragment">. Falls back to the CSS background.
|
|
3097
3126
|
|
|
3098
3127
|
- Import: `import { defineShader } from 'motionary/components/webgl'; defineShader();`
|
|
3099
|
-
- CDN: https://unpkg.com/motionary@
|
|
3128
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3100
3129
|
|
|
3101
3130
|
```html
|
|
3102
3131
|
<usa-shader preset="aurora" speed="1">
|
|
@@ -3115,7 +3144,7 @@ A GPU shader behind your content: gradient, plasma, waves or aurora presets —
|
|
|
3115
3144
|
10.5 (WebGPU effects 2.0): an animated shader background (aurora, plasma, waves, nebula or your own GLSL) run through a post-processing chain — bloom, vignette, grain, chromatic aberration, pixelate, scanlines — in any order; CSS gradient fallback.
|
|
3116
3145
|
|
|
3117
3146
|
- Import: `import { defineShaderBackdrop } from 'motionary/components/widgets'; defineShaderBackdrop();`
|
|
3118
|
-
- CDN: https://unpkg.com/motionary@
|
|
3147
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3119
3148
|
- Attributes: `preset`, `post`, `colors`, `speed`, `intensity`, `label`
|
|
3120
3149
|
- Events: `usa:backend`
|
|
3121
3150
|
|
|
@@ -3130,7 +3159,7 @@ A GPU shader behind your content: gradient, plasma, waves or aurora presets —
|
|
|
3130
3159
|
6.3: a side sheet from the right, left, top or bottom with a blurred backdrop; the bottom sheet can be dragged down to dismiss and springs back otherwise. Native <dialog> underneath.
|
|
3131
3160
|
|
|
3132
3161
|
- Import: `import { defineSheet } from 'motionary/components/widgets'; defineSheet();`
|
|
3133
|
-
- CDN: https://unpkg.com/motionary@
|
|
3162
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3134
3163
|
|
|
3135
3164
|
```html
|
|
3136
3165
|
<button data-usa-open="cart">Cart</button>
|
|
@@ -3146,7 +3175,7 @@ A GPU shader behind your content: gradient, plasma, waves or aurora presets —
|
|
|
3146
3175
|
A light sweep across gradient-filled text. CSS only; colours and speed via attributes or custom properties.
|
|
3147
3176
|
|
|
3148
3177
|
- Import: `import { defineShimmerText } from 'motionary/components/text'; defineShimmerText();`
|
|
3149
|
-
- CDN: https://unpkg.com/motionary@
|
|
3178
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3150
3179
|
- Attributes: `duration`, `color`, `shine`, `angle`
|
|
3151
3180
|
|
|
3152
3181
|
```html
|
|
@@ -3158,7 +3187,7 @@ A light sweep across gradient-filled text. CSS only; colours and speed via attri
|
|
|
3158
3187
|
7.9: keyboard-shortcut hints as keycaps (⌘ on Apple, Ctrl elsewhere); press the combination anywhere and the caps press down one after another and usa:trigger fires.
|
|
3159
3188
|
|
|
3160
3189
|
- Import: `import { defineShortcut } from 'motionary/components/widgets'; defineShortcut();`
|
|
3161
|
-
- CDN: https://unpkg.com/motionary@
|
|
3190
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3162
3191
|
- Attributes: `keys`, `label`, `listen`, `for`
|
|
3163
3192
|
- Events: `usa:trigger`
|
|
3164
3193
|
- Methods: `press()`
|
|
@@ -3173,7 +3202,7 @@ A light sweep across gradient-filled text. CSS only; colours and speed via attri
|
|
|
3173
3202
|
Shimmering placeholders while loading; remove loading and the real content fades in. aria-busy included.
|
|
3174
3203
|
|
|
3175
3204
|
- Import: `import { defineSkeleton } from 'motionary/components/feedback'; defineSkeleton();`
|
|
3176
|
-
- CDN: https://unpkg.com/motionary@
|
|
3205
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3177
3206
|
- Attributes: `loading`, `lines`, `width`, `height`, `circle`, `avatar`, `radius`
|
|
3178
3207
|
- Events: `usa:loaded`
|
|
3179
3208
|
|
|
@@ -3188,7 +3217,7 @@ Shimmering placeholders while loading; remove loading and the real content fades
|
|
|
3188
3217
|
6.4: the skeleton is generated from the real content — one bar per rendered text line, blocks for images and marked elements — with one synchronized shimmer (wave, pulse or glow). Remove loading and the bars dissolve top-to-bottom while the content fades in from a blur.
|
|
3189
3218
|
|
|
3190
3219
|
- Import: `import { defineSkeletonReveal } from 'motionary/components/widgets'; defineSkeletonReveal();`
|
|
3191
|
-
- CDN: https://unpkg.com/motionary@
|
|
3220
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3192
3221
|
- Attributes: `loading`, `variant`
|
|
3193
3222
|
- Events: `usa:reveal`
|
|
3194
3223
|
- Methods: `reveal()`
|
|
@@ -3207,7 +3236,7 @@ Shimmering placeholders while loading; remove loading and the real content fades
|
|
|
3207
3236
|
8.5: a hand-drawn chart — wobbly pencil axes with hatched bars or a sketchy line, sketched in stroke by stroke when it scrolls into view.
|
|
3208
3237
|
|
|
3209
3238
|
- Import: `import { defineSketchChart } from 'motionary/components/widgets'; defineSketchChart();`
|
|
3210
|
-
- CDN: https://unpkg.com/motionary@
|
|
3239
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3211
3240
|
- Attributes: `values`, `labels`, `type`, `color`, `label`
|
|
3212
3241
|
- Events: `usa:drawn`
|
|
3213
3242
|
- Methods: `setValues()`, `redraw()`
|
|
@@ -3221,7 +3250,7 @@ Shimmering placeholders while loading; remove loading and the real content fades
|
|
|
3221
3250
|
A form-associated range slider: spring-following thumb, value bubble, full keyboard support (arrows, Page Up/Down, Home/End).
|
|
3222
3251
|
|
|
3223
3252
|
- Import: `import { defineSlider } from 'motionary/components/ui'; defineSlider();`
|
|
3224
|
-
- CDN: https://unpkg.com/motionary@
|
|
3253
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3225
3254
|
- Attributes: `min`, `max`, `disabled`, `label`, `step`, `value`
|
|
3226
3255
|
- Events: `usa:input`, `usa:change`
|
|
3227
3256
|
|
|
@@ -3234,7 +3263,7 @@ A form-associated range slider: spring-following thumb, value bubble, full keybo
|
|
|
3234
3263
|
10.4: smooth, inertial wheel scrolling for the page or a container (wrapper), anchor links glide (with offset for sticky headers); keyboard / scrollbar / touch stay native and it switches off under reduced motion. Requires motionary/runtime/smooth — npm i motionary, then use(smooth) before it mounts.
|
|
3235
3264
|
|
|
3236
3265
|
- Import: `import { defineSmoothScroll } from 'motionary/components/widgets'; defineSmoothScroll();`
|
|
3237
|
-
- CDN: https://unpkg.com/motionary@
|
|
3266
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3238
3267
|
- Attributes: `lerp`, `duration`, `ease`, `wheel-multiplier`, `horizontal`, `touch`, `anchors`, `offset`, `wrapper`, `preview`
|
|
3239
3268
|
- Events: `usa:scroll`, `usa:ready`, `usa:runtime-missing`
|
|
3240
3269
|
- Methods: `glideTo()`, `stop()`, `resume()`
|
|
@@ -3252,11 +3281,11 @@ defineSmoothScroll(); // registers <usa-smooth-scroll> — after the prerequisit
|
|
|
3252
3281
|
```
|
|
3253
3282
|
|
|
3254
3283
|
```html
|
|
3255
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
3256
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
3284
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
3285
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/smooth.iife.js"></script>
|
|
3257
3286
|
<!-- then the component bundles -->
|
|
3258
|
-
<script src="https://unpkg.com/motionary@
|
|
3259
|
-
<script src="https://unpkg.com/motionary@
|
|
3287
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
3288
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
3260
3289
|
```
|
|
3261
3290
|
|
|
3262
3291
|
```html
|
|
@@ -3268,7 +3297,7 @@ defineSmoothScroll(); // registers <usa-smooth-scroll> — after the prerequisit
|
|
|
3268
3297
|
10.8: drag or swipe with real inertia — a throw keeps gliding, then springs to the nearest slide (a quick flick always moves one); rubber-band edges, arrows, dots, ←/→ / Home / End, optional autoplay that pauses on hover, focus and off screen. Slides keep their own width so the next one peeks in. Requires motionary/runtime/drag-snap — npm i motionary, then use(dragSnap) before it mounts. Its own entry point: motionary/components/snap-carousel (not in the widgets / lite bundles).
|
|
3269
3298
|
|
|
3270
3299
|
- Import: `import { defineSnapCarousel } from 'motionary/components/snap-carousel'; defineSnapCarousel();`
|
|
3271
|
-
- CDN: https://unpkg.com/motionary@
|
|
3300
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3272
3301
|
- Attributes: `align`, `gap`, `autoplay`, `no-controls`, `no-dots`, `label`, `index`
|
|
3273
3302
|
- Events: `usa:change`, `usa:runtime-missing`
|
|
3274
3303
|
- Methods: `next()`, `prev()`, `goTo()`
|
|
@@ -3286,11 +3315,11 @@ defineSnapCarousel(); // registers <usa-snap-carousel> — after the prerequisit
|
|
|
3286
3315
|
```
|
|
3287
3316
|
|
|
3288
3317
|
```html
|
|
3289
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
3290
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
3318
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
3319
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/drag-snap.iife.js"></script>
|
|
3291
3320
|
<!-- then the component bundles -->
|
|
3292
|
-
<script src="https://unpkg.com/motionary@
|
|
3293
|
-
<script src="https://unpkg.com/motionary@
|
|
3321
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
3322
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
3294
3323
|
```
|
|
3295
3324
|
|
|
3296
3325
|
```html
|
|
@@ -3306,7 +3335,7 @@ defineSnapCarousel(); // registers <usa-snap-carousel> — after the prerequisit
|
|
|
3306
3335
|
7.2: a tiny inline trend — draws itself on first view, a soft area fades in, the last point pulses and new data morphs the line point by point. line | area | bars; hover shows the value.
|
|
3307
3336
|
|
|
3308
3337
|
- Import: `import { defineSparkline } from 'motionary/components/widgets'; defineSparkline();`
|
|
3309
|
-
- CDN: https://unpkg.com/motionary@
|
|
3338
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3310
3339
|
- Attributes: `variant`, `color`, `values`, `label`
|
|
3311
3340
|
|
|
3312
3341
|
```html
|
|
@@ -3318,7 +3347,7 @@ defineSnapCarousel(); // registers <usa-snap-carousel> — after the prerequisit
|
|
|
3318
3347
|
8.8: a spatial-computing window — frosted glass floating in depth, a soft gaze highlight that follows the pointer, layered content and an ornament bar; it eases towards you on hover and sinks on press.
|
|
3319
3348
|
|
|
3320
3349
|
- Import: `import { defineSpatialCard } from 'motionary/components/widgets'; defineSpatialCard();`
|
|
3321
|
-
- CDN: https://unpkg.com/motionary@
|
|
3350
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3322
3351
|
- Events: `usa:focus-depth`
|
|
3323
3352
|
|
|
3324
3353
|
```html
|
|
@@ -3334,7 +3363,7 @@ defineSnapCarousel(); // registers <usa-snap-carousel> — after the prerequisit
|
|
|
3334
3363
|
Six indeterminate indicators: the WinUI progress ring, the Windows 10 orbiting dots, ring, typing dots, pulse and bars.
|
|
3335
3364
|
|
|
3336
3365
|
- Import: `import { defineSpinner } from 'motionary/components/feedback'; defineSpinner();`
|
|
3337
|
-
- CDN: https://unpkg.com/motionary@
|
|
3366
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3338
3367
|
- Attributes: `kind`, `size`, `label`
|
|
3339
3368
|
|
|
3340
3369
|
```html
|
|
@@ -3347,7 +3376,8 @@ Six indeterminate indicators: the WinUI progress ring, the Windows 10 orbiting d
|
|
|
3347
3376
|
An app launch screen that leaves (fade, scale, slide-up, circle) once the page has loaded — never sooner than min ms.
|
|
3348
3377
|
|
|
3349
3378
|
- Import: `import { defineSplash } from 'motionary/components/page'; defineSplash();`
|
|
3350
|
-
- CDN: https://unpkg.com/motionary@
|
|
3379
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3380
|
+
- Attributes: `label`, `manual`, `min`, `exit`
|
|
3351
3381
|
- Events: `usa:done`
|
|
3352
3382
|
- Methods: `done()`
|
|
3353
3383
|
|
|
@@ -3362,7 +3392,7 @@ An app launch screen that leaves (fade, scale, slide-up, circle) once the page h
|
|
|
3362
3392
|
Splits a headline into letters or words and cascades them in: rise, fade, blur, flip or pop. Words never break.
|
|
3363
3393
|
|
|
3364
3394
|
- Import: `import { defineSplitText } from 'motionary/components/text'; defineSplitText();`
|
|
3365
|
-
- CDN: https://unpkg.com/motionary@
|
|
3395
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3366
3396
|
- Attributes: `by`, `text`, `from`, `stagger`, `duration`, `delay`, `trigger`, `repeat`
|
|
3367
3397
|
- Events: `usa:complete`
|
|
3368
3398
|
- Methods: `play()`, `reset()`
|
|
@@ -3376,7 +3406,7 @@ Splits a headline into letters or words and cascades them in: rise, fade, blur,
|
|
|
3376
3406
|
The Windows Fluent “Reveal” effect: a light follows the pointer, lighting the borders of nearby items and the hovered one.
|
|
3377
3407
|
|
|
3378
3408
|
- Import: `import { defineSpotlight } from 'motionary/components/interaction'; defineSpotlight();`
|
|
3379
|
-
- CDN: https://unpkg.com/motionary@
|
|
3409
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3380
3410
|
- Attributes: `size`, `color`, `border`
|
|
3381
3411
|
|
|
3382
3412
|
```html
|
|
@@ -3392,7 +3422,7 @@ The Windows Fluent “Reveal” effect: a light follows the pointer, lighting th
|
|
|
3392
3422
|
bounce-in, pop and drop entrances with true spring timing (CSS linear() easing), plus jelly and rubber-band attention effects on view, hover or click.
|
|
3393
3423
|
|
|
3394
3424
|
- Import: `import { defineSpring } from 'motionary/components/physics'; defineSpring();`
|
|
3395
|
-
- CDN: https://unpkg.com/motionary@
|
|
3425
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3396
3426
|
- Attributes: `effect`, `trigger`, `repeat`, `stiffness`, `damping`, `mass`, `preset`, `duration`, `delay`
|
|
3397
3427
|
- Events: `usa:complete`
|
|
3398
3428
|
- Methods: `play()`, `reset()`
|
|
@@ -3411,7 +3441,7 @@ bounce-in, pop and drop entrances with true spring timing (CSS linear() easing),
|
|
|
3411
3441
|
Reveals direct children one after another — lists, grids, feature rows.
|
|
3412
3442
|
|
|
3413
3443
|
- Import: `import { defineStagger } from 'motionary/components/reveal'; defineStagger();`
|
|
3414
|
-
- CDN: https://unpkg.com/motionary@
|
|
3444
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3415
3445
|
- Attributes: `effect`, `repeat`, `threshold`, `distance`, `interval`, `delay`, `duration`, `easing`
|
|
3416
3446
|
- Events: `usa:enter`, `usa:complete`
|
|
3417
3447
|
- Methods: `reveal()`, `reset()`
|
|
@@ -3429,7 +3459,7 @@ Reveals direct children one after another — lists, grids, feature rows.
|
|
|
3429
3459
|
6.4: the fill follows the pointer (half stars with step="0.5"), a click pops the chosen star with a sparkle burst while the others ripple; stars or hearts; a keyboard slider (arrows, Home / End); readonly mode.
|
|
3430
3460
|
|
|
3431
3461
|
- Import: `import { defineStarRating } from 'motionary/components/widgets'; defineStarRating();`
|
|
3432
|
-
- CDN: https://unpkg.com/motionary@
|
|
3462
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3433
3463
|
- Attributes: `max`, `icon`, `readonly`, `step`, `label`, `value`
|
|
3434
3464
|
- Events: `usa:change`
|
|
3435
3465
|
|
|
@@ -3443,7 +3473,7 @@ Reveals direct children one after another — lists, grids, feature rows.
|
|
|
3443
3473
|
6.7: the rail fills toward the current step, finished steps pop a drawn check mark and the current step pulses. Horizontal or vertical; next() / prev() / value.
|
|
3444
3474
|
|
|
3445
3475
|
- Import: `import { defineStepper } from 'motionary/components/widgets'; defineStepper();`
|
|
3446
|
-
- CDN: https://unpkg.com/motionary@
|
|
3476
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3447
3477
|
- Attributes: `orientation`, `label`, `clickable`
|
|
3448
3478
|
- Events: `usa:change`
|
|
3449
3479
|
- Methods: `next()`, `prev()`
|
|
@@ -3462,7 +3492,7 @@ Reveals direct children one after another — lists, grids, feature rows.
|
|
|
3462
3492
|
Cards stick while you scroll and the covered ones shrink and dim as the next slides over them.
|
|
3463
3493
|
|
|
3464
3494
|
- Import: `import { defineStickyStack } from 'motionary/components/cards'; defineStickyStack();`
|
|
3465
|
-
- CDN: https://unpkg.com/motionary@
|
|
3495
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3466
3496
|
- Attributes: `top`, `gap`, `scale`
|
|
3467
3497
|
- Methods: `update()`
|
|
3468
3498
|
|
|
@@ -3479,7 +3509,7 @@ Cards stick while you scroll and the covered ones shrink and dim as the next sli
|
|
|
3479
3509
|
8.5: a wall of sticky notes — each child becomes a pinned paper note with a slight tilt, the notes drop onto the wall one by one, and a tap lifts a note to the front.
|
|
3480
3510
|
|
|
3481
3511
|
- Import: `import { defineStickyWall } from 'motionary/components/widgets'; defineStickyWall();`
|
|
3482
|
-
- CDN: https://unpkg.com/motionary@
|
|
3512
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3483
3513
|
- Attributes: `seed`, `label`
|
|
3484
3514
|
- Events: `usa:pick`
|
|
3485
3515
|
- Methods: `pick()`
|
|
@@ -3497,7 +3527,7 @@ Cards stick while you scroll and the covered ones shrink and dim as the next sli
|
|
|
3497
3527
|
6.2: segmented progress bars, auto-advance, tap left / right to step, press and hold to pause, plus a pause button. Under reduced motion it waits for the user instead of advancing.
|
|
3498
3528
|
|
|
3499
3529
|
- Import: `import { defineStories } from 'motionary/components/widgets'; defineStories();`
|
|
3500
|
-
- CDN: https://unpkg.com/motionary@
|
|
3530
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3501
3531
|
- Attributes: `duration`, `loop`
|
|
3502
3532
|
- Events: `usa:end`, `usa:change`
|
|
3503
3533
|
- Methods: `next()`, `prev()`, `goTo()`, `pause()`, `play()`
|
|
@@ -3514,7 +3544,7 @@ Cards stick while you scroll and the covered ones shrink and dim as the next sli
|
|
|
3514
3544
|
5.4: <usa-story template="compare"> wipes from before to after as you scroll; the handle is draggable and a keyboard slider (←/→, Home/End). Full-page templates (pin, gallery, zoom) live on the Scroll stories page.
|
|
3515
3545
|
|
|
3516
3546
|
- Import: `import { defineStory } from 'motionary/components/effects'; defineStory();`
|
|
3517
|
-
- CDN: https://unpkg.com/motionary@
|
|
3547
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3518
3548
|
- Attributes: `template`, `zoom`, `label`
|
|
3519
3549
|
- Events: `usa:step`
|
|
3520
3550
|
|
|
@@ -3532,7 +3562,7 @@ Cards stick while you scroll and the covered ones shrink and dim as the next sli
|
|
|
3532
3562
|
7.8: follow-up prompt chips that slide in one after another; picking one pulses it and (with dismiss) the others fade away. Real buttons, arrow-key navigation.
|
|
3533
3563
|
|
|
3534
3564
|
- Import: `import { defineSuggestionChips } from 'motionary/components/widgets'; defineSuggestionChips();`
|
|
3535
|
-
- CDN: https://unpkg.com/motionary@
|
|
3565
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3536
3566
|
- Attributes: `items`, `label`, `dismiss`
|
|
3537
3567
|
- Events: `usa:pick`
|
|
3538
3568
|
- Methods: `setItems()`
|
|
@@ -3546,7 +3576,8 @@ Cards stick while you scroll and the covered ones shrink and dim as the next sli
|
|
|
3546
3576
|
6.8: drag the top card — it rotates with the pointer, LIKE / NOPE stamps fade in and past the threshold (or on a fling) it flies off; otherwise it springs back. like(), nope(), undo(), ← / →.
|
|
3547
3577
|
|
|
3548
3578
|
- Import: `import { defineSwipeDeck } from 'motionary/components/widgets'; defineSwipeDeck();`
|
|
3549
|
-
- CDN: https://unpkg.com/motionary@
|
|
3579
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3580
|
+
- Attributes: `label`, `threshold`
|
|
3550
3581
|
- Events: `usa:swipe`, `usa:empty`
|
|
3551
3582
|
- Methods: `like()`, `nope()`, `undo()`
|
|
3552
3583
|
|
|
@@ -3563,7 +3594,7 @@ Cards stick while you scroll and the covered ones shrink and dim as the next sli
|
|
|
3563
3594
|
Swipe-to-dismiss and swipe actions: content follows the finger, flies out on a fast swipe or past the distance, otherwise springs home with your release velocity. Delete / arrow keys work too.
|
|
3564
3595
|
|
|
3565
3596
|
- Import: `import { defineSwipeable } from 'motionary/components/gesture'; defineSwipeable();`
|
|
3566
|
-
- CDN: https://unpkg.com/motionary@
|
|
3597
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3567
3598
|
- Attributes: `axis`, `disabled`, `distance`, `dismiss`, `preset`
|
|
3568
3599
|
- Events: `usa:swipe`, `usa:dismiss`
|
|
3569
3600
|
- Methods: `swipe()`, `reset()`
|
|
@@ -3579,7 +3610,7 @@ Swipe-to-dismiss and swipe actions: content follows the finger, flies out on a f
|
|
|
3579
3610
|
6.7: four switches — iOS (the thumb stretches while pressed), day / night (sun becomes moon, stars appear), bounce (squash at the end) and liquid (a gooey fill pours in). role="switch", forms, keyboard.
|
|
3580
3611
|
|
|
3581
3612
|
- Import: `import { defineSwitch } from 'motionary/components/widgets'; defineSwitch();`
|
|
3582
|
-
- CDN: https://unpkg.com/motionary@
|
|
3613
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3583
3614
|
- Attributes: `variant`, `label`, `name`, `value`, `disabled`
|
|
3584
3615
|
- Events: `usa:change`
|
|
3585
3616
|
- Methods: `toggle()`
|
|
@@ -3593,7 +3624,7 @@ Swipe-to-dismiss and swipe actions: content follows the finger, flies out on a f
|
|
|
3593
3624
|
6.2: the indicator stretches from the old tab to the new one (leading edge first) and the panel slides in from the side of travel. Pill, underline, glow or gooey; full tablist keyboard support.
|
|
3594
3625
|
|
|
3595
3626
|
- Import: `import { defineTabBar } from 'motionary/components/widgets'; defineTabBar();`
|
|
3596
|
-
- CDN: https://unpkg.com/motionary@
|
|
3627
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3597
3628
|
- Attributes: `indicator`, `label`, `selected`
|
|
3598
3629
|
- Events: `usa:change`
|
|
3599
3630
|
- Methods: `select()`
|
|
@@ -3614,7 +3645,7 @@ Swipe-to-dismiss and swipe actions: content follows the finger, flies out on a f
|
|
|
3614
3645
|
Accessible tabs whose indicator slides between tabs with a spring; panels slide in from the direction you moved. Line or pill indicator.
|
|
3615
3646
|
|
|
3616
3647
|
- Import: `import { defineTabs } from 'motionary/components/ui'; defineTabs();`
|
|
3617
|
-
- CDN: https://unpkg.com/motionary@
|
|
3648
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3618
3649
|
- Attributes: `indicator`
|
|
3619
3650
|
- Events: `usa:change`
|
|
3620
3651
|
- Methods: `select()`
|
|
@@ -3632,7 +3663,7 @@ Accessible tabs whose indicator slides between tabs with a spring; panels slide
|
|
|
3632
3663
|
8.2: a retro terminal window that types its commands after the prompt with a blinking block cursor and prints the output line by line when it scrolls into view — dark, green-phosphor or amber.
|
|
3633
3664
|
|
|
3634
3665
|
- Import: `import { defineTerminal } from 'motionary/components/widgets'; defineTerminal();`
|
|
3635
|
-
- CDN: https://unpkg.com/motionary@
|
|
3666
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3636
3667
|
- Attributes: `title`, `prompt`, `theme`, `speed`, `loop`
|
|
3637
3668
|
- Events: `usa:done`
|
|
3638
3669
|
- Methods: `replay()`, `skip()`
|
|
@@ -3649,7 +3680,7 @@ Accessible tabs whose indicator slides between tabs with a spring; panels slide
|
|
|
3649
3680
|
Cycles words in place — the box keeps the width of the longest word, so nothing around it reflows.
|
|
3650
3681
|
|
|
3651
3682
|
- Import: `import { defineTextRotate } from 'motionary/components/text'; defineTextRotate();`
|
|
3652
|
-
- CDN: https://unpkg.com/motionary@
|
|
3683
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3653
3684
|
- Attributes: `words`, `interval`, `paused`, `effect`
|
|
3654
3685
|
- Events: `usa:change`
|
|
3655
3686
|
- Methods: `next()`
|
|
@@ -3663,7 +3694,7 @@ Build <usa-text-rotate words="fast|tiny|typed"></usa-text-rotate> apps
|
|
|
3663
3694
|
10.3: splits its text into characters, words or lines and animates them in with a stagger (rise, fade, blur, flip, wave) when it scrolls into view — accessible, grapheme-aware. Requires motionary/runtime/text — npm i motionary, then use(text) before it mounts.
|
|
3664
3695
|
|
|
3665
3696
|
- Import: `import { defineTextSplitter } from 'motionary/components/widgets'; defineTextSplitter();`
|
|
3666
|
-
- CDN: https://unpkg.com/motionary@
|
|
3697
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3667
3698
|
- Attributes: `split`, `effect`, `stagger`, `duration`, `loop`, `trigger`
|
|
3668
3699
|
- Events: `usa:split`, `usa:done`, `usa:runtime-missing`
|
|
3669
3700
|
- Methods: `replay()`, `pieces()`
|
|
@@ -3681,11 +3712,11 @@ defineTextSplitter(); // registers <usa-text-splitter> — after the prerequisit
|
|
|
3681
3712
|
```
|
|
3682
3713
|
|
|
3683
3714
|
```html
|
|
3684
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
3685
|
-
<script src="https://cdn.jsdelivr.net/npm/motionary@
|
|
3715
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime.iife.js"></script>
|
|
3716
|
+
<script src="https://cdn.jsdelivr.net/npm/motionary@12/dist/runtime/text.iife.js"></script>
|
|
3686
3717
|
<!-- then the component bundles -->
|
|
3687
|
-
<script src="https://unpkg.com/motionary@
|
|
3688
|
-
<script src="https://unpkg.com/motionary@
|
|
3718
|
+
<script src="https://unpkg.com/motionary@12/dist/components.umd.js"></script>
|
|
3719
|
+
<script src="https://unpkg.com/motionary@12/dist/widgets.umd.js"></script>
|
|
3689
3720
|
```
|
|
3690
3721
|
|
|
3691
3722
|
```html
|
|
@@ -3697,7 +3728,7 @@ defineTextSplitter(); // registers <usa-text-splitter> — after the prerequisit
|
|
|
3697
3728
|
8.6: a themeable card that follows the nearest theme — light, dark, neon (pulsing glow edge), glass (frosted backdrop with a sheen) or soft neumorphic relief — and cross-fades when the theme changes.
|
|
3698
3729
|
|
|
3699
3730
|
- Import: `import { defineThemeSurface } from 'motionary/components/widgets'; defineThemeSurface();`
|
|
3700
|
-
- CDN: https://unpkg.com/motionary@
|
|
3731
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3701
3732
|
- Attributes: `theme`
|
|
3702
3733
|
- Events: `usa:theme`
|
|
3703
3734
|
|
|
@@ -3712,7 +3743,7 @@ defineTextSplitter(); // registers <usa-text-splitter> — after the prerequisit
|
|
|
3712
3743
|
8.6: a segmented switcher for the 8.6 theme system — light, dark, neon, glass and soft (neumorphism); a pill slides under the active option and the page change is revealed with a circular wipe from the click point.
|
|
3713
3744
|
|
|
3714
3745
|
- Import: `import { defineThemeSwitcher } from 'motionary/components/widgets'; defineThemeSwitcher();`
|
|
3715
|
-
- CDN: https://unpkg.com/motionary@
|
|
3746
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3716
3747
|
- Attributes: `themes`, `target`, `label`, `persist`, `value`
|
|
3717
3748
|
- Events: `usa:change`
|
|
3718
3749
|
|
|
@@ -3725,7 +3756,7 @@ defineTextSplitter(); // registers <usa-text-splitter> — after the prerequisit
|
|
|
3725
3756
|
Tilts toward the pointer in 3D with an optional glare; exposes --usa-tilt-x/y for parallax layers inside.
|
|
3726
3757
|
|
|
3727
3758
|
- Import: `import { defineTilt } from 'motionary/components/interaction'; defineTilt();`
|
|
3728
|
-
- CDN: https://unpkg.com/motionary@
|
|
3759
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3729
3760
|
- Attributes: `max`, `scale`, `perspective`, `glare`, `reverse`, `disabled`
|
|
3730
3761
|
|
|
3731
3762
|
```html
|
|
@@ -3739,7 +3770,7 @@ Tilts toward the pointer in 3D with an optional glare; exposes --usa-tilt-x/y fo
|
|
|
3739
3770
|
Every data-tl child becomes a step in document order. data-at ('-=200', '<', 'label+=100') overlaps or aligns steps; scrub ties progress to scroll; trigger view / click / manual.
|
|
3740
3771
|
|
|
3741
3772
|
- Import: `import { defineTimeline } from 'motionary/components/timeline'; defineTimeline();`
|
|
3742
|
-
- CDN: https://unpkg.com/motionary@
|
|
3773
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3743
3774
|
- Attributes: `scrub`, `trigger`, `overlap`, `duration`, `stagger`, `smooth`, `repeat`
|
|
3744
3775
|
- Events: `usa:complete`
|
|
3745
3776
|
- Methods: `play()`, `reverse()`, `seek()`
|
|
@@ -3757,7 +3788,7 @@ Every data-tl child becomes a step in document order. data-at ('-=200', '<', 'la
|
|
|
3757
3788
|
6.6: springs out of its trigger with an arrow, flips to stay inside the viewport and shifts along the edge; hover + keyboard focus (Esc closes) or click popovers with rich content.
|
|
3758
3789
|
|
|
3759
3790
|
- Import: `import { defineTip } from 'motionary/components/widgets'; defineTip();`
|
|
3760
|
-
- CDN: https://unpkg.com/motionary@
|
|
3791
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3761
3792
|
- Attributes: `text`, `placement`, `trigger`, `delay`
|
|
3762
3793
|
- Events: `usa:open`, `usa:close`
|
|
3763
3794
|
- Methods: `show()`, `hide()`
|
|
@@ -3777,7 +3808,7 @@ Every data-tl child becomes a step in document order. data-at ('-=200', '<', 'la
|
|
|
3777
3808
|
6.3: toasts pile up into a collapsed stack (newest in front, older ones peeking behind), fan out on hover or focus, auto-dismiss (paused while hovered) and swipe away. Six positions, a polite live region, stackToast() helper and data-usa-toast triggers.
|
|
3778
3809
|
|
|
3779
3810
|
- Import: `import { defineToastStack } from 'motionary/components/widgets'; defineToastStack();`
|
|
3780
|
-
- CDN: https://unpkg.com/motionary@
|
|
3811
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3781
3812
|
- Attributes: `position`, `duration`, `max`
|
|
3782
3813
|
- Events: `usa:show`, `usa:dismiss`
|
|
3783
3814
|
- Methods: `show()`, `dismiss()`, `clear()`
|
|
@@ -3793,7 +3824,7 @@ Every data-tl child becomes a step in document order. data-at ('-=200', '<', 'la
|
|
|
3793
3824
|
toast("Saved") slides a notification in; it pauses on hover, stacks with FLIP and announces politely (errors assertively).
|
|
3794
3825
|
|
|
3795
3826
|
- Import: `import { defineToaster } from 'motionary/components/feedback'; defineToaster();`
|
|
3796
|
-
- CDN: https://unpkg.com/motionary@
|
|
3827
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3797
3828
|
- Attributes: `label`, `position`, `max`
|
|
3798
3829
|
- Events: `usa:toast`
|
|
3799
3830
|
- Methods: `show()`, `clear()`
|
|
@@ -3811,7 +3842,7 @@ toast("Saved") slides a notification in; it pauses on hover, stacks with FLIP an
|
|
|
3811
3842
|
10.6 (motion design tokens 2.0): edit duration and cubic-bézier easing tokens with a live preview per token, then export W3C Design Tokens (DTCG 2025.10 or the earlier draft) or import a DTCG file — aliases resolved, problems listed; apply writes the tokens to :root custom properties as you edit.
|
|
3812
3843
|
|
|
3813
3844
|
- Import: `import { defineTokenEditor } from 'motionary/components/widgets'; defineTokenEditor();`
|
|
3814
|
-
- CDN: https://unpkg.com/motionary@
|
|
3845
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3815
3846
|
- Attributes: `apply`, `format`, `groups`, `label`
|
|
3816
3847
|
- Events: `usa:export`, `usa:import`, `usa:change`
|
|
3817
3848
|
- Methods: `exportJSON()`, `importJSON()`
|
|
@@ -3825,7 +3856,7 @@ toast("Saved") slides a notification in; it pauses on hover, stacks with FLIP an
|
|
|
3825
3856
|
Types text, or cycles through phrases with delete and pause. Full text stays available to screen readers.
|
|
3826
3857
|
|
|
3827
3858
|
- Import: `import { defineTypewriter } from 'motionary/components/text'; defineTypewriter();`
|
|
3828
|
-
- CDN: https://unpkg.com/motionary@
|
|
3859
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3829
3860
|
- Attributes: `text`, `words`, `start`, `speed`, `delete-speed`, `pause`, `loop`, `delay`
|
|
3830
3861
|
- Events: `usa:complete`
|
|
3831
3862
|
- Methods: `start()`, `stop()`, `restart()`
|
|
@@ -3839,7 +3870,7 @@ Types text, or cycles through phrases with delete and pause. Full text stays ava
|
|
|
3839
3870
|
7.7: a file row whose bar eases to value with a running shine; at 100 it turns into a check that draws itself, on error it shakes and offers Retry.
|
|
3840
3871
|
|
|
3841
3872
|
- Import: `import { defineUploadProgress } from 'motionary/components/widgets'; defineUploadProgress();`
|
|
3842
|
-
- CDN: https://unpkg.com/motionary@
|
|
3873
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3843
3874
|
- Attributes: `name`, `size`, `value`, `status`, `message`
|
|
3844
3875
|
- Events: `usa:retry`, `usa:done`, `usa:error`
|
|
3845
3876
|
|
|
@@ -3853,7 +3884,7 @@ Types text, or cycles through phrases with delete and pause. Full text stays ava
|
|
|
3853
3884
|
9.4: a video thumbnail card — hover or focus plays a muted preview with a progress line, a play badge and a duration chip; without a video the poster drifts (Ken Burns).
|
|
3854
3885
|
|
|
3855
3886
|
- Import: `import { defineVideoCard } from 'motionary/components/widgets'; defineVideoCard();`
|
|
3856
|
-
- CDN: https://unpkg.com/motionary@
|
|
3887
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3857
3888
|
- Attributes: `label`, `duration`
|
|
3858
3889
|
- Events: `usa:open`
|
|
3859
3890
|
|
|
@@ -3870,7 +3901,7 @@ Types text, or cycles through phrases with delete and pause. Full text stays ava
|
|
|
3870
3901
|
One view at a time with direction-aware slide, fade, scale or drill transitions — tabs, wizards, app pages.
|
|
3871
3902
|
|
|
3872
3903
|
- Import: `import { defineViewSwitch } from 'motionary/components/transitions'; defineViewSwitch();`
|
|
3873
|
-
- CDN: https://unpkg.com/motionary@
|
|
3904
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3874
3905
|
- Attributes: `active`, `duration`, `effect`
|
|
3875
3906
|
- Events: `usa:change`
|
|
3876
3907
|
- Methods: `show()`
|
|
@@ -3887,7 +3918,7 @@ One view at a time with direction-aware slide, fade, scale or drill transitions
|
|
|
3887
3918
|
7.8: a push-to-talk mic button — while listening a halo breathes and level bars wave; feed it live input levels with level (0–1) and they follow your voice.
|
|
3888
3919
|
|
|
3889
3920
|
- Import: `import { defineVoiceButton } from 'motionary/components/widgets'; defineVoiceButton();`
|
|
3890
|
-
- CDN: https://unpkg.com/motionary@
|
|
3921
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3891
3922
|
- Attributes: `label`, `bars`, `listening`
|
|
3892
3923
|
- Methods: `toggle()`
|
|
3893
3924
|
|
|
@@ -3901,7 +3932,7 @@ One view at a time with direction-aware slide, fade, scale or drill transitions
|
|
|
3901
3932
|
7.1: a rotary knob — drag up / down, scroll or use the keys; the value arc fills, a ring of LED ticks lights up and the pointer springs to the angle. role="slider".
|
|
3902
3933
|
|
|
3903
3934
|
- Import: `import { defineVolumeKnob } from 'motionary/components/widgets'; defineVolumeKnob();`
|
|
3904
|
-
- CDN: https://unpkg.com/motionary@
|
|
3935
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3905
3936
|
- Attributes: `min`, `max`, `label`
|
|
3906
3937
|
- Events: `usa:change`, `usa:input`
|
|
3907
3938
|
|
|
@@ -3914,7 +3945,8 @@ One view at a time with direction-aware slide, fade, scale or drill transitions
|
|
|
3914
3945
|
Interactive water ripples on a canvas over the content: move or tap to disturb the surface.
|
|
3915
3946
|
|
|
3916
3947
|
- Import: `import { defineWaterRipple } from 'motionary/components/background'; defineWaterRipple();`
|
|
3917
|
-
- CDN: https://unpkg.com/motionary@
|
|
3948
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3949
|
+
- Attributes: `damping`, `color`, `strength`
|
|
3918
3950
|
- Methods: `mount()`
|
|
3919
3951
|
|
|
3920
3952
|
```html
|
|
@@ -3928,7 +3960,7 @@ Interactive water ripples on a canvas over the content: move or tap to disturb t
|
|
|
3928
3960
|
Letters bob in a travelling wave — playful headlines and loading labels.
|
|
3929
3961
|
|
|
3930
3962
|
- Import: `import { defineWaveText } from 'motionary/components/text'; defineWaveText();`
|
|
3931
|
-
- CDN: https://unpkg.com/motionary@
|
|
3963
|
+
- CDN: https://unpkg.com/motionary@12/dist/components.umd.js
|
|
3932
3964
|
- Attributes: `text`, `amplitude`, `speed`, `stagger`
|
|
3933
3965
|
- Methods: `mount()`, `splitChars()`
|
|
3934
3966
|
|
|
@@ -3941,7 +3973,7 @@ Letters bob in a travelling wave — playful headlines and loading labels.
|
|
|
3941
3973
|
6.8: sun rays turn, clouds drift, rain and snow fall, a flash-safe bolt glows, fog bands and stars — pick a condition and the scene cross-fades; the temperature counts up.
|
|
3942
3974
|
|
|
3943
3975
|
- Import: `import { defineWeatherCard } from 'motionary/components/widgets'; defineWeatherCard();`
|
|
3944
|
-
- CDN: https://unpkg.com/motionary@
|
|
3976
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3945
3977
|
- Attributes: `condition`, `temp`, `place`, `unit`, `label`
|
|
3946
3978
|
|
|
3947
3979
|
```html
|
|
@@ -3953,7 +3985,7 @@ Letters bob in a travelling wave — playful headlines and loading labels.
|
|
|
3953
3985
|
9.6: a canvas animation rendered in a Web Worker on an OffscreenCanvas — the main thread stays free for input — with a main-thread fallback; particles, orbits, starfield or your own draw program.
|
|
3954
3986
|
|
|
3955
3987
|
- Import: `import { defineWorkerCanvas } from 'motionary/components/widgets'; defineWorkerCanvas();`
|
|
3956
|
-
- CDN: https://unpkg.com/motionary@
|
|
3988
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3957
3989
|
- Attributes: `scene`, `label`
|
|
3958
3990
|
- Events: `usa:backend`
|
|
3959
3991
|
|
|
@@ -3966,7 +3998,7 @@ Letters bob in a travelling wave — playful headlines and loading labels.
|
|
|
3966
3998
|
7.5: an experience bar — add(n) fills it smoothly; overflowing fills to the end, the level badge pops and the bar restarts with the remainder (several levels if needed).
|
|
3967
3999
|
|
|
3968
4000
|
- Import: `import { defineXpBar } from 'motionary/components/widgets'; defineXpBar();`
|
|
3969
|
-
- CDN: https://unpkg.com/motionary@
|
|
4001
|
+
- CDN: https://unpkg.com/motionary@12/dist/widgets.umd.js
|
|
3970
4002
|
- Attributes: `level`, `xp`, `per`
|
|
3971
4003
|
- Events: `usa:levelup`, `usa:xp`
|
|
3972
4004
|
- Methods: `add()`
|