@bydiorama/motion 0.0.0-stage → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CREDITS.md +62 -0
- package/LICENSE +21 -0
- package/README.md +142 -2
- package/catalog.json +4697 -0
- package/dist/npm/brief/brief.d.ts +28 -0
- package/dist/npm/brief/brief.js +159 -0
- package/dist/npm/brief/types.d.ts +75 -0
- package/dist/npm/brief/types.js +2 -0
- package/dist/npm/browser/motion.js +1039 -0
- package/dist/npm/browser/page.js +4821 -0
- package/dist/npm/browser/wizard.js +1511 -0
- package/dist/npm/build/design.d.ts +54 -0
- package/dist/npm/build/design.js +91 -0
- package/dist/npm/build/index.d.ts +39 -0
- package/dist/npm/build/index.js +66 -0
- package/dist/npm/build/iso.d.ts +41 -0
- package/dist/npm/build/iso.js +71 -0
- package/dist/npm/catalog.d.ts +24 -0
- package/dist/npm/catalog.js +23 -0
- package/dist/npm/cli/browser.d.ts +26 -0
- package/dist/npm/cli/browser.js +66 -0
- package/dist/npm/cli/capture.d.ts +26 -0
- package/dist/npm/cli/capture.js +94 -0
- package/dist/npm/cli/files.d.ts +14 -0
- package/dist/npm/cli/files.js +87 -0
- package/dist/npm/cli/frames.d.ts +27 -0
- package/dist/npm/cli/frames.js +125 -0
- package/dist/npm/cli/guard.d.ts +23 -0
- package/dist/npm/cli/guard.js +158 -0
- package/dist/npm/cli/library.d.ts +2 -0
- package/dist/npm/cli/library.js +55 -0
- package/dist/npm/cli/main.d.ts +17 -0
- package/dist/npm/cli/main.js +964 -0
- package/dist/npm/cli/motion.d.ts +2 -0
- package/dist/npm/cli/motion.js +6 -0
- package/dist/npm/cli/record.d.ts +36 -0
- package/dist/npm/cli/record.js +142 -0
- package/dist/npm/cli/review.d.ts +45 -0
- package/dist/npm/cli/review.js +139 -0
- package/dist/npm/cli/schema.d.ts +852 -0
- package/dist/npm/cli/schema.js +120 -0
- package/dist/npm/cli/server.d.ts +17 -0
- package/dist/npm/cli/server.js +135 -0
- package/dist/npm/core/ease.d.ts +39 -0
- package/dist/npm/core/ease.js +176 -0
- package/dist/npm/core/frame.d.ts +52 -0
- package/dist/npm/core/frame.js +60 -0
- package/dist/npm/core/shapes.d.ts +8 -0
- package/dist/npm/core/shapes.js +88 -0
- package/dist/npm/core/stagger.d.ts +19 -0
- package/dist/npm/core/stagger.js +77 -0
- package/dist/npm/core/tap.d.ts +19 -0
- package/dist/npm/core/tap.js +42 -0
- package/dist/npm/core/track.d.ts +4 -0
- package/dist/npm/core/track.js +23 -0
- package/dist/npm/dom/mount.d.ts +127 -0
- package/dist/npm/dom/mount.js +950 -0
- package/dist/npm/dom/page.d.ts +37 -0
- package/dist/npm/dom/page.js +77 -0
- package/dist/npm/dom/soundtrack.d.ts +13 -0
- package/dist/npm/dom/soundtrack.js +37 -0
- package/dist/npm/dom/stage.css.d.ts +1 -0
- package/dist/npm/dom/stage.css.js +44 -0
- package/dist/npm/dom/tokens.d.ts +10 -0
- package/dist/npm/dom/tokens.js +38 -0
- package/dist/npm/dom/ui-themes.css.d.ts +8 -0
- package/dist/npm/dom/ui-themes.css.js +9 -0
- package/dist/npm/film/beats.d.ts +64 -0
- package/dist/npm/film/beats.js +282 -0
- package/dist/npm/film/pace.d.ts +94 -0
- package/dist/npm/film/pace.js +396 -0
- package/dist/npm/film/resolve.d.ts +16 -0
- package/dist/npm/film/resolve.js +997 -0
- package/dist/npm/film/tempo.d.ts +19 -0
- package/dist/npm/film/tempo.js +34 -0
- package/dist/npm/film/tune.d.ts +17 -0
- package/dist/npm/film/tune.js +68 -0
- package/dist/npm/film/types.d.ts +416 -0
- package/dist/npm/film/types.js +16 -0
- package/dist/npm/index.d.ts +18 -0
- package/dist/npm/index.js +11 -0
- package/dist/npm/primitives/blur.d.ts +14 -0
- package/dist/npm/primitives/blur.js +59 -0
- package/dist/npm/primitives/canvas.d.ts +5 -0
- package/dist/npm/primitives/canvas.js +13 -0
- package/dist/npm/primitives/el/box.d.ts +2 -0
- package/dist/npm/primitives/el/box.js +24 -0
- package/dist/npm/primitives/el/frames.d.ts +15 -0
- package/dist/npm/primitives/el/frames.js +71 -0
- package/dist/npm/primitives/el/html.d.ts +2 -0
- package/dist/npm/primitives/el/html.js +14 -0
- package/dist/npm/primitives/el/image.d.ts +2 -0
- package/dist/npm/primitives/el/image.js +43 -0
- package/dist/npm/primitives/el/slot.d.ts +2 -0
- package/dist/npm/primitives/el/slot.js +25 -0
- package/dist/npm/primitives/el/text.d.ts +2 -0
- package/dist/npm/primitives/el/text.js +13 -0
- package/dist/npm/primitives/el/video.d.ts +6 -0
- package/dist/npm/primitives/el/video.js +179 -0
- package/dist/npm/primitives/fx/counter-roll.d.ts +2 -0
- package/dist/npm/primitives/fx/counter-roll.js +32 -0
- package/dist/npm/primitives/fx/depth-drift.d.ts +2 -0
- package/dist/npm/primitives/fx/depth-drift.js +44 -0
- package/dist/npm/primitives/fx/grid-ripple.d.ts +2 -0
- package/dist/npm/primitives/fx/grid-ripple.js +59 -0
- package/dist/npm/primitives/fx/odometer.d.ts +2 -0
- package/dist/npm/primitives/fx/odometer.js +80 -0
- package/dist/npm/primitives/fx/pan-across.d.ts +17 -0
- package/dist/npm/primitives/fx/pan-across.js +76 -0
- package/dist/npm/primitives/fx/path-draw.d.ts +2 -0
- package/dist/npm/primitives/fx/path-draw.js +105 -0
- package/dist/npm/primitives/fx/pin-drop.d.ts +2 -0
- package/dist/npm/primitives/fx/pin-drop.js +92 -0
- package/dist/npm/primitives/fx/shape-morph.d.ts +2 -0
- package/dist/npm/primitives/fx/shape-morph.js +65 -0
- package/dist/npm/primitives/fx/slow-push.d.ts +13 -0
- package/dist/npm/primitives/fx/slow-push.js +56 -0
- package/dist/npm/primitives/fx/stagger-fill.d.ts +2 -0
- package/dist/npm/primitives/fx/stagger-fill.js +33 -0
- package/dist/npm/primitives/index.d.ts +4 -0
- package/dist/npm/primitives/index.js +78 -0
- package/dist/npm/primitives/rig/browser-window.d.ts +2 -0
- package/dist/npm/primitives/rig/browser-window.js +142 -0
- package/dist/npm/primitives/rig/camera.d.ts +36 -0
- package/dist/npm/primitives/rig/camera.js +81 -0
- package/dist/npm/primitives/rig/footage-plane.d.ts +27 -0
- package/dist/npm/primitives/rig/footage-plane.js +257 -0
- package/dist/npm/primitives/rig/layer-stack.d.ts +39 -0
- package/dist/npm/primitives/rig/layer-stack.js +276 -0
- package/dist/npm/primitives/rig/orbit-ring.d.ts +2 -0
- package/dist/npm/primitives/rig/orbit-ring.js +59 -0
- package/dist/npm/primitives/rig/tab-stack.d.ts +9 -0
- package/dist/npm/primitives/rig/tab-stack.js +143 -0
- package/dist/npm/primitives/scene/bar-chart.d.ts +2 -0
- package/dist/npm/primitives/scene/bar-chart.js +83 -0
- package/dist/npm/primitives/scene/bento-grid.d.ts +49 -0
- package/dist/npm/primitives/scene/bento-grid.js +293 -0
- package/dist/npm/primitives/scene/grid-wall.d.ts +18 -0
- package/dist/npm/primitives/scene/grid-wall.js +110 -0
- package/dist/npm/primitives/scene/line-chart.d.ts +2 -0
- package/dist/npm/primitives/scene/line-chart.js +121 -0
- package/dist/npm/primitives/scene/logo-reveal.d.ts +2 -0
- package/dist/npm/primitives/scene/logo-reveal.js +117 -0
- package/dist/npm/primitives/scene/marquee-wall.d.ts +2 -0
- package/dist/npm/primitives/scene/marquee-wall.js +82 -0
- package/dist/npm/primitives/scene/post-carousel.d.ts +16 -0
- package/dist/npm/primitives/scene/post-carousel.js +195 -0
- package/dist/npm/primitives/scene/strip-cycle.d.ts +49 -0
- package/dist/npm/primitives/scene/strip-cycle.js +237 -0
- package/dist/npm/primitives/split.d.ts +34 -0
- package/dist/npm/primitives/split.js +105 -0
- package/dist/npm/primitives/texture/beat-field.d.ts +13 -0
- package/dist/npm/primitives/texture/beat-field.js +113 -0
- package/dist/npm/primitives/texture/gradient-drift.d.ts +2 -0
- package/dist/npm/primitives/texture/gradient-drift.js +56 -0
- package/dist/npm/primitives/texture/grain.d.ts +2 -0
- package/dist/npm/primitives/texture/grain.js +54 -0
- package/dist/npm/primitives/texture/halftone-field.d.ts +2 -0
- package/dist/npm/primitives/texture/halftone-field.js +36 -0
- package/dist/npm/primitives/texture/signal-field.d.ts +4 -0
- package/dist/npm/primitives/texture/signal-field.js +107 -0
- package/dist/npm/primitives/texture/vignette.d.ts +2 -0
- package/dist/npm/primitives/texture/vignette.js +23 -0
- package/dist/npm/primitives/transition/band-sweep.d.ts +22 -0
- package/dist/npm/primitives/transition/band-sweep.js +111 -0
- package/dist/npm/primitives/transition/beat-cut.d.ts +2 -0
- package/dist/npm/primitives/transition/beat-cut.js +10 -0
- package/dist/npm/primitives/transition/blur-dissolve.d.ts +2 -0
- package/dist/npm/primitives/transition/blur-dissolve.js +28 -0
- package/dist/npm/primitives/transition/camera-travel.d.ts +2 -0
- package/dist/npm/primitives/transition/camera-travel.js +69 -0
- package/dist/npm/primitives/transition/cover-reveal.d.ts +2 -0
- package/dist/npm/primitives/transition/cover-reveal.js +52 -0
- package/dist/npm/primitives/transition/curtain.d.ts +2 -0
- package/dist/npm/primitives/transition/curtain.js +40 -0
- package/dist/npm/primitives/transition/dive-in.d.ts +2 -0
- package/dist/npm/primitives/transition/dive-in.js +52 -0
- package/dist/npm/primitives/transition/fly-past.d.ts +2 -0
- package/dist/npm/primitives/transition/fly-past.js +87 -0
- package/dist/npm/primitives/transition/iris.d.ts +2 -0
- package/dist/npm/primitives/transition/iris.js +38 -0
- package/dist/npm/primitives/transition/overlay.d.ts +4 -0
- package/dist/npm/primitives/transition/overlay.js +24 -0
- package/dist/npm/primitives/transition/push.d.ts +2 -0
- package/dist/npm/primitives/transition/push.js +35 -0
- package/dist/npm/primitives/transition/signal-wipe.d.ts +2 -0
- package/dist/npm/primitives/transition/signal-wipe.js +67 -0
- package/dist/npm/primitives/transition/slant-wipe.d.ts +2 -0
- package/dist/npm/primitives/transition/slant-wipe.js +30 -0
- package/dist/npm/primitives/transition/stack-over.d.ts +2 -0
- package/dist/npm/primitives/transition/stack-over.js +38 -0
- package/dist/npm/primitives/transition/step-wipe.d.ts +2 -0
- package/dist/npm/primitives/transition/step-wipe.js +29 -0
- package/dist/npm/primitives/transition/strip-wipe.d.ts +40 -0
- package/dist/npm/primitives/transition/strip-wipe.js +121 -0
- package/dist/npm/primitives/transition/whip-pan.d.ts +2 -0
- package/dist/npm/primitives/transition/whip-pan.js +45 -0
- package/dist/npm/primitives/type/block-reveal.d.ts +2 -0
- package/dist/npm/primitives/type/block-reveal.js +61 -0
- package/dist/npm/primitives/type/char-cascade.d.ts +2 -0
- package/dist/npm/primitives/type/char-cascade.js +45 -0
- package/dist/npm/primitives/type/echo.d.ts +2 -0
- package/dist/npm/primitives/type/echo.js +57 -0
- package/dist/npm/primitives/type/fill-text.d.ts +14 -0
- package/dist/npm/primitives/type/fill-text.js +82 -0
- package/dist/npm/primitives/type/mask-reveal.d.ts +2 -0
- package/dist/npm/primitives/type/mask-reveal.js +58 -0
- package/dist/npm/primitives/type/scramble.d.ts +2 -0
- package/dist/npm/primitives/type/scramble.js +34 -0
- package/dist/npm/primitives/type/scribble-highlight.d.ts +2 -0
- package/dist/npm/primitives/type/scribble-highlight.js +84 -0
- package/dist/npm/primitives/type/shimmer.d.ts +2 -0
- package/dist/npm/primitives/type/shimmer.js +35 -0
- package/dist/npm/primitives/type/tracking-in.d.ts +2 -0
- package/dist/npm/primitives/type/tracking-in.js +37 -0
- package/dist/npm/primitives/type/typed-title.d.ts +2 -0
- package/dist/npm/primitives/type/typed-title.js +33 -0
- package/dist/npm/primitives/type/word-build.d.ts +2 -0
- package/dist/npm/primitives/type/word-build.js +44 -0
- package/dist/npm/primitives/type/word-roller.d.ts +2 -0
- package/dist/npm/primitives/type/word-roller.js +80 -0
- package/dist/npm/primitives/types.d.ts +183 -0
- package/dist/npm/primitives/types.js +5 -0
- package/dist/npm/primitives/ui/cursor-click.d.ts +4 -0
- package/dist/npm/primitives/ui/cursor-click.js +68 -0
- package/dist/npm/primitives/ui/page-scroll.d.ts +17 -0
- package/dist/npm/primitives/ui/page-scroll.js +98 -0
- package/dist/npm/review/fft.d.ts +4 -0
- package/dist/npm/review/fft.js +71 -0
- package/dist/npm/review/measure.d.ts +170 -0
- package/dist/npm/review/measure.js +577 -0
- package/dist/npm/tokens.d.ts +50 -0
- package/dist/npm/tokens.js +49 -0
- package/dist/npm/version.d.ts +1 -0
- package/dist/npm/version.js +1 -0
- package/examples/builder.film.mjs +18 -0
- package/films/feature-announcement.film.json +70 -0
- package/library/narratives/app-demo.md +64 -0
- package/library/narratives/brand-identity.md +78 -0
- package/library/narratives/capability-through-type.md +53 -0
- package/library/narratives/data-story.md +59 -0
- package/library/narratives/explainer.md +64 -0
- package/library/narratives/feature-announcement.md +68 -0
- package/library/narratives/infinite-loop.md +28 -0
- package/library/narratives/platform-launch.md +81 -0
- package/library/narratives/social-teaser.md +45 -0
- package/library/narratives/title-sequence.md +55 -0
- package/library/narratives/website-launch.md +65 -0
- package/library/primitives/fx/card-arrangements.md +26 -0
- package/library/primitives/fx/counter-roll.md +27 -0
- package/library/primitives/fx/depth-drift.md +32 -0
- package/library/primitives/fx/grid-ripple.md +58 -0
- package/library/primitives/fx/letter-interleave.md +26 -0
- package/library/primitives/fx/marquee-highlight.md +27 -0
- package/library/primitives/fx/mosaic-fill.md +23 -0
- package/library/primitives/fx/odometer.md +44 -0
- package/library/primitives/fx/pan-across.md +63 -0
- package/library/primitives/fx/path-draw.md +54 -0
- package/library/primitives/fx/pin-drop.md +51 -0
- package/library/primitives/fx/radial-burst.md +33 -0
- package/library/primitives/fx/shape-morph.md +45 -0
- package/library/primitives/fx/slow-push.md +63 -0
- package/library/primitives/fx/stagger-fill.md +28 -0
- package/library/primitives/rig/browser-window.md +113 -0
- package/library/primitives/rig/flip-ticker.md +26 -0
- package/library/primitives/rig/footage-plane.md +90 -0
- package/library/primitives/rig/layer-stack.md +168 -0
- package/library/primitives/rig/orbit-ring.md +43 -0
- package/library/primitives/rig/rolodex.md +31 -0
- package/library/primitives/rig/tab-stack.md +116 -0
- package/library/primitives/rig/tumbling-object.md +27 -0
- package/library/primitives/scene/bar-chart.md +49 -0
- package/library/primitives/scene/bento-grid.md +74 -0
- package/library/primitives/scene/end-card.md +28 -0
- package/library/primitives/scene/grid-wall.md +61 -0
- package/library/primitives/scene/hero-object.md +33 -0
- package/library/primitives/scene/kinetic-headline.md +34 -0
- package/library/primitives/scene/line-chart.md +47 -0
- package/library/primitives/scene/logo-reveal.md +53 -0
- package/library/primitives/scene/marquee-wall.md +33 -0
- package/library/primitives/scene/mosaic.md +28 -0
- package/library/primitives/scene/post-carousel.md +68 -0
- package/library/primitives/scene/specimen-grid.md +28 -0
- package/library/primitives/scene/stat-with-evidence.md +34 -0
- package/library/primitives/scene/strip-cycle.md +122 -0
- package/library/primitives/scene/zoomed-ui.md +29 -0
- package/library/primitives/texture/ascii.md +22 -0
- package/library/primitives/texture/beat-field.md +85 -0
- package/library/primitives/texture/depth-fade.md +23 -0
- package/library/primitives/texture/dither.md +27 -0
- package/library/primitives/texture/gradient-drift.md +50 -0
- package/library/primitives/texture/grain.md +39 -0
- package/library/primitives/texture/halftone-field.md +26 -0
- package/library/primitives/texture/signal-field.md +61 -0
- package/library/primitives/texture/vignette.md +53 -0
- package/library/primitives/transition/band-sweep.md +63 -0
- package/library/primitives/transition/beat-cut.md +27 -0
- package/library/primitives/transition/blur-dissolve.md +36 -0
- package/library/primitives/transition/camera-travel.md +57 -0
- package/library/primitives/transition/collapse-to-anchor.md +27 -0
- package/library/primitives/transition/cover-reveal.md +47 -0
- package/library/primitives/transition/curtain.md +42 -0
- package/library/primitives/transition/dive-in.md +51 -0
- package/library/primitives/transition/fly-past.md +51 -0
- package/library/primitives/transition/iris.md +49 -0
- package/library/primitives/transition/layout-locked-swap.md +28 -0
- package/library/primitives/transition/light-dark-flip.md +27 -0
- package/library/primitives/transition/push.md +47 -0
- package/library/primitives/transition/signal-wipe.md +52 -0
- package/library/primitives/transition/slant-wipe.md +44 -0
- package/library/primitives/transition/stack-over.md +51 -0
- package/library/primitives/transition/step-wipe.md +32 -0
- package/library/primitives/transition/strip-wipe.md +80 -0
- package/library/primitives/transition/torn-edge.md +26 -0
- package/library/primitives/transition/whip-pan.md +47 -0
- package/library/primitives/transition/zoom-through-letter.md +27 -0
- package/library/primitives/type/accent-number.md +22 -0
- package/library/primitives/type/block-reveal.md +41 -0
- package/library/primitives/type/char-cascade.md +65 -0
- package/library/primitives/type/echo.md +44 -0
- package/library/primitives/type/fill-text.md +63 -0
- package/library/primitives/type/focus-blur.md +22 -0
- package/library/primitives/type/inline-chips.md +27 -0
- package/library/primitives/type/mask-reveal.md +65 -0
- package/library/primitives/type/parting.md +23 -0
- package/library/primitives/type/per-word-restyle.md +28 -0
- package/library/primitives/type/scramble.md +26 -0
- package/library/primitives/type/scribble-highlight.md +47 -0
- package/library/primitives/type/shimmer.md +39 -0
- package/library/primitives/type/split-flap.md +26 -0
- package/library/primitives/type/style-multiply.md +23 -0
- package/library/primitives/type/tracking-in.md +40 -0
- package/library/primitives/type/typed-title.md +27 -0
- package/library/primitives/type/word-build.md +37 -0
- package/library/primitives/type/word-roller.md +52 -0
- package/library/primitives/type/writing-ticker.md +27 -0
- package/library/primitives/ui/collab-cursors.md +27 -0
- package/library/primitives/ui/cursor-click.md +61 -0
- package/library/primitives/ui/page-scroll.md +58 -0
- package/library/primitives/ui/prompt-typing.md +29 -0
- package/library/primitives/ui/streamed-result.md +23 -0
- package/library/primitives/ui/tour-hold.md +27 -0
- package/library/styles/brand-system.md +49 -0
- package/library/styles/clean-explainer.md +42 -0
- package/library/styles/dark-showcase.md +48 -0
- package/library/styles/editorial-type.md +37 -0
- package/library/styles/kinetic-poster.md +54 -0
- package/library/styles/product-ui.md +44 -0
- package/library/styles/studio-loop.md +41 -0
- package/library.json +1467 -0
- package/package.json +64 -4
- package/schema/film.schema.json +1316 -0
- package/showcase/vendor/DIALKIT-LICENSE +21 -0
- package/src/studio/theme/fonts/OFL.txt +94 -0
package/CREDITS.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Credits
|
|
2
|
+
|
|
3
|
+
This library is written from scratch, but some files ship with it that are not
|
|
4
|
+
ours, and some of its numbers come from elsewhere. This page names them.
|
|
5
|
+
|
|
6
|
+
## Bundled material
|
|
7
|
+
|
|
8
|
+
Each item below keeps its own licence. The licence text travels with the file,
|
|
9
|
+
as the licence requires.
|
|
10
|
+
|
|
11
|
+
- **[DialKit](https://github.com/joshpuckett/dialkit)** — © 2026 Josh Puckett,
|
|
12
|
+
MIT. The studio's parameter panel and timeline dock. The studio imports the
|
|
13
|
+
`dialkit` package (a dev dependency, bundled when the studio is served); the
|
|
14
|
+
showcase ships its stylesheet as `showcase/vendor/dialkit.min.css` and loads
|
|
15
|
+
its script from a CDN at a pinned version. Licence:
|
|
16
|
+
`showcase/vendor/DIALKIT-LICENSE`.
|
|
17
|
+
- **[Aspekta](https://github.com/ivodolenc/aspekta)** — © 2025 Ivo Dolenc,
|
|
18
|
+
SIL Open Font License 1.1. The one typeface of the studio, the wizard and
|
|
19
|
+
the bundled stage themes. Redistributed as
|
|
20
|
+
`src/studio/theme/fonts/AspektaVF.woff2` (and embedded from it into the
|
|
21
|
+
stage themes) with the licence text beside it:
|
|
22
|
+
`src/studio/theme/fonts/OFL.txt`. The font stays under the OFL; the MIT
|
|
23
|
+
licence of this repository does not cover it.
|
|
24
|
+
|
|
25
|
+
## From bydiorama/ui
|
|
26
|
+
|
|
27
|
+
**[bydiorama/ui](https://github.com/bydiorama/ui)** — © 2026 Diorama
|
|
28
|
+
(bydiorama), MIT, the same owner and licence as this repository.
|
|
29
|
+
|
|
30
|
+
- `src/dom/ui-themes.css.ts` and `src/studio/theme/graphite.css.ts` are
|
|
31
|
+
generated from its token resolver by `scripts/ui-theme.ts`.
|
|
32
|
+
- `src/studio/fade.ts` ports its Fade component to plain DOM, with the
|
|
33
|
+
perceptual ramp tables copied verbatim.
|
|
34
|
+
- The `ui.*` easing curves are its `--ui-ease-*` tokens.
|
|
35
|
+
|
|
36
|
+
Some of those tokens (`--ui-press-scale`, `--ui-stagger-step`, the hit-area
|
|
37
|
+
sizes) encode values ui adapted from
|
|
38
|
+
[jakubkrehel/skills](https://github.com/jakubkrehel/skills) (© 2026 Jakub
|
|
39
|
+
Krehel, MIT). See ui's [CREDITS.md](https://github.com/bydiorama/ui/blob/main/CREDITS.md).
|
|
40
|
+
|
|
41
|
+
## Tools, not shipped
|
|
42
|
+
|
|
43
|
+
Dev dependencies in `package.json` and `requirements.txt` (TypeScript,
|
|
44
|
+
esbuild, Playwright, yaml, PyYAML) and the ffmpeg the render commands call
|
|
45
|
+
are used under their own licences. None of their files are in this
|
|
46
|
+
repository.
|
|
47
|
+
|
|
48
|
+
## References
|
|
49
|
+
|
|
50
|
+
Library entries describe patterns, not sources (see `docs/MAINTENANCE.md`).
|
|
51
|
+
The films and pages that informed them are watched, turned into generic
|
|
52
|
+
observations and let go; no footage, frames, artwork or wording from them is
|
|
53
|
+
in this repository.
|
|
54
|
+
|
|
55
|
+
## Trademarks
|
|
56
|
+
|
|
57
|
+
Every name above is used **nominatively**, to say what this work uses or
|
|
58
|
+
draws on. Product and company names are the trademarks of their owners, and a
|
|
59
|
+
copyright licence grants no trademark rights: MIT licenses the code, not the
|
|
60
|
+
name. Nothing here implies sponsorship, endorsement or affiliation. "Diorama"
|
|
61
|
+
and "bydiorama" name the authors of this repository; the MIT licence does not
|
|
62
|
+
grant their use as a mark either.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Diorama (bydiorama)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,143 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Motion Library
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://github.com/bydiorama/motion/actions/workflows/validate.yml)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
|
|
6
|
+
Our own vocabulary for making motion videos with code. It is the reference that the motion skills read.
|
|
7
|
+
|
|
8
|
+
A video = **one narrative + one style + brand input**.
|
|
9
|
+
|
|
10
|
+
| Layer | What it is | Folder |
|
|
11
|
+
|---|---|---|
|
|
12
|
+
| Primitive | One move: an effect, a transition, a text animation, a 3D rig, a scene type | `library/primitives/<group>/` |
|
|
13
|
+
| Style | Our named look: a set of preferred primitives, timing and surface | `library/styles/` |
|
|
14
|
+
| Narrative | A story structure: beats in order, with a share of time each | `library/narratives/` |
|
|
15
|
+
|
|
16
|
+
The runtime turns this vocabulary into films:
|
|
17
|
+
|
|
18
|
+
| Part | What it is | Where |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| Film | A video as JSON: scenes of layers, each layer a primitive with props and params. An agent writes it | `films/<name>.film.json` |
|
|
21
|
+
| Tune | A person's overrides and pinned notes, kept beside the film. The agent reads it back | `films/<name>.tune.json` |
|
|
22
|
+
| Runtime | Resolves a film (checks, timing, tokens) and draws any frame from its time alone | `src/` |
|
|
23
|
+
| Studio | DialKit panel and timeline for directing a film; writes only the tune | `motion preview` |
|
|
24
|
+
| Catalog | What a film may use: primitives, params, tokens, eases. Generated | `catalog.json`, `schema/film.schema.json` |
|
|
25
|
+
|
|
26
|
+
Other parts:
|
|
27
|
+
|
|
28
|
+
- `INDEX.md`: one line per entry. Generated. Start here.
|
|
29
|
+
- `tokens.yaml`: global timing and easing defaults. Styles override them.
|
|
30
|
+
- `recipes/`: code for primitives, one file per slug, all with the same interface.
|
|
31
|
+
- `examples/`: example storyboards (what a director skill outputs).
|
|
32
|
+
- `templates/`: starting files for new entries.
|
|
33
|
+
- `showcase/`: a short film about the library, built from its own entries.
|
|
34
|
+
- `tools/`: validation, index building, recipe checking, showcase build.
|
|
35
|
+
- `.github/workflows/validate.yml`: runs the checks on every pull request.
|
|
36
|
+
- `docs/DESIGN.md`: why the library is built this way.
|
|
37
|
+
- `docs/MAINTENANCE.md`: how to add references, change entries and release versions.
|
|
38
|
+
|
|
39
|
+
## npm package
|
|
40
|
+
|
|
41
|
+
The package exposes the `motion` CLI, the ESM runtime at `@bydiorama/motion`, and film authoring helpers at `@bydiorama/motion/build`. It requires Node 22.18 or later and includes TypeScript declarations.
|
|
42
|
+
|
|
43
|
+
To install from a release checkout before publication:
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
pnpm install --frozen-lockfile
|
|
47
|
+
npm pack --pack-destination dist
|
|
48
|
+
# In the project where you want to use Motion
|
|
49
|
+
npm install /path/to/motion/dist/bydiorama-motion-0.4.0.tgz
|
|
50
|
+
npx motion catalog
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
After publication, install by name with `npm install @bydiorama/motion`. Try the included film with `npx motion validate node_modules/@bydiorama/motion/films/feature-announcement.film.json`.
|
|
54
|
+
|
|
55
|
+
## Daily commands
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
python3 tools/new_entry.py primitive fx/my-effect # start a new entry
|
|
59
|
+
python3 tools/validate.py # check everything
|
|
60
|
+
python3 tools/build_index.py # refresh INDEX.md
|
|
61
|
+
python3 tools/check_recipe.py type/word-build # test one recipe in Chrome
|
|
62
|
+
python3 tools/build_showcase.py # rebuild showcase/index.html
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Setup: `pip install -r requirements.txt` (Python 3.10+). Recipe checks also need Chrome.
|
|
66
|
+
|
|
67
|
+
## Use it in Claude Code
|
|
68
|
+
|
|
69
|
+
The repository is also a Claude Code plugin. It brings the `motion-film` skill, which writes, checks and revises films, and the `motion` command, to any project. Install it once:
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
/plugin install motion --marketplace bydiorama/motion
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
On Claude Code before 2.1.275, add the marketplace first:
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
/plugin marketplace add bydiorama/motion
|
|
79
|
+
/plugin install motion@diorama-motion
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Then ask for a video, or paste a brief from the wizard. Claude writes `films/<name>.film.json` in your project and runs `motion` (validate, pace, stills, check), and you direct it with `motion preview films/<name>.film.json`. Run `/motion:motion-film` to call the skill by name.
|
|
83
|
+
|
|
84
|
+
- **First session:** a SessionStart hook installs the runtime's packages (`dependencies` in `package.json`) with npm into the plugin's data folder, which takes about ten seconds, once. Node 22.18 or later.
|
|
85
|
+
- **Drawing:** stills, check and render need a Chromium. Pass `--browser` (or set `MOTION_CHROMIUM`) to use your Chrome, Brave or Edge, or let Claude install Playwright's Chromium. `render` and `beats` also need ffmpeg.
|
|
86
|
+
- **Updates:** the plugin has no version number, so it follows `main`. Turn on auto-update for the `diorama-motion` marketplace in `/plugin`, or run `/plugin marketplace update diorama-motion`.
|
|
87
|
+
- **Claude Code only:** claude.ai and Cowork don't install plugins that ship a `bin/` folder.
|
|
88
|
+
|
|
89
|
+
The plugin is this whole repository: `.claude-plugin/` holds the manifest and the marketplace, `hooks/hooks.json` the setup hook (`scripts/plugin-setup.mjs`), and `bin/motion` the command. Check changes with `claude plugin validate .`.
|
|
90
|
+
|
|
91
|
+
## Use it in ChatGPT
|
|
92
|
+
|
|
93
|
+
Select **Diorama Motion** in ChatGPT and paste a Motion brief, or attach a film and its studio notes. The plugin returns an editable `.film.json`. It includes the drawable catalog, narrative and style library, film schema, craft guide and an example. In sessions with Node and file access it can check film structure and timing. Use the local Motion CLI for the studio, footage capture and MP4 rendering.
|
|
94
|
+
|
|
95
|
+
To build the private plugin ZIP from a checkout, run `pnpm install --frozen-lockfile` and `python3 scripts/package-chatgpt.py`. The result is `dist/diorama-motion.zip`. The builder takes the references and film checker from the same checkout as the CLI.
|
|
96
|
+
|
|
97
|
+
## Start with a brief
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
node bin/motion.mjs wizard # questions in the browser, at http://127.0.0.1:4322
|
|
101
|
+
node bin/motion.mjs wizard --out wizard.html # the same page as one file you can share
|
|
102
|
+
node bin/motion.mjs brief answers.json # the same brief from saved answers, no browser
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
The wizard asks one question per screen: video type (product, brand, motion graphics or social, eleven in all), feel, message, what's on screen, moves, length, formats, and whether an agent or a chat assistant will make it. The look follows from the video type. Video types, feels and moves have thumbnails drawn by the runtime itself (`src/wizard/previews.ts`): the selected one plays, the rest hold a still. It then writes a Markdown brief to copy into Claude or ChatGPT. The brief has the beats with timings, the moves that can be drawn (and the ones in the library that can't be drawn yet), timing tokens, a starter film that validates, and what "done" means. The same answers always give the same brief: the wizard and `motion brief` call one pure function (`src/brief/brief.ts`).
|
|
106
|
+
|
|
107
|
+
Agents working in this repository use the `motion-film` skill (`.claude/skills/motion-film/`). It sets the order of work: read the brief and catalog, plan beats, write, validate, look at stills, check, hand over to the studio, then answer notes.
|
|
108
|
+
|
|
109
|
+
## Films
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
pnpm install # Node 24+
|
|
113
|
+
node bin/motion.mjs catalog # what a film may use (read this first)
|
|
114
|
+
node bin/motion.mjs validate films/showcase.film.json # errors with paths, hints and "did you mean"
|
|
115
|
+
node bin/motion.mjs preview films/showcase.film.json # studio at http://127.0.0.1:4321
|
|
116
|
+
node bin/motion.mjs stills films/showcase.film.json # key frames and a contact sheet
|
|
117
|
+
node bin/motion.mjs check films/showcase.film.json # frames repeat exactly, nothing off stage (--loop: the seam)
|
|
118
|
+
node bin/motion.mjs make examples/builder.film.mjs # a film written as a script: checked, then written as JSON
|
|
119
|
+
node bin/motion.mjs capture https://example.com --sections # a 2× screenshot per section, banners hidden
|
|
120
|
+
node bin/motion.mjs record http://localhost:5173 --duration 4 --out footage.mp4 # a live page as footage, frame-exact (--marks: element boxes per frame)
|
|
121
|
+
node bin/motion.mjs review films/showcase.film.json # wiggle, judder, jumps, floating, flicker in the render
|
|
122
|
+
node bin/motion.mjs render films/showcase.film.json # MP4 and a report (needs ffmpeg)
|
|
123
|
+
node bin/motion.mjs bake films/showcase.film.json # write agreed tuning into the film
|
|
124
|
+
pnpm verify # type-check, tests, catalog, films
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Commands that draw (`stills`, `check`, `render`, `capture`, `record`) use Playwright's Chromium. Without it, point them at any installed Chromium-based browser: `--browser "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"`, or set `MOTION_CHROMIUM` once. Films with `el/video` or `rig/footage-plane` need ffmpeg, which pulls the frames each layer shows; `render` and `review` need it too.
|
|
128
|
+
|
|
129
|
+
The studio is one screen: scenes on the left, each with a still and its intent, the stage with a transport under it (Space plays, ←/→ step a frame, Shift steps a second, [ and ] jump between scenes), an inspector with Tune, Notes and Issues on the right, and the DialKit timeline along the bottom.
|
|
130
|
+
|
|
131
|
+
Agents write the film and never the tune. People direct in the studio: every dial is generated from the film and the catalog, dragging a scene clip sets its length, and notes pinned to a moment are stored for the agent. Overrides address scenes and layers by id, so they survive the agent rewriting the film; an override whose target is gone is reported, not dropped.
|
|
132
|
+
|
|
133
|
+
The studio is drawn in bydiorama/ui's Graphite theme (Aspekta, no chroma). Films read `--ui-*` tokens too: pass a ui theme with `--css` and the stage uses its colours, fonts and easing curves (`ui.default`, `ui.spring`, …). A film can also set `"theme": { "ui": "zero" }` (or `graphite`, `hockney`): the stage then carries that bundled ui theme and Aspekta itself, in the studio, in stills and in renders. The demo films and the wizard's thumbnails are drawn this way. `node scripts/ui-theme.ts` regenerates the studio theme and the bundled stage themes from the ui token resolver.
|
|
134
|
+
|
|
135
|
+
## The one rule
|
|
136
|
+
|
|
137
|
+
Entries describe **patterns, not sources**. No links, no brand names, no "seen in". References are inspiration: they are watched, broken into generic observations, and then thrown away. See `docs/MAINTENANCE.md`.
|
|
138
|
+
|
|
139
|
+
## Licence
|
|
140
|
+
|
|
141
|
+
MIT, © 2026 Diorama (bydiorama). See [LICENSE](LICENSE).
|
|
142
|
+
|
|
143
|
+
Two bundled files keep their own licences: the DialKit stylesheet (MIT, `showcase/vendor/DIALKIT-LICENSE`) and the Aspekta typeface (SIL Open Font License 1.1, `src/studio/theme/fonts/OFL.txt`). [CREDITS.md](CREDITS.md) lists everything this repository bundles or draws on.
|