{
"merge": [
{
"find": "FONT",
"replace": "https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/fonts/IndieFlower-Regular.ttf"
},
{
"find": "FONT_NAME",
"replace": "Indie Flower"
}
],
"timeline": {
"soundtrack": {
"src": "https://s3-ap-southeast-2.amazonaws.com/shotstack-assets/private/epic.mp3"
},
"fonts": [
{
"src": "{{FONT}}"
},
{
"src": "https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/fonts/LilitaOne-Regular.ttf"
}
],
"background": "#000000",
"tracks": [
{
"clips": [
{
"asset": {
"type": "html",
"html": "<p>Shotstack enables businesses to massively <b>scale</b> their video production capabilities using <b>code</b>.</p>",
"css": "p { font-family: \"Lilita One\"; color: #ffffff; font-size: 34px; text-align: left; } b { color: #25d3d0 }",
"width": 600,
"height": 400,
"background": "transparent"
},
"start": 1.2,
"length": 5,
"transition": {
"in": "fade",
"out": "fade"
},
"position": "left",
"offset": {
"x": 0.2
}
},
{
"asset": {
"type": "html",
"html": "<p>This new HTML asset type supports <b>highlighted text</b> and <b>wrapping</b> to create flexible and stylish layouts.</p>",
"css": "p { font-family: \"{{FONT_NAME}}\"; color: #ffffff; font-size: 34px; text-align: left; } b { color: #25d3d0 }",
"width": 600,
"height": 400
},
"start": 6.2,
"length": 5,
"transition": {
"in": "fade",
"out": "fade"
},
"position": "left",
"offset": {
"x": 0.04
}
}
]
},
{
"clips": [
{
"asset": {
"type": "video",
"src": "https://shotstack-pubic-files.s3-ap-southeast-2.amazonaws.com/tutorials/hello-world/earth.mp4",
"trim": 6
},
"start": 0,
"length": 6
},
{
"asset": {
"type": "video",
"src": "https://s3-ap-southeast-2.amazonaws.com/shotstack-assets/footage/cat.hd.mp4",
"trim": 5
},
"start": 6,
"length": 6
}
]
}
]
},
"output": {
"format": "mp4",
"resolution": "hd"
}
}
Custom HTML fonts using merge fields to swap fonts.
New to Shotstack? Sign up to use this template and start automatically generating videos.
Test and modify this template directly in Postman by forking our public Collection.
Customize the template and integrate it in to your application or workflow using the programming language of your choice.
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.