Reelify Motion Kit 0.1 preview

BarChart data

Bars that grow one after another with a spring; each has its number counting up on top and a label under it.

Props#

PropTypeDefaultNotes
items*list of object
maxnumber100the value a full-height bar stands for
hnumber (160 to 1200)460
wnumber (10 to 300)84one bar's width
colorcolor"accent"
eachnumber (0 to 1)0.09
bouncenumber (0 to 0.9)0.35

* 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
barshape
labeltext

Example#

as a node in a scene
{
  "el": "BarChart",
  "items": [{"label": "Mon", "value": 30}, {"label": "Tue", "value": 55}, {"label": "Wed", "value": 90}]
}

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",
  "dir": "row",
  "gap": 26,
  "align": "end",
  "h": "$h",
  "motion": [{"do": "stagger", "each": "$each"}],
  "children": [
    {
      "$each": "$items",
      "as": "d",
      "node": {
        "el": "box",
        "gap": 12,
        "align": "center",
        "justify": "end",
        "h": "fill",
        "children": [
          {
            "el": "text",
            "text": "0",
            "size": 34,
            "weight": 700,
            "motion": [
              {"do": "enter", "from": "fade", "delay": 0.1},
              {"do": "count", "to": "$d.value", "curve": {"ease": "outExpo", "duration": 0.9}}
            ]
          },
          {
            "el": "shape",
            "id": "bar",
            "kind": "rect",
            "w": "$w",
            "h": "=d.value/max*(h-130)",
            "radius": 16,
            "fill": "$color",
            "origin": "bottom",
            "motion": [
              {
                "do": "enter",
                "from": {"scaleY": 0},
                "curve": {"spring": {"bounce": "$bounce", "duration": 0.7}}
              }
            ]
          },
          {
            "el": "text",
            "id": "label",
            "text": "$d.label",
            "size": 34,
            "weight": 600,
            "color": "muted"
          }
        ]
      }
    }
  ]
}
Reelify Motion Kit 0.1 preview. Built 2026-11-21.llms.txt · SKILL.md · 109 pages