{
  "fonts": [{ "family": "Schibsted Grotesk", "path": "fonts/SchibstedGrotesk.ttf" }],
  "compositions": [{
    "id": "tilt", "description": "3D tilt on groups: a flip-up entrance with rotateX, a swinging rotateY, and a closer camera",
    "width": 1280, "height": 720, "fps": 30, "duration": "4s", "background": "#f4f1ea",
    "layers": [
      { "id": "flip", "type": "group", "x": 240, "width": 300, "height": 380, "anchor": "bottom", "y": 550,
        "rotateX": { "from": 80, "to": 0, "duration": "1.2s", "ease": "easeOutBack" }, "opacity": { "from": 0, "to": 1, "duration": "0.4s" },
        "children": [
          { "id": "flip-bg", "type": "rect", "cornerRadius": 4, "fill": "#161412" },
          { "id": "flip-t", "type": "text", "text": "rotateX", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 42, "letterSpacing": -2, "fill": "#f4f1ea" } ] },
      { "id": "swing", "type": "group", "x": 640, "y": 360, "width": 300, "height": 380, "rotateY": "=35 * sin(t * pi)",
        "children": [
          { "id": "swing-bg", "type": "rect", "cornerRadius": 4, "fill": { "type": "linear", "angle": 180, "stops": ["#fbf9f4", "#e9e4d8"] }, "stroke": "#161412" },
          { "id": "swing-t", "type": "text", "text": "rotateY", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 42, "letterSpacing": -2, "fill": "#161412" } ] },
      { "id": "near", "type": "group", "x": 1040, "y": 360, "width": 300, "height": 380, "rotateY": "=35 * sin(t * pi)", "perspective": 400,
        "children": [
          { "id": "near-bg", "type": "rect", "cornerRadius": 4, "fill": { "type": "linear", "angle": 180, "stops": ["#fbf9f4", "#e9e4d8"] }, "stroke": "#161412" },
          { "id": "near-t", "type": "text", "text": "perspective\n400", "font": "Schibsted Grotesk", "fontWeight": 860, "fontSize": 42, "letterSpacing": -2, "lineHeight": 0.95, "fill": "#c92a26" } ] }
    ]
  }]
}
