Open the studio

Renewal

A subscription renewing, with its price and perks, renewed in one tap

Retention · 8 s · 1.9 kB

renewal: A subscription renewing, with its price and perks, renewed in one tap

Download MP4 GIF PNG

<script type="module" src="https://makini.st/player.js"></script>
<makinist-player scene="https://makini.st/scenes/renewal.json" data='{
  "name": "Ada",
  "brand": "Lumo",
  "accent": "#2dd4bf",
  "accent2": "#6366f1",
  "renews": "Your 2 TB plan renews on 1 November.",
  "price": "€9.99",
  "period": "a month, the same as now",
  "perk1": "Room for every photo you take",
  "perk2": "Shared with up to five people",
  "perk3": "End-to-end encrypted, always",
  "cta": "Renew in one tap",
  "logo": "ab021896a811ba188d8d1a2487bcf61a9f32f8cd0ac273e2bedd0a21ab2fc8fa",
  "facts": "If Ada does not renew, her plan stays until 1 November, then her storage becomes read-only. The price stays €9.99 a month. The plan can be shared with up to five people."
}'></makinist-player>

The tag plays this customer's version in any page: the browser draws it from the scene and their row, and no video file is sent.

The scene

renewal.json

{
  "format": "makinist/4",
  "canvas": {
    "width": 1080,
    "height": 1080,
    "fps": 60,
    "duration_frames": 480
  },
  "background": "#0b0d12",
  "state": {
    "name": "",
    "brand": "",
    "accent": "#2dd4bf",
    "accent2": "#6366f1",
    "renews": "",
    "price": "",
    "period": "",
    "perk1": "",
    "perk2": "",
    "perk3": "",
    "cta": "",
    "renewed": 0,
    "hint": "tap anywhere, or press space",
    "logo": "ab021896a811ba188d8d1a2487bcf61a9f32f8cd0ac273e2bedd0a21ab2fc8fa",
    "reply": "",
    "facts": "",
    "question": "",
    "perk": 0,
    "said": 0,
    "lit_1": 0,
    "lit_2": 0,
    "lit_3": 0
  },
  "layers": [
    {
      "id": "card",
      "kind": "rect",
      "props": {
        "x": 90,
        "y": 90,
        "w": 900,
        "h": 900,
        "fill": "#141821",
        "radius": 40
      },
      "tracks": {
        "opacity": [
          {
            "frame": 0,
            "value": 0
          },
          {
            "frame": 18,
            "value": 1,
            "ease": "power2.out"
          }
        ],
        "y": [
          {
            "frame": 0,
            "value": 130
          },
          {
            "frame": 30,
            "value": 90,
            "ease": "back.out(1.2)"
          }
        ]
      }
    },
    {
      "id": "card.edge",
      "kind": "rect",
      "props": {
        "x": 90,
        "y": 90,
        "w": 0,
        "h": 10,
        "fill": {
          "linear": {
            "from": [
              0,
              0
            ],
            "to": [
              1,
              0
            ],
            "stops": [
              {
                "at": 0,
                "color": {
                  "bind": "accent"
                }
              },
              {
                "at": 1,
                "color": {
                  "bind": "accent2"
                }
              }
            ]
          }
        },
        "radius": 5
      },
      "tracks": {
        "w": [
          {
            "frame": 10,
            "value": 0
          },
          {
            "frame": 50,
            "value": 900,
            "ease": "power2.out"
          }
        ],
        "y": [
          {
            "frame": 0,
            "value": 130
          },
          {
            "frame": 30,
            "value": 90,
            "ease": "back.out(1.2)"
          }
        ]
      }
    },
    {
      "id": "logo",
      "kind": "image",
      "props": {
        "x": 150,
        "y": 160,
        "w": 220,
        "h": 60
      },
      "image": {
        "sha256": {
          "bind": "logo"
        },
        "fit": "contain"
      },
      "tracks": {
        "opacity": [
          {
            "frame": 20,
            "value": 0
          },
          {
            "frame": 40,
            "value": 1,
            "ease": "power2.out"
          }
        ]
      }
    },
    {
      "id": "hello",
      "kind": "text",
      "props": {
        "x": 150,
        "y": 330,
        "size": 64,
        "fill": "#ffffff",
        "width": 780
      },
      "text": {
        "template": "Hi {name},",
        "font": "Instrument Serif"
      },
      "tracks": {
        "opacity": [
          {
            "frame": 30,
            "value": 0
          },
          {
            "frame": 50,
            "value": 1,
            "ease": "power2.out"
          }
        ],
        "y": [
          {
            "frame": 30,
            "value": 350
          },
          {
            "frame": 60,
            "value": 330,
            "ease": "power2.out"
          }
        ]
      }
    },
    {
      "id": "renews",
      "kind": "text",
      "props": {
        "x": 152,
        "y": 392,
        "size": 30,
        "fill": "#a3acbd",
        "width": 780
      },
      "text": {
        "template": "{renews}",
        "font": "Inter Regular"
      },
      "tracks": {
        "opacity": [
          {
            "frame": 50,
            "value": 0
          },
          {
            "frame": 70,
            "value": 1,
            "ease": "power2.out"
          }
        ]
      }
    },
    {
      "id": "price",
      "kind": "text",
      "props": {
        "x": 146,
        "y": 530,
        "size": 150,
        "fill": {
          "bind": "accent"
        }
      },
      "text": {
        "template": "{price}",
        "font": "Inter Display Bold"
      },
      "tracks": {
        "opacity": [
          {
            "frame": 80,
            "value": 0
          },
          {
            "frame": 100,
            "value": 1,
            "ease": "power2.out"
          }
        ],
        "size": [
          {
            "frame": 80,
            "value": 110
          },
          {
            "frame": 130,
            "value": 150,
            "ease": "power2.out"
          }
        ]
      }
    },
    {
      "id": "period",
      "kind": "text",
      "props": {
        "x": 152,
        "y": 590,
        "size": 30,
        "fill": "#ffffff",
        "width": 780
      },
      "text": {
        "template": "{period}",
        "font": "Inter Regular"
      },
      "tracks": {
        "opacity": [
          {
            "frame": 110,
            "value": 0
          },
          {
            "frame": 130,
            "value": 1,
            "ease": "power2.out"
          }
        ]
      }
    },
    {
      "id": "perk.dot.1",
      "kind": "rect",
      "props": {
        "x": 152,
        "y": 641,
        "w": 20,
        "h": 20,
        "fill": {
          "bind": "accent"
        },
        "radius": 6
      },
      "tracks": {
        "opacity": [
          {
            "frame": 150,
            "value": 0
          },
          {
            "frame": 170,
            "value": 1,
            "ease": "power2.out"
          }
        ]
      }
    },
    {
      "id": "perk.1",
      "kind": "text",
      "props": {
        "x": 190,
        "y": 660,
        "size": 28,
        "fill": "#d6dbe4",
        "width": 740
      },
      "text": {
        "template": "{perk1}",
        "font": "Inter Regular"
      },
      "tracks": {
        "opacity": [
          {
            "frame": 150,
            "value": 0
          },
          {
            "frame": 170,
            "value": 1,
            "ease": "power2.out"
          }
        ],
        "x": [
          {
            "frame": 150,
            "value": 210
          },
          {
            "frame": 180,
            "value": 190,
            "ease": "power2.out"
          }
        ]
      }
    },
    {
      "id": "ask.lit.1",
      "kind": "text",
      "props": {
        "x": 190,
        "y": 660,
        "size": 28,
        "fill": {
          "bind": "accent"
        },
        "width": 740,
        "opacity": {
          "bind": "lit_1"
        }
      },
      "text": {
        "template": "{perk1}",
        "font": "Inter Regular"
      }
    },
    {
      "id": "perk.dot.2",
      "kind": "rect",
      "props": {
        "x": 152,
        "y": 691,
        "w": 20,
        "h": 20,
        "fill": {
          "bind": "accent"
        },
        "radius": 6
      },
      "tracks": {
        "opacity": [
          {
            "frame": 175,
            "value": 0
          },
          {
            "frame": 195,
            "value": 1,
            "ease": "power2.out"
          }
        ]
      }
    },
    {
      "id": "perk.2",
      "kind": "text",
      "props": {
        "x": 190,
        "y": 710,
        "size": 28,
        "fill": "#d6dbe4",
        "width": 740
      },
      "text": {
        "template": "{perk2}",
        "font": "Inter Regular"
      },
      "tracks": {
        "opacity": [
          {
            "frame": 175,
            "value": 0
          },
          {
            "frame": 195,
            "value": 1,
            "ease": "power2.out"
          }
        ],
        "x": [
          {
            "frame": 175,
            "value": 210
          },
          {
            "frame": 205,
            "value": 190,
            "ease": "power2.out"
          }
        ]
      }
    },
    {
      "id": "ask.lit.2",
      "kind": "text",
      "props": {
        "x": 190,
        "y": 710,
        "size": 28,
        "fill": {
          "bind": "accent"
        },
        "width": 740,
        "opacity": {
          "bind": "lit_2"
        }
      },
      "text": {
        "template": "{perk2}",
        "font": "Inter Regular"
      }
    },
    {
      "id": "perk.dot.3",
      "kind": "rect",
      "props": {
        "x": 152,
        "y": 741,
        "w": 20,
        "h": 20,
        "fill": {
          "bind": "accent"
        },
        "radius": 6
      },
      "tracks": {
        "opacity": [
          {
            "frame": 200,
            "value": 0
          },
          {
            "frame": 220,
            "value": 1,
            "ease": "power2.out"
          }
        ]
      }
    },
    {
      "id": "perk.3",
      "kind": "text",
      "props": {
        "x": 190,
        "y": 760,
        "size": 28,
        "fill": "#d6dbe4",
        "width": 740
      },
      "text": {
        "template": "{perk3}",
        "font": "Inter Regular"
      },
      "tracks": {
        "opacity": [
          {
            "frame": 200,
            "value": 0
          },
          {
            "frame": 220,
            "value": 1,
            "ease": "power2.out"
          }
        ],
        "x": [
          {
            "frame": 200,
            "value": 210
          },
          {
            "frame": 230,
            "value": 190,
            "ease": "power2.out"
          }
        ]
      }
    },
    {
      "id": "ask.lit.3",
      "kind": "text",
      "props": {
        "x": 190,
        "y": 760,
        "size": 28,
        "fill": {
          "bind": "accent"
        },
        "width": 740,
        "opacity": {
          "bind": "lit_3"
        }
      },
      "text": {
        "template": "{perk3}",
        "font": "Inter Regular"
      }
    },
    {
      "id": "button",
      "kind": "rect",
      "props": {
        "x": 150,
        "y": 856,
        "w": 780,
        "h": 80,
        "fill": {
          "linear": {
            "from": [
              0,
              0
            ],
            "to": [
              1,
              0
            ],
            "stops": [
              {
                "at": 0,
                "color": {
                  "bind": "accent"
                }
              },
              {
                "at": 1,
                "color": {
                  "bind": "accent2"
                }
              }
            ]
          }
        },
        "radius": 40
      },
      "tracks": {
        "opacity": [
          {
            "frame": 260,
            "value": 0
          },
          {
            "frame": 280,
            "value": 1,
            "ease": "power2.out"
          }
        ],
        "x": [
          {
            "frame": 260,
            "value": 150
          },
          {
            "frame": 290,
            "value": 150,
            "ease": "power2.out"
          },
          {
            "frame": 310,
            "value": 142,
            "ease": "power2.out"
          },
          {
            "frame": 330,
            "value": 150,
            "ease": "power2.out"
          },
          {
            "frame": 370,
            "value": 142,
            "ease": "power2.out"
          },
          {
            "frame": 390,
            "value": 150,
            "ease": "power2.out"
          }
        ],
        "w": [
          {
            "frame": 260,
            "value": 780
          },
          {
            "frame": 290,
            "value": 780,
            "ease": "power2.out"
          },
          {
            "frame": 310,
            "value": 796,
            "ease": "power2.out"
          },
          {
            "frame": 330,
            "value": 780,
            "ease": "power2.out"
          },
          {
            "frame": 370,
            "value": 796,
            "ease": "power2.out"
          },
          {
            "frame": 390,
            "value": 780,
            "ease": "power2.out"
          }
        ],
        "y": [
          {
            "frame": 260,
            "value": 856
          },
          {
            "frame": 290,
            "value": 856,
            "ease": "power2.out"
          },
          {
            "frame": 310,
            "value": 851,
            "ease": "power2.out"
          },
          {
            "frame": 330,
            "value": 856,
            "ease": "power2.out"
          },
          {
            "frame": 370,
            "value": 851,
            "ease": "power2.out"
          },
          {
            "frame": 390,
            "value": 856,
            "ease": "power2.out"
          }
        ],
        "h": [
          {
            "frame": 260,
            "value": 80
          },
          {
            "frame": 290,
            "value": 80,
            "ease": "power2.out"
          },
          {
            "frame": 310,
            "value": 90,
            "ease": "power2.out"
          },
          {
            "frame": 330,
            "value": 80,
            "ease": "power2.out"
          },
          {
            "frame": 370,
            "value": 90,
            "ease": "power2.out"
          },
          {
            "frame": 390,
            "value": 80,
            "ease": "power2.out"
          }
        ]
      }
    },
    {
      "id": "button.done",
      "kind": "rect",
      "props": {
        "x": 150,
        "y": 856,
        "w": 780,
        "h": 80,
        "fill": "#1f2633",
        "radius": 40,
        "opacity": {
          "bind": "renewed"
        }
      },
      "tracks": {
        "x": [
          {
            "frame": 260,
            "value": 150
          },
          {
            "frame": 290,
            "value": 150,
            "ease": "power2.out"
          },
          {
            "frame": 310,
            "value": 142,
            "ease": "power2.out"
          },
          {
            "frame": 330,
            "value": 150,
            "ease": "power2.out"
          },
          {
            "frame": 370,
            "value": 142,
            "ease": "power2.out"
          },
          {
            "frame": 390,
            "value": 150,
            "ease": "power2.out"
          }
        ],
        "w": [
          {
            "frame": 260,
            "value": 780
          },
          {
            "frame": 290,
            "value": 780,
            "ease": "power2.out"
          },
          {
            "frame": 310,
            "value": 796,
            "ease": "power2.out"
          },
          {
            "frame": 330,
            "value": 780,
            "ease": "power2.out"
          },
          {
            "frame": 370,
            "value": 796,
            "ease": "power2.out"
          },
          {
            "frame": 390,
            "value": 780,
            "ease": "power2.out"
          }
        ],
        "y": [
          {
            "frame": 260,
            "value": 856
          },
          {
            "frame": 290,
            "value": 856,
            "ease": "power2.out"
          },
          {
            "frame": 310,
            "value": 851,
            "ease": "power2.out"
          },
          {
            "frame": 330,
            "value": 856,
            "ease": "power2.out"
          },
          {
            "frame": 370,
            "value": 851,
            "ease": "power2.out"
          },
          {
            "frame": 390,
            "value": 856,
            "ease": "power2.out"
          }
        ],
        "h": [
          {
            "frame": 260,
            "value": 80
          },
          {
            "frame": 290,
            "value": 80,
            "ease": "power2.out"
          },
          {
            "frame": 310,
            "value": 90,
            "ease": "power2.out"
          },
          {
            "frame": 330,
            "value": 80,
            "ease": "power2.out"
          },
          {
            "frame": 370,
            "value": 90,
            "ease": "power2.out"
          },
          {
            "frame": 390,
            "value": 80,
            "ease": "power2.out"
          }
        ]
      }
    },
    {
      "id": "button.label",
      "kind": "text",
      "props": {
        "x": 150,
        "y": 906,
        "size": 30,
        "fill": "#ffffff",
        "width": 780
      },
      "text": {
        "template": "{cta}",
        "font": "Inter SemiBold",
        "align": "center"
      },
      "tracks": {
        "opacity": [
          {
            "frame": 270,
            "value": 0
          },
          {
            "frame": 290,
            "value": 1,
            "ease": "power2.out"
          }
        ]
      }
    },
    {
      "id": "hint",
      "kind": "text",
      "props": {
        "x": 150,
        "y": 968,
        "size": 22,
        "fill": "#8a93a8",
        "width": 780
      },
      "text": {
        "template": "{hint}",
        "font": "Inter Regular",
        "align": "center"
      },
      "tracks": {
        "opacity": [
          {
            "frame": 300,
            "value": 0
          },
          {
            "frame": 320,
            "value": 1,
            "ease": "power2.out"
          }
        ]
      }
    },
    {
      "id": "ask.reply",
      "kind": "text",
      "props": {
        "line_height": 1.3,
        "opacity": {
          "bind": "said"
        },
        "x": 150,
        "y": 808,
        "size": 24,
        "fill": "#ffffff",
        "width": 780
      },
      "text": {
        "template": "{reply}",
        "font": "Inter Regular"
      }
    }
  ],
  "on": [
    {
      "event": "key:space",
      "if": {
        "renewed": 0
      },
      "from": 270,
      "set": {
        "renewed": 1,
        "cta": "Renewed. Thank you!",
        "hint": "Your receipt is on its way."
      },
      "action": "renew"
    },
    {
      "event": "ask:sent",
      "set": {
        "reply": "",
        "said": 0,
        "lit_1": 0,
        "lit_2": 0,
        "lit_3": 0
      }
    },
    {
      "event": "ask:answered",
      "set": {
        "said": 1,
        "lit_1": 0,
        "lit_2": 0,
        "lit_3": 0
      }
    },
    {
      "event": "ask:answered",
      "if": {
        "perk": 1
      },
      "set": {
        "lit_1": 1
      }
    },
    {
      "event": "ask:answered",
      "if": {
        "perk": 2
      },
      "set": {
        "lit_2": 1
      }
    },
    {
      "event": "ask:answered",
      "if": {
        "perk": 3
      },
      "set": {
        "lit_3": 1
      }
    },
    {
      "event": "ask:failed",
      "set": {
        "reply": "Sorry, I couldn't answer that. Try again?",
        "said": 1
      }
    }
  ],
  "tween": {
    "said": {
      "frames": 12
    },
    "lit_1": {
      "frames": 12
    },
    "lit_2": {
      "frames": 12
    },
    "lit_3": {
      "frames": 12
    }
  },
  "ask": {
    "instructions": "You are the host of one customer's video, for the brand in `brand`: their renewal. Answer their question in `reply` in one or two short sentences, at most 160 characters, warm and plain, in the language they ask in. Use only facts from what the video shows and from `facts`: never invent a price, a date, a place or a promise. Set `perk` to the perk your answer is about (the first, second or third), or none. If the question is about anything else, say kindly that you can only talk about this renewal and what it includes.",
    "writes": [
      "reply",
      "perk"
    ],
    "choices": {
      "perk": [
        [
          "none",
          0
        ],
        [
          "first",
          1
        ],
        [
          "second",
          2
        ],
        [
          "third",
          3
        ]
      ]
    },
    "question": "question",
    "suggestions": [
      "What do I get if I renew?",
      "Will the price change?",
      "Can I share it?",
      "What if I don't renew?"
    ]
  }
}

The data row

row.json

{
  "name": "Ada",
  "brand": "Lumo",
  "accent": "#2dd4bf",
  "accent2": "#6366f1",
  "renews": "Your 2 TB plan renews on 1 November.",
  "price": "€9.99",
  "period": "a month, the same as now",
  "perk1": "Room for every photo you take",
  "perk2": "Shared with up to five people",
  "perk3": "End-to-end encrypted, always",
  "cta": "Renew in one tap",
  "logo": "ab021896a811ba188d8d1a2487bcf61a9f32f8cd0ac273e2bedd0a21ab2fc8fa",
  "facts": "If Ada does not renew, her plan stays until 1 November, then her storage becomes read-only. The price stays €9.99 a month. The plan can be shared with up to five people."
}