Communitygithub.com

delphinereverse794/remotion-transitions

使用外掛在 Remotion 中建立自訂場景轉場,包含動畫數學、時間模式與即用範例。

remotion-transitions 是什麼?

此技能讓開發者能透過一個外掛框架,在 Remotion(基於 React 的影片製作函式庫)中建立自訂場景轉場。它提供了標準動畫數學(如緩動函數)、可調整的時間模式,以及可直接用於影片專案的即用範例。支援 Remotion 所有版本,並與現有 React 元件無縫整合。使用者無需從頭撰寫複雜的轉場邏輯,只需安裝外掛、匯入範本,並自訂參數即可。此技能特別適合影片編輯、動態圖形與前端開發者使用,能大幅簡化轉場動畫的實作流程。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add delphinereverse794/remotion-transitions

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

remotion-transitions 是做什麼的?

使用外掛在 Remotion 中建立自訂場景轉場,包含動畫數學、時間模式與即用範例。

功能特色

  • 動畫數學:內建常用緩動函數(如 ease-in、ease-out、彈性緩動等)。
  • 時間模式:支援延遲、持續時間與時間軸微調。
  • 即用範例:提供多種現成轉場,如淡入淡出、滑動、縮放與自訂形狀。
  • 外掛架構:可輕鬆擴充,無需修改核心 Remotion 設定。

安裝

使用 npm 或 yarn 安裝:

npm install delphinereverse794/remotion-transitions
# 或
yarn add delphinereverse794/remotion-transitions

基本使用

以下範例展示如何在 Remotion 元件中套用轉場:

import { useTransition, FadeTransition } from 'delphinereverse794/remotion-transitions';

export const MyScene: React.FC = () => {
  const transition = useTransition({
    duration: 30,
    easing: 'easeInOut',
    type: 'fade',
  });

  return (
    <div style={{ opacity: transition }}>
      <h1>Hello, Remotion!</h1>
    </div>
  );
};

進階配置

您可以自訂時間模式與動畫參數:

import { CustomTransition } from 'delphinereverse794/remotion-transitions';

const slideTransition = CustomTransition({
  duration: 45,
  delay: 10,
  direction: 'left',
  easing: 'bounce',
});

支援平台

  • Remotion 3.0 及以上版本
  • 任何支援 React 的現代瀏覽器

授權條款

請參閱專案中的 LICENSE 檔案。

相關技能