{
  "fonts": [{ "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }],
  "easings": { "house": "cubic-bezier(0.22, 1, 0.36, 1)", "snap": [0.7, 0, 0.2, 1] },
  "compositions": [{
    "id": "named", "description": "Named easings: define a curve once, use it as an ease and as a function in expressions",
    "width": 1280, "height": 720, "fps": 30, "duration": "3s", "background": "#f4f1ea",
    "layers": [
      { "id": "name", "type": "text", "text": "${pick(i, ['ease: \"house\"', 'ease: \"snap\"', '=house(t / 1.2)'])}", "font": "JetBrains Mono",
        "fontSize": 24, "fill": "#8a857a", "align": "left", "anchor": "left", "x": 140, "y": 220,
        "repeat": { "count": 3, "layout": "column", "spacing": 150, "origin": "start" } },
      { "id": "house-dot", "type": "ellipse", "width": 44, "y": 270, "fill": "#161412",
        "x": { "from": 160, "to": 1120, "start": "0.3s", "duration": "1.2s", "ease": "house" } },
      { "id": "snap-dot", "type": "ellipse", "width": 44, "y": 420, "fill": "#4a4640",
        "x": { "from": 160, "to": 1120, "start": "0.3s", "duration": "1.2s", "ease": "snap" } },
      { "id": "bar", "type": "rect", "anchor": "left", "x": 140, "y": 570, "height": 20, "fill": "#c92a26",
        "width": "=1000 * house(clamp((t - 0.3) / 1.2, 0, 1))" }
    ]
  }]
}
