Aller au contenu principal
Appel à l'action

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

Carte de fin newsletter

motion design

Le titre arrive, une adresse se tape dans le champ et le bouton d'inscription glisse en place.

Idéal pour : Terminer un film en faisant grandir votre liste.

Réglages

Police
Thème
Taille
Humeur

L'utiliser dans un film

Ce que vous pouvez changer :titlesupportfieldbutton
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": "Subscribe",
  "narration": "Write the sentence the voice says over this scene; its length is the scene's.",
  "data": {
    "motion": {
      "spec": {
        "version": 1,
        "name": "Newsletter end card",
        "intent": "ask the viewer to subscribe",
        "exit": "fadeOut",
        "params": [
          {
            "name": "title",
            "type": "text",
            "label": "Title",
            "default": "Get the Friday brief",
            "maxLength": 28
          },
          {
            "name": "support",
            "type": "text",
            "label": "Support line",
            "default": "Five minutes, every week, no spam.",
            "maxLength": 44
          },
          {
            "name": "field",
            "type": "text",
            "label": "Field text",
            "default": "you@company.com",
            "maxLength": 24
          },
          {
            "name": "button",
            "type": "text",
            "label": "Button",
            "default": "Subscribe",
            "maxLength": 12
          }
        ],
        "layers": [
          {
            "id": "title",
            "kind": "text",
            "text": "{{title}}",
            "role": "display",
            "align": "center",
            "maxLines": 2,
            "box": {
              "col": 0,
              "row": 0.2,
              "cols": 12,
              "rows": 3.6
            },
            "tall": {
              "col": 0,
              "row": 0.8,
              "cols": 12,
              "rows": 3.6
            },
            "enter": {
              "primitive": "wordStagger"
            }
          },
          {
            "id": "support",
            "kind": "text",
            "text": "{{support}}",
            "role": "headline",
            "color": "sub",
            "align": "center",
            "maxLines": 2,
            "box": {
              "col": 0,
              "row": 4.2,
              "cols": 12,
              "rows": 2.2
            },
            "tall": {
              "col": 0,
              "row": 4.7,
              "cols": 12,
              "rows": 2.4
            },
            "enter": {
              "primitive": "wordStagger",
              "order": 1
            }
          },
          {
            "id": "fieldBox",
            "kind": "shape",
            "shape": "rect",
            "fill": "surface",
            "stroke": "sub",
            "strokeWidth": "hair",
            "radius": "pill",
            "box": {
              "col": 0.5,
              "row": 7.4,
              "cols": 7.6,
              "rows": 3
            },
            "tall": {
              "col": 0.5,
              "row": 7.6,
              "cols": 11,
              "rows": 1.8
            },
            "enter": {
              "primitive": "slideIn",
              "from": "left",
              "distance": "nudge",
              "order": 2
            }
          },
          {
            "id": "field",
            "kind": "text",
            "text": "{{field}}",
            "role": "headline",
            "color": "sub",
            "align": "start",
            "maxLines": 1,
            "box": {
              "col": 1.1,
              "row": 7.4,
              "cols": 6.6,
              "rows": 3
            },
            "tall": {
              "col": 1.2,
              "row": 7.6,
              "cols": 9.6,
              "rows": 1.8
            },
            "enter": {
              "primitive": "typewriter",
              "order": 3
            }
          },
          {
            "id": "buttonBox",
            "kind": "shape",
            "shape": "rect",
            "fill": "c1",
            "radius": "pill",
            "elevation": 2,
            "box": {
              "col": 8.4,
              "row": 7.4,
              "cols": 3.1,
              "rows": 3
            },
            "tall": {
              "col": 2.5,
              "row": 9.9,
              "cols": 7,
              "rows": 1.8
            },
            "enter": {
              "primitive": "slideIn",
              "from": "right",
              "distance": "nudge",
              "order": 4
            }
          },
          {
            "id": "button",
            "kind": "text",
            "text": "{{button}}",
            "role": "title",
            "color": "onBrand",
            "align": "center",
            "maxLines": 1,
            "box": {
              "col": 8.4,
              "row": 7.4,
              "cols": 3.1,
              "rows": 3
            },
            "tall": {
              "col": 2.5,
              "row": 9.9,
              "cols": 7,
              "rows": 1.8
            },
            "enter": {
              "primitive": "slideIn",
              "from": "right",
              "distance": "nudge",
              "order": 4
            }
          }
        ]
      },
      "name": "Newsletter end card"
    }
  }
}

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 : « Newsletter end card ».

Autres animations Appel à l'action