Aller au contenu principal
Données et ROI

Sortie en direct du vrai moteur de rendu — modifiez les réglages et elle se met à jour instantanément.

Trio de KPI

motion design

Trois cartes de résultats montent ensemble et chaque chiffre s'incrémente, sous une lente dérive de caméra.

Idéal pour : Les résultats d'un trimestre, les trois chiffres d'une étude de cas.

Réglages

Police
Thème
Taille
Humeur

L'utiliser dans un film

Ce que vous pouvez changer :kickertitlekpis
Pour les développeurs (MCP et JSON)

Voici la scène exacte à envoyer à create_animation (MCP) : gardez la structure, changez les mots et écrivez la narration — c'est la voix qui fixe la durée de la scène. Collez-la dans update_storyboard avec set_data pour modifier un film déjà fait.

{
  "visual": "motion",
  "heading": "Results",
  "narration": "Write the sentence the voice says over this scene; its length is the scene's.",
  "data": {
    "motion": {
      "spec": {
        "version": 1,
        "name": "KPI trio",
        "intent": "three results that belong together",
        "camera": "drift",
        "exit": "mirror",
        "params": [
          {
            "name": "kicker",
            "type": "text",
            "label": "Eyebrow",
            "default": "Q3 results",
            "maxLength": 24
          },
          {
            "name": "title",
            "type": "text",
            "label": "Title",
            "default": "What changed in ninety days",
            "maxLength": 40
          },
          {
            "name": "kpis",
            "type": "list",
            "items": "record",
            "label": "KPIs (value, label)",
            "min": 3,
            "max": 3,
            "default": [
              {
                "value": "38%",
                "label": "faster onboarding"
              },
              {
                "value": "2.4×",
                "label": "more demos booked"
              },
              {
                "value": "−61%",
                "label": "fewer support tickets"
              }
            ]
          }
        ],
        "layers": [
          {
            "id": "kicker",
            "kind": "text",
            "text": "{{kicker}}",
            "role": "label",
            "uppercase": true,
            "color": "c2",
            "align": "center",
            "maxLines": 1,
            "box": {
              "col": 0,
              "row": 0.1,
              "cols": 12,
              "rows": 1
            },
            "tall": {
              "col": 0,
              "row": 0.3,
              "cols": 12,
              "rows": 0.9
            },
            "enter": {
              "primitive": "maskReveal"
            }
          },
          {
            "id": "title",
            "kind": "text",
            "text": "{{title}}",
            "role": "headline",
            "align": "center",
            "maxLines": 2,
            "box": {
              "col": 0,
              "row": 1.4,
              "cols": 12,
              "rows": 2.6
            },
            "tall": {
              "col": 0,
              "row": 1.5,
              "cols": 12,
              "rows": 2.4
            },
            "enter": {
              "primitive": "maskReveal"
            }
          },
          {
            "id": "card",
            "kind": "shape",
            "shape": "rect",
            "fill": "surface",
            "radius": "lg",
            "elevation": 2,
            "repeat": {
              "param": "kpis",
              "flow": "row",
              "gap": "lg"
            },
            "box": {
              "col": 0,
              "row": 4.5,
              "cols": 12,
              "rows": 7.3
            },
            "tall": {
              "col": 0,
              "row": 4.3,
              "cols": 12,
              "rows": 7.5
            },
            "enter": {
              "primitive": "slideIn",
              "from": "bottom",
              "distance": "rise",
              "order": 1
            }
          },
          {
            "id": "value",
            "kind": "number",
            "value": "{{item.value}}",
            "role": "display",
            "color": "gradient",
            "align": "center",
            "repeat": {
              "param": "kpis",
              "flow": "row",
              "gap": "lg"
            },
            "box": {
              "col": 0,
              "row": 5,
              "cols": 12,
              "rows": 3.6
            },
            "tall": {
              "col": 0.3,
              "row": 4.3,
              "cols": 5.4,
              "rows": 7.5
            },
            "enter": {
              "primitive": "countUp",
              "order": 2
            }
          },
          {
            "id": "label",
            "kind": "text",
            "text": "{{item.label}}",
            "role": "title",
            "color": "sub",
            "align": "center",
            "valign": "start",
            "maxLines": 2,
            "repeat": {
              "param": "kpis",
              "flow": "row",
              "gap": "lg"
            },
            "box": {
              "col": 0,
              "row": 8.9,
              "cols": 12,
              "rows": 2.5
            },
            "tall": {
              "col": 5.9,
              "row": 4.3,
              "cols": 5.8,
              "rows": 7.5
            },
            "enter": {
              "primitive": "slideIn",
              "from": "bottom",
              "distance": "nudge",
              "order": 2
            }
          }
        ]
      },
      "name": "KPI trio"
    }
  }
}

Réutilisez-la : enregistrez data.motion.spec une fois avec save_motion_spec (vérifiée comme avec validate_motion_spec), puis toute scène peut utiliser le visuel « motion » avec data.motion.specId et ses propres paramètres. Nom de la spec : « KPI trio ».

Autres animations Données et ROI