Tutoriais
Primeiros passos
1. Estrutura mínima
Comece com esta forma:
{
"meta": {
"version": "2.0.0",
"width": 1920,
"height": 1080,
"fps": 30,
"background": "#0b1020"
},
"tracks": [
{
"id": "main",
"clips": []
}
]
}Obrigatório:
meta.versionmeta.widthmeta.heightmeta.fpstracks
2. Adicione seu primeiro clip visível
{
"type": "text",
"start": 0,
"duration": 3,
"text": "Hello, world",
"transform": {
"x": "50%",
"y": "50%"
},
"style": {
"fontSize": 72,
"fontWeight": 700,
"fill": "#ffffff",
"textAlign": "center"
}
}Insira esse clip em tracks[0].clips.
3. Primeiro exemplo completo
{
"meta": {
"version": "2.0.0",
"title": "My First Video",
"width": 1920,
"height": 1080,
"fps": 30,
"background": "#0b1020"
},
"tracks": [
{
"id": "main",
"clips": [
{
"type": "text",
"start": 0,
"duration": 3,
"text": "Hello, world",
"transform": {
"x": "50%",
"y": "50%"
},
"style": {
"fontSize": 72,
"fontWeight": 700,
"fill": "#ffffff",
"textAlign": "center"
},
"animations": [
{
"type": "fadeIn",
"duration": 0.5
}
]
}
]
}
]
}4. O que fazer em seguida
- Quer estrutura e regras: leia Conceitos básicos
- Quer um exemplo só de movimento de texto: leia Criar animação de texto
- Quer uma referência de campos: leia Estrutura JSON e regras de campos