{
  "schemaVersion": 1,
  "slug": "directional-fade-transition",
  "packageId": "makokara.official.directional-fade-transition",
  "name": "方向与直接淡入淡出",
  "subtitle": "Directional & Direct Fade Transition",
  "summary": "整合原地直接淡入淡出与四向滑入滑出的简洁整行过渡效果，入出场方向、距离、时长与曲线各自独立可调。",
  "version": "1.0.0",
  "revision": "sha256:464dea0ef0a87e44552a2ef90ef54f3023ebe0805f81d74d0c488623ade02c5c",
  "packageVersion": 3,
  "sdkVersion": "2.0.0",
  "shaderProfile": "skia-ganesh-3.119.4-v2",
  "category": "controller",
  "tags": [
    "出入场过渡",
    "淡入淡出",
    "方向滑动",
    "透明安全"
  ],
  "author": {
    "name": "MakoKara Official"
  },
  "license": "MIT",
  "featured": true,
  "featuredOrder": 5,
  "verified": true,
  "verifiedAt": "2026-12-06",
  "transparentSafe": true,
  "requires": [
    "token.affine",
    "token.opacity",
    "line.exit"
  ],
  "exportKinds": [
    "controller"
  ],
  "parameterCount": 8,
  "lineExitDurationUs": 1500000,
  "recommendedFor": [
    "抒情与通用卡拉 OK",
    "简洁字幕模板基底",
    "多效果自由叠加"
  ],
  "media": {
    "coverUrl": "https://mkfx.talium.site/files/directional-fade-transition/cover.webp",
    "previewVideoUrl": "https://mkfx.talium.site/files/directional-fade-transition/preview.webm",
    "transparentPreviewVideoUrl": "https://mkfx.talium.site/files/directional-fade-transition/preview-transparent.webm"
  },
  "archive": {
    "fileName": "directional-fade-transition.mkfx",
    "url": "https://mkfx.talium.site/files/directional-fade-transition/directional-fade-transition.mkfx",
    "sizeBytes": 4188,
    "sha256": "4e59b9c64b732d4b80a6464d116bd4c01afbe4359d1f8855517dba48554f0d51"
  },
  "links": {
    "detailPageUrl": "https://mkfx.talium.site/effects/directional-fade-transition/",
    "detailApiUrl": "https://mkfx.talium.site/api/v1/packages/directional-fade-transition.json",
    "sourceUrl": "https://github.com/Zydr114/MakoKaraGenerator-OfficialMkfxSamples/tree/main/packages/DirectionalFadeTransition",
    "installUri": "makokara://market/install?catalog=https%3A%2F%2Fmkfx.talium.site%2Fapi%2Fv1%2Fcatalog.json&packageId=makokara.official.directional-fade-transition&slug=directional-fade-transition"
  },
  "description": "百搭轻盈的官方整行出入场控制器。默认呈现纯粹的原地直接淡入淡出，随时可独立切换左/右/上/下滑动方向并微调滑动距离、时长与缓动曲线，支持 1.5s 退场副本与注音整体同步。",
  "previewNotes": "预览展示默认原地直接淡入淡出过渡；切换方向参数后即可开启四向滑入滑出。",
  "emitters": [],
  "exports": [
    {
      "id": "directional-fade-transition",
      "kind": "controller",
      "name": "方向与直接淡入淡出",
      "entryType": "DirectionalFadeTransition",
      "bindingKinds": [
        "project",
        "branch",
        "lines",
        "tokens",
        "clips",
        "node"
      ],
      "parameters": [
        "enterDurationUs",
        "enterDirection",
        "enterDistancePx",
        "enterCurve",
        "exitDurationUs",
        "exitDirection",
        "exitDistancePx",
        "exitCurve"
      ],
      "outputs": [
        {
          "id": "fade-transform",
          "kind": "VisualTransform",
          "target": "tokenFamily",
          "requires": []
        },
        {
          "id": "fade-opacity",
          "kind": "StyleModulation",
          "target": "tokenFamily",
          "requires": []
        }
      ]
    }
  ],
  "parameters": [
    {
      "default": 360000,
      "id": "enterDurationUs",
      "label": "入场淡入时长",
      "max": 1500000,
      "min": 0,
      "type": "duration",
      "unit": "us"
    },
    {
      "default": "none",
      "id": "enterDirection",
      "label": "入场方向",
      "type": "enum",
      "values": [
        {
          "label": "原地直接淡入",
          "value": "none"
        },
        {
          "label": "从左滑入",
          "value": "fromLeft"
        },
        {
          "label": "从右滑入",
          "value": "fromRight"
        },
        {
          "label": "从上滑入",
          "value": "fromTop"
        },
        {
          "label": "从下滑入",
          "value": "fromBottom"
        }
      ]
    },
    {
      "default": 32,
      "id": "enterDistancePx",
      "label": "入场滑动距离",
      "max": 240,
      "min": 0,
      "type": "number",
      "unit": "px"
    },
    {
      "default": {
        "easing": "easeOut",
        "kind": "easing"
      },
      "id": "enterCurve",
      "label": "入场缓动曲线",
      "type": "curve"
    },
    {
      "default": 360000,
      "id": "exitDurationUs",
      "label": "出场淡出时长",
      "max": 1500000,
      "min": 0,
      "type": "duration",
      "unit": "us"
    },
    {
      "default": "none",
      "id": "exitDirection",
      "label": "出场方向",
      "type": "enum",
      "values": [
        {
          "label": "原地直接淡出",
          "value": "none"
        },
        {
          "label": "向左滑出",
          "value": "toLeft"
        },
        {
          "label": "向右滑出",
          "value": "toRight"
        },
        {
          "label": "向上滑出",
          "value": "toTop"
        },
        {
          "label": "向下滑出",
          "value": "toBottom"
        }
      ]
    },
    {
      "default": 32,
      "id": "exitDistancePx",
      "label": "出场滑动距离",
      "max": 240,
      "min": 0,
      "type": "number",
      "unit": "px"
    },
    {
      "default": {
        "easing": "easeInOut",
        "kind": "easing"
      },
      "id": "exitCurve",
      "label": "出场缓动曲线",
      "type": "curve"
    }
  ],
  "files": [
    {
      "path": "README.md",
      "role": "asset",
      "sizeBytes": 1013,
      "sha256": "d05278b4da9bf9c440bd1316347f20244b15a4bc9f470235760bff0535ee96e0"
    },
    {
      "path": "src/DirectionalFadeTransition.cs",
      "role": "csharp",
      "sizeBytes": 7766,
      "sha256": "d9ca67e21f0b5d4e1f88adbb6f5746e6023444726a6080893a4129d757bb7948"
    }
  ],
  "readmeMarkdown": "# 方向与直接淡入淡出\n\n面向 MakoKaraGenerator SDK v2 的极简通用整行出入场过渡控制器，将「原地直接淡入淡出」与「四向（上/下/左/右）方向滑入滑出」整合于同一个效果包中。\n\n## 核心特性\n\n- **默认原地直接淡入淡出**：开箱即为干净柔和的纯原地淡入与淡出，零视觉干扰，适配任意风格卡拉 OK 模板。\n- **独立四向滑动切换**：随时可将 `enterDirection` / `exitDirection` 切换为从左/从右/从上/从下滑入或向左/向右/向上/向下滑出，入场与出场各自独立设置距离（默认 `32px`）、时长（默认 `360ms`）与缓动曲线。\n- **退场副本平滑衔接**：内置 `1.5s` `line.exit` 退场副本支持，旧句退场与新句入场互不冲突，退场完成后持续写入零透明杜绝闪回；关联注音随主字整体自然过渡。\n- **零分配且透明安全**：纯仿射与透明度变换，零每帧堆分配，普通与透明通道导出均稳定可靠。\n"
}
