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 « téléchargez l'app »

motion design

Le contour d'un téléphone se dessine, un éclair apparaît dedans et les deux boutons de store montent sous le titre.

Idéal pour : Envoyer les spectateurs télécharger l'app.

Réglages

Police
Thème
Taille
Humeur

L'utiliser dans un film

Ce que vous pouvez changer :titlesupportstores
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": "Get the app",
  "narration": "Write the sentence the voice says over this scene; its length is the scene's.",
  "data": {
    "motion": {
      "spec": {
        "version": 1,
        "name": "Get the app",
        "intent": "send the viewer to the app stores",
        "camera": "pushIn",
        "exit": "mirror",
        "params": [
          {
            "name": "title",
            "type": "text",
            "label": "Title",
            "default": "Your projects, in your pocket",
            "maxLength": 32
          },
          {
            "name": "support",
            "type": "text",
            "label": "Support line",
            "default": "Free on iPhone and Android",
            "maxLength": 32
          },
          {
            "name": "stores",
            "type": "list",
            "items": "text",
            "label": "Buttons",
            "min": 2,
            "max": 2,
            "default": [
              "iPhone",
              "Android"
            ]
          }
        ],
        "layers": [
          {
            "id": "phone",
            "kind": "shape",
            "shape": "rect",
            "fill": "none",
            "stroke": "c1",
            "strokeWidth": "bold",
            "radius": "lg",
            "box": {
              "col": 0.4,
              "row": 0.2,
              "cols": 3.8,
              "rows": 11.6
            },
            "tall": {
              "col": 3.4,
              "row": 0.1,
              "cols": 5.2,
              "rows": 4.8
            },
            "enter": {
              "primitive": "drawOn",
              "ease": "power4Out",
              "duration": "slow"
            }
          },
          {
            "id": "glyph",
            "kind": "icon",
            "icon": "bolt",
            "color": "c2",
            "box": {
              "col": 1.3,
              "row": 4.2,
              "cols": 2,
              "rows": 3.6
            },
            "tall": {
              "col": 4.8,
              "row": 1.4,
              "cols": 2.4,
              "rows": 2.2
            },
            "enter": {
              "primitive": "scaleIn",
              "order": 1
            }
          },
          {
            "id": "title",
            "kind": "text",
            "text": "{{title}}",
            "role": "display",
            "align": "start",
            "maxLines": 3,
            "box": {
              "col": 5,
              "row": 0.2,
              "cols": 7,
              "rows": 5.6
            },
            "tall": {
              "col": 0,
              "row": 5.3,
              "cols": 12,
              "rows": 3
            },
            "enter": {
              "primitive": "fadeUp",
              "order": 1
            }
          },
          {
            "id": "support",
            "kind": "text",
            "text": "{{support}}",
            "role": "headline",
            "color": "sub",
            "align": "start",
            "maxLines": 2,
            "box": {
              "col": 5,
              "row": 6.1,
              "cols": 7,
              "rows": 2.2
            },
            "tall": {
              "col": 0,
              "row": 8.5,
              "cols": 12,
              "rows": 1.1
            },
            "enter": {
              "primitive": "fadeUp",
              "order": 2
            }
          },
          {
            "id": "badge",
            "kind": "shape",
            "shape": "rect",
            "fill": "c1",
            "radius": "pill",
            "elevation": 2,
            "repeat": {
              "param": "stores",
              "flow": "row",
              "gap": "md"
            },
            "box": {
              "col": 5,
              "row": 8.8,
              "cols": 7,
              "rows": 2.6
            },
            "tall": {
              "col": 2,
              "row": 9.9,
              "cols": 8,
              "rows": 2
            },
            "enter": {
              "primitive": "fadeUp",
              "order": 3
            }
          },
          {
            "id": "store",
            "kind": "text",
            "text": "{{item}}",
            "role": "title",
            "color": "onBrand",
            "align": "center",
            "maxLines": 1,
            "repeat": {
              "param": "stores",
              "flow": "row",
              "gap": "md"
            },
            "box": {
              "col": 5,
              "row": 8.8,
              "cols": 7,
              "rows": 2.6
            },
            "tall": {
              "col": 2,
              "row": 9.9,
              "cols": 8,
              "rows": 2
            },
            "enter": {
              "primitive": "fadeUp",
              "order": 3
            }
          }
        ]
      },
      "name": "Get the app"
    }
  }
}

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 : « Get the app ».

Autres animations Appel à l'action