Text block style

Demo:

011 style schema

This is a simplified schema of a 011 style element:

{
    "type": "text",
    "style": "011",
    "text": "",
    "settings": {}
}

Check the full specification of the Style schema in the API documentation.

Settings property for 011

This text style has the following default properties in the settings field:

Object property
Default value
vertical-position
"center"
horizontal-position
"center"
font-size
"4vw"
font-family
"Inter"
font-weight
"400"
text-align
"center"
color
"#FFFFFF"
background-color
"#000000"

Usage examples

Check the following examples of 011:

Example 1

{
    "width": 640,
    "height": 360,
    "quality": "high",
    "draft": false,
    "scenes": [
        {
            "background-color": "#6495ed",
            "elements": [
                {
                    "type": "text",
                    "style": "011",
                    "text": "The hills are alive with the sound of music with songs they have sung for a thousand years",
                    "settings": {
                        "font-size": "6vw",
                        "font-family": "Inter",
                        "font-weight": "700",
                        "text-align": "left"
                    },
                    "width": 450,
                    "x": 50
                }
            ],
            "duration": 5
        }
    ]
}