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.

Bandeau de preuve sociale

motion design

Le chiffre de la communauté s'incrémente et trois courts avis glissent à côté, puis repartent.

Idéal pour : Combien de personnes l'utilisent, et ce que quelques-unes en disent.

Réglages

Police
Thème
Taille
Humeur

L'utiliser dans un film

Ce que vous pouvez changer :valuelabelreviews
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": "Proof",
  "narration": "Write the sentence the voice says over this scene; its length is the scene's.",
  "data": {
    "motion": {
      "spec": {
        "version": 1,
        "name": "Social proof ticker",
        "intent": "how many people use it, and what a few of them say",
        "exit": "mirror",
        "params": [
          {
            "name": "value",
            "type": "text",
            "label": "Figure",
            "default": "12,000+",
            "maxLength": 8
          },
          {
            "name": "label",
            "type": "text",
            "label": "What it counts",
            "default": "teams publish with us every week",
            "maxLength": 36
          },
          {
            "name": "reviews",
            "type": "list",
            "items": "record",
            "label": "Reviews (title, caption)",
            "min": 3,
            "max": 3,
            "default": [
              {
                "title": "“Set up in ten minutes.”",
                "caption": "Ops lead, Globex"
              },
              {
                "title": "“Our demos convert.”",
                "caption": "Founder, Initech"
              },
              {
                "title": "“The team uses it daily.”",
                "caption": "CMO, Hooli"
              }
            ]
          }
        ],
        "layers": [
          {
            "id": "value",
            "kind": "number",
            "value": "{{value}}",
            "role": "hero",
            "color": "gradient",
            "align": "start",
            "box": {
              "col": 0,
              "row": 1,
              "cols": 5.8,
              "rows": 5
            },
            "tall": {
              "col": 0,
              "row": 0.2,
              "cols": 12,
              "rows": 3
            },
            "enter": {
              "primitive": "countUp"
            }
          },
          {
            "id": "label",
            "kind": "text",
            "text": "{{label}}",
            "role": "headline",
            "align": "start",
            "maxLines": 3,
            "box": {
              "col": 0,
              "row": 6.4,
              "cols": 5.8,
              "rows": 4.6
            },
            "tall": {
              "col": 0,
              "row": 3.4,
              "cols": 12,
              "rows": 2.2
            },
            "enter": {
              "primitive": "fadeUp",
              "order": 1
            }
          },
          {
            "id": "card",
            "kind": "shape",
            "shape": "rect",
            "fill": "surface",
            "radius": "lg",
            "elevation": 2,
            "repeat": {
              "param": "reviews",
              "flow": "column",
              "gap": "md"
            },
            "box": {
              "col": 6.2,
              "row": 0.2,
              "cols": 5.8,
              "rows": 11.6
            },
            "tall": {
              "col": 0,
              "row": 6,
              "cols": 12,
              "rows": 5.9
            },
            "enter": {
              "primitive": "slideIn",
              "from": "right",
              "distance": "rise",
              "order": 2
            },
            "exit": {
              "primitive": "slideOut",
              "to": "left"
            }
          },
          {
            "id": "review",
            "kind": "text",
            "text": "{{item.title}}",
            "role": "title",
            "align": "start",
            "valign": "start",
            "maxLines": 2,
            "repeat": {
              "param": "reviews",
              "flow": "column",
              "gap": "md"
            },
            "box": {
              "col": 6.6,
              "row": 0.3,
              "cols": 5,
              "rows": 11.6
            },
            "tall": {
              "col": 0.4,
              "row": 6.1,
              "cols": 11.2,
              "rows": 5.9
            },
            "enter": {
              "primitive": "slideIn",
              "from": "right",
              "distance": "rise",
              "order": 2
            }
          },
          {
            "id": "who",
            "kind": "text",
            "text": "{{item.caption}}",
            "role": "body",
            "color": "sub",
            "align": "start",
            "valign": "end",
            "maxLines": 1,
            "repeat": {
              "param": "reviews",
              "flow": "column",
              "gap": "md"
            },
            "box": {
              "col": 6.6,
              "row": 0.1,
              "cols": 5,
              "rows": 11.6
            },
            "tall": {
              "col": 0.4,
              "row": 5.9,
              "cols": 11.2,
              "rows": 5.9
            },
            "enter": {
              "primitive": "slideIn",
              "from": "right",
              "distance": "rise",
              "order": 2
            }
          }
        ]
      },
      "name": "Social proof ticker"
    }
  }
}

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 : « Social proof ticker ».

Autres animations Preuve sociale