Aller au contenu principal
Preuve sociale

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

Frise des étapes clés

motion design

Un rail se trace, chaque année et son étape arrivent tour à tour pendant que la caméra panote.

Idéal pour : L'histoire de l'entreprise, l'historique d'un produit.

Réglages

Police
Thème
Taille
Humeur

L'utiliser dans un film

Idéal pourRécit
Ce que vous pouvez changer :titlesteps
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": "Our story",
  "narration": "Write the sentence the voice says over this scene; its length is the scene's.",
  "data": {
    "motion": {
      "spec": {
        "version": 1,
        "name": "Milestones",
        "intent": "the company's story in four dates",
        "camera": "panLeft",
        "exit": "mirror",
        "params": [
          {
            "name": "title",
            "type": "text",
            "label": "Title",
            "default": "Four years, four turning points",
            "maxLength": 36
          },
          {
            "name": "steps",
            "type": "list",
            "items": "record",
            "label": "Milestones (value, title)",
            "min": 3,
            "max": 4,
            "default": [
              {
                "value": "2022",
                "title": "First customer"
              },
              {
                "value": "2023",
                "title": "Seed round"
              },
              {
                "value": "2024",
                "title": "10,000 teams"
              },
              {
                "value": "2025",
                "title": "Three offices"
              }
            ]
          }
        ],
        "layers": [
          {
            "id": "title",
            "kind": "text",
            "text": "{{title}}",
            "role": "display",
            "align": "center",
            "maxLines": 2,
            "box": {
              "col": 0,
              "row": 0,
              "cols": 12,
              "rows": 3
            },
            "tall": {
              "col": 0,
              "row": 0.2,
              "cols": 12,
              "rows": 3
            },
            "enter": {
              "primitive": "maskReveal"
            }
          },
          {
            "id": "rail",
            "kind": "shape",
            "shape": "line",
            "stroke": "c1",
            "strokeWidth": "thin",
            "opacity": 0.7,
            "box": {
              "col": 0,
              "row": 7.45,
              "cols": 12,
              "rows": 0.5
            },
            "tall": {
              "col": 0.35,
              "row": 3.6,
              "cols": 0.5,
              "rows": 8.2
            },
            "enter": {
              "primitive": "drawOn",
              "order": 1
            }
          },
          {
            "id": "year",
            "kind": "text",
            "text": "{{item.value}}",
            "role": "headline",
            "color": "c1",
            "align": "center",
            "maxLines": 1,
            "repeat": {
              "param": "steps",
              "flow": "row",
              "gap": "md"
            },
            "box": {
              "col": 0,
              "row": 4.2,
              "cols": 12,
              "rows": 2.8
            },
            "tall": {
              "col": 1.2,
              "row": 3.6,
              "cols": 4,
              "rows": 8.2
            },
            "enter": {
              "primitive": "fadeUp",
              "order": 2
            }
          },
          {
            "id": "event",
            "kind": "text",
            "text": "{{item.title}}",
            "role": "headline",
            "align": "center",
            "valign": "start",
            "maxLines": 2,
            "repeat": {
              "param": "steps",
              "flow": "row",
              "gap": "md"
            },
            "box": {
              "col": 0,
              "row": 8.4,
              "cols": 12,
              "rows": 3.6
            },
            "tall": {
              "col": 5.4,
              "row": 3.6,
              "cols": 6.6,
              "rows": 8.2
            },
            "enter": {
              "primitive": "fadeUp",
              "order": 2
            }
          }
        ]
      },
      "name": "Milestones"
    }
  }
}

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 : « Milestones ».

Autres animations Preuve sociale