技能广场/Remotion 最佳实践 (Remotion Best Practices)

Remotion 最佳实践 (Remotion Best Practices)

使用 Remotion 创建编程视频的领域特定知识和模式。

视频reactremotion最佳实践

安装命令

作者

remotion-dev

源码

remotion

安装量

58.5K

Remotion 最佳实践 (Remotion Best Practices)

何时使用

每当你处理 Remotion 代码时,请使用此技能以获取特定领域的知识。

字幕

处理字幕或副标题时,请加载 ./rules/subtitles.md 文件以获取更多信息。

如何使用

阅读各条规则文件以获取详细解释和代码示例:

  • rules/3d.md - 在 Remotion 中使用 Three.js 和 React Three Fiber 处理 3D 内容
  • rules/animations.md - Remotion 的基础动画技能
  • rules/assets.md - 向 Remotion 导入图像、视频、音频和字体
  • rules/audio.md - 在 Remotion 中使用音频和声音 - 导入、裁剪、音量、速度、音调
  • rules/calculate-metadata.md - 动态设置合成时长、尺寸和属性
  • rules/can-decode.md - 使用 Mediabunny 检查浏览器是否可以解码视频
  • rules/charts.md - Remotion 的图表和数据可视化模式
  • rules/compositions.md - 定义合成、静态图、文件夹、默认属性和动态元数据
  • 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 添加地图并制作动画