Archived docs Get your API Key
Get started
Tutorials
Guides
Reference
Help for AI agents
🤖 AI Assistant

Component shape/html

Component ID: shape/html

Renders up to 10 positioned boxes containing arbitrary HTML or SVG content, each with independent keyframe animation. Use for custom vector graphics, SVG icons, inline HTML elements, or any content that needs precise positioning and animation. Each HTML box supports font styling and flexbox alignment.

SectionAnimated geometric shapes, rectangles, polygons, cutouts, and custom HTML/SVG
AnimationEach HTML box has its own 'animate' block for position, size, rotation, and opacity keyframes.
Intro duration0 s

Preview

Element schema

Minimal shape of a shape/html component element:

{
    "type": "component",
    "component": "shape/html",
    "settings": {}
}

See the full component element reference for shared properties like duration, start, x, y, etc.

Settings

The settings property accepts the following groups. Each group contains CSS-like properties; see component CSS properties for the full list of supported keys.

html1

First HTML box. Use html2-html10 for additional boxes.

PropertyTypeDefaultDescription
leftstringLeft position.
topstringTop position.
widthstringWidth.
heightstringHeight.
htmlstringHTML or SVG content string.
font-sizestringFont size.
colorstringText color.
text-alignstringText alignment.
align-itemsstringFlexbox vertical alignment.
font-familystringGoogle Font name.
animateobjectKeyframe animation for position, size, rotation.