HTML offset positioning image template

Professionally built templates to get you started.

HTML offset positioning
{
"timeline": {
"tracks": [
{
"clips": [
{
"asset": {
"type": "html",
"html": "<p>MAIN HEADING</p>",
"css": "p { font-family: \"Montserrat ExtraBold\"; color: #25d3d0; font-size: 34px; text-align: left; }",
"width": 600,
"height": 100
},
"start": 0,
"length": 1,
"position": "topLeft",
"offset": {
"x": 0.1,
"y": -0.07
}
},
{
"asset": {
"type": "html",
"html": "<p>A sub heading</p>",
"css": "p { font-family: \"Work Sans Light\"; color: #ffffff; font-size: 28px; text-align: left; }",
"width": 600,
"height": 100
},
"start": 0,
"length": 1,
"position": "bottomLeft",
"offset": {
"x": 0.1,
"y": 0.07
}
}
]
}
]
},
"output": {
"format": "png",
"resolution": "sd"
}
}

Template that positions HTML in the viewport.

New to Shotstack? Sign up to use this template and start automatically generating videos.

SIGN UP

How to use this template

Use this template as the starting point for your automated image editing project. Customise it to meet the needs of your application or workflow.

Postman

Test and modify this template directly in Postman by forking our public Collection.

Application

Customise the template and integrate it in to your application or workflow using the programming language of your choice.

SDK

Use this template as the starting point for integration with our SDKs. Port the JSON to PHP, Node or Ruby and integrate in to your code base.

Experience Shotstack for yourself, with no risk, and generate your first video in 5 minutes.