Motion 13 DOM · LilScript port

Motion,
compressed.

The browser animation API you already know, rebuilt in LilScript and shipped as one dependency-free package.

npm install motionlil
paired demos 16/16

smaller after Brotli

12.4%total reduction
13.2%median reduction
23.1%best case
91.0%install reduction

Matching artifacts. Brotli 11. No cross-entry-point tricks.

animate spring stagger scroll inView motionValue hover press resize sequences

Recovered from the LilScript browser suite

The complete
motion lab.

Every original animation case, recreated against the published package runtime. Replay anything. Hover, press, scroll, resize, and poke at the controls.

The receipts

Every byte,
accounted for.

The gate metric is Brotli 11 on matching browser artifacts. Values below come from the original LilScript Motion lab at commit 9fc14a8.

Motion287,404 B
LilScript251,703 B
CaseMotionLilScriptRatioSaved

Important distinction. These are closed-world application builds, where LilScript can optimize the concrete program. The reusable full-package ESM is 50,509 B Brotli versus Motion’s 39,871 B. The package’s other headline is its dependency-free 824,992 B install versus Motion’s 9,141,537 B dependency tree.

Read the methodology ↗

Zero runtime dependencies

Drop Motion into
a smaller box.

npm install motionlil