Zum Hauptinhalt springen
Social Proof

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

Sterne-Bewertung

motion design

Fünf Sterne setzen sich in eine Reihe, darunter zählt die Note hoch, dann was bewertet wurde.

Ideal für: Eine Durchschnittsbewertung und wie viele Menschen sie abgegeben haben.

Einstellungen

Schrift
Theme
Größe
Stimmung

In einem Film verwenden

Was du ändern kannst:scorelabel
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": "Rating",
  "narration": "Write the sentence the voice says over this scene; its length is the scene's.",
  "data": {
    "motion": {
      "spec": {
        "version": 1,
        "name": "Star rating",
        "intent": "an average rating with how many people gave it",
        "camera": "pushIn",
        "exit": "mirror",
        "params": [
          {
            "name": "score",
            "type": "text",
            "label": "Score",
            "default": "4.8 / 5",
            "maxLength": 10
          },
          {
            "name": "label",
            "type": "text",
            "label": "What it rates",
            "default": "average from 2,300 verified reviews",
            "maxLength": 48
          }
        ],
        "layers": [
          {
            "id": "star1",
            "kind": "icon",
            "icon": "star",
            "color": "c1",
            "box": {
              "col": 0.5,
              "row": 0.3,
              "cols": 2,
              "rows": 2.4
            },
            "tall": {
              "col": 0.5,
              "row": 1.2,
              "cols": 2,
              "rows": 1.8
            },
            "enter": {
              "primitive": "scaleSettle"
            }
          },
          {
            "id": "star2",
            "kind": "icon",
            "icon": "star",
            "color": "c1",
            "box": {
              "col": 2.75,
              "row": 0.3,
              "cols": 2,
              "rows": 2.4
            },
            "tall": {
              "col": 2.75,
              "row": 1.2,
              "cols": 2,
              "rows": 1.8
            },
            "enter": {
              "primitive": "scaleSettle"
            }
          },
          {
            "id": "star3",
            "kind": "icon",
            "icon": "star",
            "color": "c1",
            "box": {
              "col": 5,
              "row": 0.3,
              "cols": 2,
              "rows": 2.4
            },
            "tall": {
              "col": 5,
              "row": 1.2,
              "cols": 2,
              "rows": 1.8
            },
            "enter": {
              "primitive": "scaleSettle"
            }
          },
          {
            "id": "star4",
            "kind": "icon",
            "icon": "star",
            "color": "c1",
            "box": {
              "col": 7.25,
              "row": 0.3,
              "cols": 2,
              "rows": 2.4
            },
            "tall": {
              "col": 7.25,
              "row": 1.2,
              "cols": 2,
              "rows": 1.8
            },
            "enter": {
              "primitive": "scaleSettle"
            }
          },
          {
            "id": "star5",
            "kind": "icon",
            "icon": "star",
            "color": "c1",
            "box": {
              "col": 9.5,
              "row": 0.3,
              "cols": 2,
              "rows": 2.4
            },
            "tall": {
              "col": 9.5,
              "row": 1.2,
              "cols": 2,
              "rows": 1.8
            },
            "enter": {
              "primitive": "scaleSettle"
            }
          },
          {
            "id": "score",
            "kind": "number",
            "value": "{{score}}",
            "role": "hero",
            "color": "gradient",
            "align": "center",
            "box": {
              "col": 0.5,
              "row": 3.2,
              "cols": 11,
              "rows": 5
            },
            "tall": {
              "col": 0,
              "row": 3.6,
              "cols": 12,
              "rows": 3.6
            },
            "enter": {
              "primitive": "countUp",
              "order": 1
            }
          },
          {
            "id": "label",
            "kind": "text",
            "text": "{{label}}",
            "role": "headline",
            "color": "sub",
            "align": "center",
            "maxLines": 2,
            "box": {
              "col": 0.5,
              "row": 8.6,
              "cols": 11,
              "rows": 3.2
            },
            "tall": {
              "col": 0.3,
              "row": 7.8,
              "cols": 11.4,
              "rows": 3.4
            },
            "enter": {
              "primitive": "fadeUp",
              "order": 2
            }
          }
        ]
      },
      "name": "Star rating"
    }
  }
}

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: „Star rating“.

Weitere Social Proof-Animationen