Reelify Motion Kit 0.1 preview

MomentPicture data

One of the reel's pictures in a large window with a title over it. A wide picture is cropped towards its focus and the window travels across the rest while it is up.

Props#

PropTypeDefaultNotes
src*string
titlestring""
rationumber (0.2 to 5)1.5
cropnumber (0.4 to 3)1.3the window's own shape (width over height)
focusnumber (0 to 1)0.5where across the picture the interest is
secondsnumber (0.5 to 60)4
inkcolor"ink"
onstring"page"the surface it sits on
frameWnumberits width, when it is not the whole frame
frameHnumberits height, when it is not the whole frame

* required. Every node also takes the common props: id, motion, start, place, scale, rotate, opacity, w, h. A colour is a palette name, never a value.

Parts#

Named parts can be restyled from outside without making a new component: "parts": { "root": { … } }.

PartIs a
rootbox
pagebox
titletext
windowbox
pictureimg

Example#

as a node in a scene
{"el": "MomentPicture", "src": "", "title": "The editor"}

How it is made#

This component is plain data. Its whole definition is the tree below: copy it into a scene's components list under a new name to make your own version. See Custom components.

its tree
{
  "el": "box",
  "id": "page",
  "surface": "$on",
  "w": "$frameW",
  "h": "$frameH",
  "gap": 30,
  "align": "center",
  "justify": "center",
  "motion": [{"do": "enter", "from": {"opacity": 0, "scale": 1.05}, "curve": "smooth"}],
  "children": [
    {
      "el": "text",
      "id": "title",
      "text": "$title",
      "size": "=frameW*0.062",
      "weight": 800,
      "color": "$ink",
      "align": "center",
      "maxW": "=frameW-120",
      "motion": [
        {
          "do": "enter",
          "from": {"y": 36, "opacity": 0, "blur": 6},
          "delay": 0,
          "curve": "smooth"
        }
      ]
    },
    {
      "el": "box",
      "id": "window",
      "dir": "stack",
      "align": "start",
      "justify": "start",
      "clip": true,
      "radius": 22,
      "shadow": 3,
      "w": "=min(frameW-40,(frameH-170)*crop)",
      "h": "=(min(frameW-40,(frameH-170)*crop))/crop",
      "motion": [
        {
          "do": "enter",
          "from": {"y": 70, "scale": 0.94, "opacity": 0},
          "delay": 0.15,
          "curve": "heavy"
        }
      ],
      "children": [
        {
          "el": "img",
          "id": "picture",
          "src": "$src",
          "w": "=max(min(frameW-40,(frameH-170)*crop),(min(frameW-40,(frameH-170)*crop))/crop*ratio)",
          "h": "=(max(min(frameW-40,(frameH-170)*crop),(min(frameW-40,(frameH-170)*crop))/crop*ratio))/ratio",
          "radius": 0,
          "fit": "cover",
          "motion": [
            {
              "do": "drive",
              "pose": {
                "x": "=-((max(min(frameW-40,(frameH-170)*crop),(min(frameW-40,(frameH-170)*crop))/crop*ratio))-(min(frameW-40,(frameH-170)*crop)))*clamp(focus-0.25+0.5*smooth(0.3,seconds,lt),0,1)"
              }
            }
          ]
        }
      ]
    }
  ]
}
Reelify Motion Kit 0.1 preview. Built 2026-11-21.llms.txt · SKILL.md · 109 pages