{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "wrap", "description": "maxWidth wraps text; it is animatable, so the paragraph reflows as the box grows",
    "width": 1280, "height": 720, "fps": 30, "duration": "4s", "background": "#f4f1ea",
    "layers": [
      { "id": "box", "type": "rect", "y": "45%", "height": 400, "fill": null, "stroke": "#c92a26", "strokeWidth": 1.5,
        "dash": [10, 8], "width": [[0, 400], ["2s", 1040, "easeInOutCubic"], ["4s", 400, "easeInOutCubic"]] },
      { "id": "para", "type": "text", "y": "45%", "font": "Schibsted Grotesk", "fontWeight": 500, "fontSize": 38, "lineHeight": 1.3,
        "letterSpacing": -0.5, "fill": "#161412",
        "maxWidth": [[0, 360], ["2s", 1000, "easeInOutCubic"], ["4s", 360, "easeInOutCubic"]],
        "text": "Every frame is a pure function of time, so any frame can be checked in isolation before you render." },
      { "id": "label", "type": "text", "y": "88%", "font": "JetBrains Mono", "fontSize": 20, "letterSpacing": 1, "fill": "#4a4640",
        "text": "maxWidth: ${round(360 + 640 * easeInOutCubic(pingpong(t / 2, 1)))}" }
    ]
  }]
}
