Glimma

View the Project on GitHub ztripez/glimma

Glimma

Plain‑text animation language — Markdown for motion

Glimma lets you storyboard lightweight SVG/CSS animations with a clear, text-based syntax. A single .glimma file defines shapes, groups, scenes and timelines; the CLI outputs self-contained SVG animations or HTML wrappers.

Key features

See the Glimma DSL Specification for language details and the project README for installation and usage instructions.

Try the Interactive Playground → to experiment with Glimma in your browser.

For a tour of all sample scripts, visit the Examples gallery. Run npm run docs to build the SVG previews used throughout the site.

Examples

The repository includes a gallery of sample scripts under /examples. Build one with the CLI:

npx glimma build examples/01-fade.glimma examples/out.svg

01-fade.glimma

scene demo {
  shape box rect x=10 y=10 width=100 height=50 fill="skyblue"
  shape label text content="Hello" x=20 y=40
  timeline:
    0s: box fadeIn over 1s
    0.5s: label fadeIn over 1s
}

The resulting SVG is viewable in any browser:

Fade example