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

Component shape/cutout

Component ID: shape/cutout

Creates an animated SVG mask that reveals or hides a background image through a cutout shape. The cutout shape (circle, ellipse, polygon, rect) can animate to grow, shrink, or move, revealing the background content beneath. Supports stroke borders around the cutout. Perfect for creative reveal effects, spotlight animations, or masked image transitions.

SectionAnimated geometric shapes, rectangles, polygons, cutouts, and custom HTML/SVG
AnimationCutout shape properties animate from initial to target values (center position, radius, size) with configurable duration and easing.
Intro duration5 s

Preview

Element schema

Minimal shape of a shape/cutout component element:

{
    "type": "component",
    "component": "shape/cutout",
    "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.

background

Background image behind the mask.

PropertyTypeDefaultDescription
background-imagestringBackground image URL.
background-sizestringcoverBackground size.

cutout

The mask cutout shape and animation.

PropertyTypeDefaultDescription
shapestring (enum)ellipseSVG shape type. Values: circle, ellipse, rect, polygon
center-xstringShape center X position (e.g. '50%').
center-ystringShape center Y position.
radius-xstringHorizontal radius (for ellipse).
radius-ystringVertical radius (for ellipse).
radiusstringRadius (for circle).
strokestringStroke color around cutout.
stroke-widthstringStroke width.
animateobjectAnimation targets (e.g. radius-x, radius-y, center-x) + duration, easing.