# item.set_transition

> Sets or removes the transition on one edge of a visual item.

Source: https://alexgalhardo.github.io/vukem-video/pt-br/docs/reference/commands/item.set_transition/

Sets a fade or a slide on the in or out edge, 0.5 seconds long unless duration is given; kind null removes the transition. The two transitions together cannot be longer than the item.

## Arguments

| Argument | Type | Required | Description |
| --- | --- | --- | --- |
| `duration` | `string` | no | Length of the transition, at least 1 frame; default 0.5s. |
| `edge` | `in`, `out` | yes | The edge: in or out. |
| `item_id` | `string` | yes | A clip, text, caption or shape item. |
| `kind` | `fade`, `slide_left`, `slide_right`, `slide_up`, `slide_down`, `null` | yes | fade, slide_left, slide_right, slide_up, slide_down, or null to remove. |

## Example

As one operation of an `edit` batch (the `edit` tool of MCP, `vukem-video edit --ops`, or `POST /api/v1/projects/{id}/edit`):

```json
{
  "op": "item.set_transition",
  "args": {
    "edge": "in",
    "item_id": "itm_m1n2p3q4r5",
    "kind": "fade"
  }
}
```

## Errors

[`E_VALIDATION`](/docs/reference/error-codes#e_validation), [`E_INVALID_TIME`](/docs/reference/error-codes#e_invalid_time), [`E_NOT_FOUND`](/docs/reference/error-codes#e_not_found), [`E_TYPE_MISMATCH`](/docs/reference/error-codes#e_type_mismatch), [`E_INVALID_STATE`](/docs/reference/error-codes#e_invalid_state)

## Scope and phase

Scope `edit`, phase `alpha`. Run `vukem-video command:help item.set_transition` for the same description from the binary.
