Zum Hauptinhalt springen
Daten & ROI

Live-Ausgabe der echten Render-Engine — ändere die Einstellungen und sie aktualisiert sich sofort.

Zielfortschritt

motion design

Die Überschrift erscheint Wort für Wort, die Zahl zählt hoch und ein Fortschrittsbalken wächst Richtung Ziel.

Ideal für: Eine Spendenaktion, eine Warteliste, ein Ziel, das fast erreicht ist.

Einstellungen

Schrift
Theme
Größe
Stimmung

In einem Film verwenden

Was du ändern kannst:titlesharevaluesupport
Für Entwickler (MCP und JSON)

Das ist genau die Szene für create_animation (MCP): Struktur behalten, Worte ändern und den Sprechertext schreiben — die Stimme bestimmt, wie lange die Szene dauert. Mit set_data in update_storyboard einfügen, um einen fertigen Film zu ändern.

{
  "visual": "motion",
  "heading": "Goal",
  "narration": "Write the sentence the voice says over this scene; its length is the scene's.",
  "data": {
    "motion": {
      "spec": {
        "version": 1,
        "name": "Goal progress",
        "intent": "how close we are to the goal",
        "camera": "pushIn",
        "exit": "mirror",
        "params": [
          {
            "name": "title",
            "type": "text",
            "label": "Title",
            "default": "Our sign-up goal, almost there",
            "maxLength": 40
          },
          {
            "name": "share",
            "type": "list",
            "items": "pair",
            "label": "Progress",
            "min": 1,
            "max": 1,
            "default": [
              {
                "label": "of 10,000 sign-ups",
                "value": 78
              }
            ]
          },
          {
            "name": "value",
            "type": "text",
            "label": "Figure",
            "default": "7,800",
            "maxLength": 10
          },
          {
            "name": "support",
            "type": "text",
            "label": "Support line",
            "default": "with two weeks still to go",
            "maxLength": 40
          }
        ],
        "layers": [
          {
            "id": "title",
            "kind": "text",
            "text": "{{title}}",
            "role": "headline",
            "align": "start",
            "maxLines": 2,
            "box": {
              "col": 0,
              "row": 0.2,
              "cols": 12,
              "rows": 2.6
            },
            "tall": {
              "col": 0,
              "row": 0.4,
              "cols": 12,
              "rows": 2.6
            },
            "enter": {
              "primitive": "wordStagger"
            },
            "emphasis": {
              "primitive": "highlightSweep"
            }
          },
          {
            "id": "value",
            "kind": "number",
            "value": "{{value}}",
            "role": "hero",
            "color": "gradient",
            "align": "start",
            "box": {
              "col": 0,
              "row": 3.2,
              "cols": 6.6,
              "rows": 4.4
            },
            "tall": {
              "col": 0,
              "row": 3.4,
              "cols": 12,
              "rows": 3
            },
            "enter": {
              "primitive": "countUp",
              "order": 1
            }
          },
          {
            "id": "support",
            "kind": "text",
            "text": "{{support}}",
            "role": "title",
            "color": "sub",
            "align": "start",
            "maxLines": 2,
            "box": {
              "col": 7,
              "row": 4.2,
              "cols": 5,
              "rows": 2.6
            },
            "tall": {
              "col": 0,
              "row": 6.7,
              "cols": 12,
              "rows": 1.4
            },
            "enter": {
              "primitive": "wordStagger",
              "order": 1
            }
          },
          {
            "id": "bar",
            "kind": "chart",
            "chart": "progress",
            "data": "{{share}}",
            "color": "gradient",
            "unit": "%",
            "showValues": true,
            "showLabels": true,
            "box": {
              "col": 0,
              "row": 8,
              "cols": 12,
              "rows": 3.6
            },
            "tall": {
              "col": 0,
              "row": 8.5,
              "cols": 12,
              "rows": 3
            },
            "enter": {
              "primitive": "lineDraw",
              "ease": "power4Out",
              "duration": "slow",
              "order": 2
            }
          }
        ]
      },
      "name": "Goal progress"
    }
  }
}

Wiederverwenden: data.motion.spec einmal mit save_motion_spec speichern (geprüft wie mit validate_motion_spec), dann kann jede Szene das Visual „motion“ mit data.motion.specId und eigenen Parametern nutzen. Name der Spec: „Goal progress“.

Weitere Daten & ROI-Animationen