Skip to content

Write HTML. Render video. Built for agents.

2.8 KB
Raw Blame
{
  "$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
  "name": "dart-cursor",
  "type": "hyperframes:component",
  "title": "Dart Cursor",
  "description": "A bold outlined arrowhead that dives in from camera depth, flies nose-first with motion blur along its path, squashes on two clicks, and whips out of frame.",
  "tags": ["cursor", "motion-primitive", "pointer", "click", "motion-blur", "depth"],
  "files": [
    {
      "path": "dart-cursor.html",
      "target": "compositions/components/dart-cursor.html",
      "type": "hyperframes:snippet"
    }
  ],
  "jobs": ["demonstrate"],
  "family": "pointers",
  "profile": "interaction",
  "syncPoints": [
    { "id": "first-click", "phase": "in", "offset": 0.7 },
    { "id": "second-click", "phase": "in", "offset": 1.7 }
  ],
  "variables": [
    {
      "id": "tone",
      "type": "enum",
      "role": "style",
      "label": "Tone",
      "default": "dark",
      "options": [
        { "value": "dark", "label": "Dark body, white outline" },
        { "value": "light", "label": "Light body, dark outline" }
      ]
    },
    {
      "id": "target_x",
      "type": "number",
      "role": "layout",
      "label": "First click X",
      "default": 34,
      "min": 5,
      "max": 95,
      "step": 1,
      "unit": "%"
    },
    {
      "id": "target_y",
      "type": "number",
      "role": "layout",
      "label": "First click Y",
      "default": 58,
      "min": 5,
      "max": 95,
      "step": 1,
      "unit": "%"
    },
    {
      "id": "target2_x",
      "type": "number",
      "role": "layout",
      "label": "Second click X",
      "default": 64,
      "min": 5,
      "max": 95,
      "step": 1,
      "unit": "%"
    },
    {
      "id": "target2_y",
      "type": "number",
      "role": "layout",
      "label": "Second click Y",
      "default": 46,
      "min": 5,
      "max": 95,
      "step": 1,
      "unit": "%"
    },
    {
      "id": "enter_from",
      "type": "enum",
      "role": "timing",
      "label": "Enter from",
      "default": "right",
      "options": [
        { "value": "right", "label": "Right" },
        { "value": "left", "label": "Left" },
        { "value": "top", "label": "Top" },
        { "value": "bottom", "label": "Bottom" }
      ]
    },
    {
      "id": "exit_to",
      "type": "enum",
      "role": "timing",
      "label": "Exit to",
      "default": "right",
      "options": [
        { "value": "right", "label": "Right" },
        { "value": "left", "label": "Left" },
        { "value": "top", "label": "Top" },
        { "value": "bottom", "label": "Bottom" }
      ]
    },
    {
      "id": "blur",
      "type": "number",
      "role": "style",
      "label": "Motion blur",
      "default": 1,
      "min": 0,
      "max": 1.5,
      "step": 0.1
    }
  ]
}