Documentação

Icon Element

Render Iconify icons in a video scene

Icon Element

Use icon to render an Iconify icon by id.

Shape

interface IconClip extends BaseClip {
  type: "icon";
  icon: string;
  color?: string;
}

Fields

  • icon: Iconify id, for example mdi:movie-open-play-outline
  • color: icon color; falls back to style.fill or white

Example

{
  "type": "icon",
  "start": 0,
  "duration": 3,
  "icon": "mdi:movie-open-play-outline",
  "color": "#a3e635",
  "transform": {
    "x": "50%",
    "y": "50%",
    "width": 160,
    "height": 160
  },
  "transition": {
    "type": "spin",
    "duration": 0.4,
    "rotation": 22
  }
}