Build a 3D card carousel animation
make_carouselAdd an animated 3D card track inside one design: cards (image, title, subtitle) on a track that steps to the next card every step seconds; the centred card sits flat and its neighbours swing back in 3D (tilt), smaller and shaded. Adds one new group and returns its group_id, track_id and card_ids. Saved as a new revision that undo reverts; if any part is refused, nothing changes. Use it for a product or template showcase in motion; for an Instagram carousel post make one page per slide with duplicate instead.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"page_id": "<page_id>",
"items": "<items>",
"center_x": "<center_x>",
"y": "<y>",
"intent": "<intent>"
},
"name": "make_carousel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| y | Yes | Top of the cards. | |
| gap | No | Space between a neighbour's near edge and the centre card's edge; negative tucks it behind (default -2% of the card width, like a hinged panel). | |
| name | No | The group's name (default "Carousel"). | |
| step | No | Seconds each card stays centred before the next (default 0.5). | |
| tilt | No | Degrees the neighbours swing back about their hinge (default 58). | |
| color | No | Title colour (default near-black). | |
| enter | No | Slide the whole carousel up into place just before `start` (default true). | |
| items | Yes | The cards, in order; the first is centred at `start`. | |
| start | No | Seconds: when the first card is centred. | |
| intent | Yes | One short sentence: what you change and why. Kept in the design history. | |
| radius | No | Corner radius of the card (default 6% of its width). | |
| page_id | Yes | The page to work on, as returned by create_design. | |
| art_fill | No | Fill of the art panel behind each image (default #F4F4F4). | |
| center_x | Yes | Centre of the focused card, px in the parent. | |
| card_fill | No | Card fill (default white). | |
| parent_id | No | ||
| card_width | No | Card width, px (default 720). | |
| side_scale | No | Neighbours' size relative to the centre card (default 1). | |
| side_shade | No | How much the neighbours fade toward the card colour, 0-1 (default 0.12). | |
| card_height | No | Card height, px (default 940). | |
| font_family | No | A family from list_fonts for the titles and subtitles. | |
| move_duration | No | Seconds the move between cards takes (default 0.35, at most `step`). | |
| subtitle_color | No | Subtitle colour (default #8A8A8A). |