---
title: "Animate a single input's position and/or size."
method: POST
path: "/api/flows/{flow_id}/blocks/{block_id}/animate"
tags: ["flows"]
---

# Animate a single input's position and/or size.

`POST /api/flows/{flow_id}/blocks/{block_id}/animate`

Smoothly animates the specified input from its current position/size
to the target values over the specified duration.

## Path parameters

- `flow_id` string, required
- `block_id` string, required

## Request body

- AnimateInputRequest — Request to animate a single input's position/size.
  - `duration_ms` integer — Animation duration in milliseconds
  - `height` integer, nullable — Target height (optional)
  - `input` integer, required — Input index (0-based)
  - `width` integer, nullable — Target width (optional)
  - `xpos` integer, nullable — Target X position (optional, keeps current if not specified)
  - `ypos` integer, nullable — Target Y position (optional)

## Response `200`

Animation started successfully

## Other responses

- `400` — Invalid parameters
- `404` — Flow not running or block not found

---

[API](https://skmtc.dev/eyevinn/apis/strom-api.md) · [All operations](https://skmtc.dev/eyevinn/apis/strom-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eyevinn/strom-api/revisions/0df7ca64263f/schema)
