{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk-Italic.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "bars", "description": "A bar chart from two prop arrays: one repeated group per day with a bar, a counting value and a label",
    "width": 1280, "height": 720, "fps": 30, "duration": "4s",
    "background": "#f4f1ea",
    "props": { "values": [412, 538, 497, 621, 884, 356, 298], "labels": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], "peak": 4 },
    "layers": [
      { "id": "title", "type": "text", "text": ["Renders ", { "text": "per day", "italic": true, "fontWeight": 400 }],
        "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 60, "letterSpacing": -2.6, "fill": "#161412",
        "anchor": "left", "x": 120, "y": 92, "enter": "fadeUp" },
      { "id": "grid", "type": "rect", "width": 1040, "height": 1, "fill": "=i == 3 ? '#161412' : '#d8d1c1'", "x": "50%", "y": 450,
        "repeat": { "count": 4, "layout": "column", "spacing": 100 }, "enter": "wipeRight" },
      { "id": "day", "type": "group", "width": 120, "height": 520, "x": "50%", "y": 400,
        "repeat": { "count": 7, "layout": "row", "spacing": 146, "delay": "0.07s" },
        "children": [
          { "id": "bar", "type": "rect", "width": 64, "anchor": "bottom", "x": 60, "y": 460,
            "height": "=pick(i, {{values}}) * 0.36 * easeOutCubic(clamp(t / 0.9, 0, 1))",
            "fill": "=i == {{peak}} ? '#c92a26' : '#161412'" },
          { "id": "value", "type": "text", "font": "JetBrains Mono", "fontSize": 18, "x": 60,
            "y": "=440 - pick(i, {{values}}) * 0.36 * easeOutCubic(clamp(t / 0.9, 0, 1))",
            "text": "${round(pick(i, {{values}}) * easeOutCubic(clamp(t / 0.9, 0, 1)))}",
            "fill": "=i == {{peak}} ? '#c92a26' : '#4a4640'" },
          { "id": "label", "type": "text", "text": "${pick(i, {{labels}})}", "font": "JetBrains Mono", "fontSize": 14,
            "letterSpacing": 1.7, "uppercase": true, "fill": "#8a857a", "x": 60, "y": 494 }
        ] }
    ]
  }]
}
