Remotion

calesthio/OpenMontage/.agents/skills/remotion

作者 calesthio9327439db69021ab4b0e2776729bf3b58fdb5a87无许可证65K 个星标收录于 2026年10月9日更新于 2026年10月9日仓库5天前更新

Toolkit-specific Remotion patterns — custom transitions, shared components, and project conventions. For core Remotion framework knowledge (hooks, animations, rendering, etc.), see the `remotion-official` skill.

AI 生成的概览

面向 Remotion 的工具包专用模式参考:共享组件、自定义转场与项目约定。

功能
该技能记录用于制作视频的工具包专用 Remotion 模式,涵盖 AnimatedBackground、SlideTransition、Label 等可复用组件,以及包含 glitch、lightLeak、clockWipe、checkerboard 的自定义转场库。它列出转场参数、时长建议、基于帧的动画最佳实践和项目时间约定。它还指向一个参考文件以查阅详细 API 文档。
适用场景
在编写或修改依赖该工具包共享组件或自定义场景转场的 Remotion 视频合成时使用。也适合查询转场时长、时间约定和渲染最佳实践。
运行要求
需要 Remotion 项目,并包含 @remotion/transitions 包以及该工具包的 lib/components 和 lib/transitions 目录。它不附带脚本,仅为说明文档加一份参考文件,并提示 Remotion 商业使用可能需要许可证。

Remotion — Toolkit Extensions

Core Remotion knowledge lives in .claude/skills/remotion-official/ (synced from the official remotion-dev/skills repo). This file covers toolkit-specific patterns only.

Shared Components

Reusable video components in lib/components/. Import in templates via:

tsx
import { AnimatedBackground, SlideTransition, Label } from '../../../../lib/components';
ComponentPurpose
AnimatedBackgroundFloating shapes background (variants: subtle, tech, warm, dark)
SlideTransitionScene transitions (fade, zoom, slide-up, blur-fade)
LabelFloating label badge with optional JIRA reference
VignetteCinematic edge darkening overlay
LogoWatermarkCorner logo branding
SplitScreenSide-by-side video comparison
NarratorPiPPicture-in-picture presenter overlay
Envelope3D envelope with opening flap animation
PointingHandAnimated hand emoji with slide-in and pulse
MazeDecorationAnimated isometric grid decoration for corners

Custom Transitions

The toolkit includes a transitions library at lib/transitions/ for scene-to-scene effects beyond the official @remotion/transitions package.

Using TransitionSeries

tsx
import { TransitionSeries, linearTiming } from '@remotion/transitions';// Import custom transitions from lib (adjust path based on your project location)import { glitch, lightLeak, clockWipe, checkerboard } from '../../../../lib/transitions';// Or import from @remotion/transitions for official onesimport { slide, fade } from '@remotion/transitions/slide';
<TransitionSeries>  <TransitionSeries.Sequence durationInFrames={90}>    <TitleSlide />  </TransitionSeries.Sequence>  <TransitionSeries.Transition    presentation={glitch({ intensity: 0.8 })}    timing={linearTiming({ durationInFrames: 30 })}  />  <TransitionSeries.Sequence durationInFrames={120}>    <ContentSlide />  </TransitionSeries.Sequence></TransitionSeries>

Available Custom Transitions

TransitionOptionsBest For
glitch()intensity, slices, rgbShiftTech demos, edgy reveals, cyberpunk
rgbSplit()direction, displacementModern tech, energetic transitions
zoomBlur()direction, blurAmountCTAs, high-energy moments, impact
lightLeak()temperature, directionCelebrations, film aesthetic, warm moments
clockWipe()startAngle, direction, segmentsTime-related content, playful reveals
pixelate()maxBlockSize, gridSize, scanlines, glitchArtifacts, randomnessRetro/gaming, digital transformations
checkerboard()gridSize, pattern, stagger, squareAnimationPlayful reveals, structured transitions

Checkerboard patterns: sequential, random, diagonal, alternating, spiral, rows, columns, center-out, corners-in

Transition Examples

tsx
// Tech/cyberpunk feelglitch({ intensity: 0.8, slices: 8, rgbShift: true })
// Warm celebrationlightLeak({ temperature: 'warm', direction: 'right' })
// High energy zoomzoomBlur({ direction: 'in', blurAmount: 20 })
// Chromatic aberrationrgbSplit({ direction: 'diagonal', displacement: 30 })
// Clock sweep revealclockWipe({ direction: 'clockwise', startAngle: 0 })
// Retro pixelationpixelate({ maxBlockSize: 50, glitchArtifacts: true })
// Checkerboard patternscheckerboard({ pattern: 'diagonal', gridSize: 8 })checkerboard({ pattern: 'spiral', gridSize: 10 })checkerboard({ pattern: 'center-out', squareAnimation: 'scale' })

Transition Duration Guidelines

TypeFramesNotes
Quick cut15-20Fast, punchy
Standard30-45Most common
Dramatic50-60Slow reveals
Glitch effects20-30Should feel sudden
Light leak45-60Needs time to sweep

Preview Transitions

Run the showcase gallery to see all transitions:

bash
cd showcase/transitions && npm run studio

Toolkit Best Practices

  1. Frame-based animations only — Avoid CSS transitions/animations; they cause flickering during render
  2. Use fps from useVideoConfig() — Make animations frame-rate independent
  3. Clamp interpolations — Use extrapolateRight: 'clamp' to prevent runaway values
  4. Use OffthreadVideo — Better performance than <Video> for complex compositions
  5. delayRender for async — Always block rendering until data is ready
  6. staticFile for assets — Reference files from public/ folder correctly
  7. All projects use 30fps — Timing: frames = seconds × 30
  8. playbackRate must be constant — For variable/extreme speeds, pre-process with FFmpeg

Project Timing Conventions

Scene TypeDurationNotes
Title3-5s (90-150f)Logo + headline
Overview10-20s3-5 bullet points
Demo10-30sAdjust playbackRate to fit
Stats8-12s3-4 stat cards
Credits5-10sQuick fade

Pacing: ~150 words/minute for voiceover. Voiceover drives timing.

Advanced API

For detailed API documentation on all hooks, components, renderer, Lambda, and Player APIs, see reference.md [blocked].

License Note

Remotion has a special license. Companies may need to obtain a license for commercial use. Check https://remotion.dev/license


Feedback & Contributions

If this skill is missing information or could be improved:

  • Missing a pattern? Describe what you needed
  • Found an error? Let me know what's wrong
  • Want to contribute? I can help you:
    1. Update this skill with improvements
    2. Create a PR to github.com/digitalsamba/claude-code-video-toolkit

Just say "improve this skill" and I'll guide you through updating .claude/skills/remotion/SKILL.md.

来源与署名

来源:calesthio/OpenMontage位于.agents/skills/remotion提交9327439

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架