{
  "fonts": [
    { "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" },
    { "family": "JetBrains Mono", "path": "fonts/JetBrainsMono.ttf" }
  ],
  "compositions": [{
    "id": "tree", "description": "A group moves, tilts and scales; its children follow in the group's own coordinates",
    "width": 1280, "height": 720, "fps": 30, "duration": "4s", "background": "#f4f1ea",
    "layers": [
      { "id": "back", "type": "rect", "x": "50%", "y": "52%", "width": 460, "height": 280, "cornerRadius": 3,
        "fill": "#e9e4d8", "stroke": "#d8d1c1", "strokeWidth": 2, "rotation": -6, "comment": "drawn first, so it sits at the bottom" },
      { "id": "card", "type": "group", "x": "=pw/2 + 150 * sin(t * pi / 2)", "y": "52%", "width": 460, "height": 280,
        "rotation": "=6 * sin(t * pi / 2)", "scale": { "from": 0.85, "to": 1, "duration": "1s", "ease": "easeOutBack" },
        "children": [
          { "id": "panel", "type": "rect", "cornerRadius": 3, "fill": "#fbf9f4", "stroke": "#161412", "strokeWidth": 2 },
          { "id": "badge", "type": "ellipse", "x": "100%", "y": 0, "width": 64, "fill": "#c92a26" },
          { "id": "name", "type": "text", "text": "card", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 84,
            "letterSpacing": -3.5, "fill": "#161412", "y": "44%" },
          { "id": "coords", "type": "text", "text": "badge: x \"100%\", y 0", "font": "JetBrains Mono", "fontSize": 20,
            "fill": "#4a4640", "y": "72%" }
        ] },
      { "id": "caption", "type": "text", "text": "children are placed in the group's box, not the canvas", "font": "Schibsted Grotesk",
        "fontSize": 22, "fill": "#8a857a", "y": "90%" }
    ]
  }]
}
