何時使用
當你在處理 Remotion 程式碼時,請務必使用此技能以獲得領域特定的知識。
字幕
處理字幕或對白時,請載入 ./rules/subtitles.md 檔案以取得更多資訊。
如何使用
閱讀個別的規則檔案以獲得詳細說明和程式碼範例:
- rules/3d.md - 使用 Three.js 與 React Three Fiber 在 Remotion 中建立 3D 內容
- rules/animations.md - Remotion 的基礎動畫技巧
- rules/assets.md - 將圖片、影片、音訊和字型匯入 Remotion
- rules/audio.md - 在 Remotion 中使用音訊與聲音 — 匯入、修剪、音量、速度、音調
- rules/calculate-metadata.md - 動態設定合成片的持續時間、尺寸與 props
- rules/can-decode.md - 使用 Mediabunny 檢查瀏覽器是否能解碼影片
- rules/charts.md - Remotion 的圖表與資料視覺化模式(長條圖、圓餅圖、折線圖、股票圖)
- rules/compositions.md - 定義合成片、靜態圖、資料夾、預設 props 與動態元資料
- rules/extract-frames.md - 使用 Mediabunny 從影片中提取特定時間點的影格
- rules/fonts.md - 在 Remotion 中載入 Google 字型與本地字型
- rules/get-audio-duration.md - 使用 Mediabunny 取得音訊檔案的持續時間(秒)
- rules/get-video-dimensions.md - 使用 Mediabunny 取得影片檔案的寬度與高度
- rules/get-video-duration.md - 使用 Mediabunny 取得影片檔案的持續時間(秒)
- rules/gifs.md - 在 Remotion 時間軸上同步顯示 GIF
- rules/images.md - 使用 Img 元件在 Remotion 中嵌入圖片
- rules/light-leaks.md - 使用 @remotion/light-leaks 製作漏光疊加效果
- rules/lottie.md - 在 Remotion 中嵌入 Lottie 動畫
- rules/measuring-dom-nodes.md - 在 Remotion 中測量 DOM 元素尺寸
- rules/measuring-text.md - 測量文字尺寸、將文字調整至容器內、檢查溢出
- rules/sequencing.md - Remotion 的序列化模式 — 延遲、修剪、限制項目持續時間
- rules/tailwind.md - 在 Remotion 中使用 TailwindCSS
- rules/text-animations.md - Remotion 的排版與文字動畫模式
- rules/timing.md - Remotion 的插值曲線 — 線性、緩動、彈簧動畫
- rules/transitions.md - Remotion 的場景轉場模式
- rules/transparent-videos.md - 輸出帶有透明背景的影片
- rules/trimming.md - Remotion 的修剪模式 — 剪掉動畫的開頭或結尾
- rules/videos.md - 在 Remotion 中嵌入影片 — 修剪、音量、速度、循環、音調
- rules/parameters.md - 透過 Zod schema 讓影片可參數化
- rules/maps.md - 使用 Mapbox 加入地圖並製作動畫