Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
<!DOCTYPE html>
<html>
<head>
<style>body { margin: 0; background: #000; width: 1920px; height: 1080px; } canvas { display: block; }</style>
</head>
<body>
<div id="root" data-composition-id="raf-ball" data-width="1920" data-height="1080" data-start="0" data-duration="5" data-no-timeline>
<canvas id="c" width="1920" height="1080" class="clip" data-start="0" data-duration="5"></canvas>
</div>
<script>
const ctx = document.getElementById('c').getContext('2d');
function draw(t) {
ctx.fillStyle = '#000'; ctx.fillRect(0, 0, 1920, 1080);
const x = 960 + Math.sin(t / 1000 * Math.PI) * 700;
ctx.fillStyle = '#f87171';
ctx.beginPath(); ctx.arc(x, 540, 80, 0, Math.PI * 2); ctx.fill();
ctx.fillStyle = '#9ca3af'; ctx.font = '32px system-ui, sans-serif';
ctx.fillText(`t = ${t.toFixed(0)} ms`, 40, 60);
requestAnimationFrame(draw);
}
requestAnimationFrame(draw);
window.__timelines = window.__timelines || {};
</script>
</body>
</html>