Communitygithub.com

JantonioFC/skillsbank

Remotion React 마크업 작성을 위한 모범 사례 가이드

skillsbank란 무엇인가요?

이 스킬은 Remotion 프레임워크에서 React 마크업을 올바르게 작성하는 방법을 안내합니다. 개발자는 `useCurrentFrame()`과 `interpolate()`를 사용하여 속성을 애니메이션화하고, `Easing.bezier()`와 `Easing.spring()`으로 타이밍을 커스터마이징할 수 있습니다. 인터랙티브 요소는 `Interactive.Div`를 사용하고, `scale`, `translate`, `rotate` 같은 CSS 속성을 `transform` 문자열보다 선호해야 합니다. CSS 트랜지션이나 애니메이션, Tailwind 애니메이션 클래스는 올바르게 렌더링되지 않으므로 사용이 금지됩니다. 또한 `public/` 폴더에 에셋을 배치하고 `staticFile()`로 참조하며, 시차를 두거나 지속 시간을 제한할 때는 `<Sequence>` 컴포넌트를 활용합니다. 이 스킬은 Remotion 개발을 위한 핵심 규칙과 비주얼 효과, 음성 해설, 트리밍, 전환, 3D 콘텐츠, 사운드 효과 등 다양한 심화 주제를 포괄합니다.

지원 대상✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/JantonioFC/skillsbank/tree/HEAD/skills/remotion-markup

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

미리보기

스킬 README에서

문서

이 문서는 Remotion React 마크업 작성 지침입니다. 해당하지 않는 경우, 대신 Remotion 모범 사례를 참고하세요.

일반 규칙

useCurrentFrame()와 interpolate()를 사용하여 속성을 애니메이션화하세요.

spring()보다는 interpolate()를 사용하세요.

Easing.bezier()를 사용하여 튀거나 오버슈팅하는 움직임을 포함한 타이밍을 커스터마이즈하세요. 스프링 애니메이션이 필요하면 Easing.spring()을 사용하세요.

Studio에서 상호작용이 가능하게 만드는 것이 합리적인 HTML 요소는 Interactive를 사용하세요: <div> → <Interactive.Div>. Interactive, Solid, Sequence에는 name="Hero title"과 같이 설명적인 name prop을 설정하세요.

import { useCurrentFrame, Easing, interpolate, Interactive } from "remotion";

export const FadeIn = () => {
  const frame = useCurrentFrame();

  return (
    <Interactive.Div
      name="Title"
      style={{
        opacity: interpolate(frame, [0, 60], [0, 1], {
          extrapolateRight: "clamp",
          extrapolateLeft: "clamp",
          easing: Easing.bezier(0.16, 1, 0.3, 1),
        }),
      }}
    >
      Hello World!
    </Interactive.Div>
  );
};

interpolate() 호출은 style prop 안에 인라인으로 유지하세요. transform보다 scale, translate, rotate CSS 속성을 선호하세요.

// 👍 인라인 편집 가능한 키프레임과 변환 단축 속성
style={{
  scale: interpolate(frame, [0, 100], [0, 1]),
  translate: interpolate(frame, [0, 100], ["0px 0px", "100px 100px"]),
  rotate: interpolate(frame, [0, 100], ["20deg", "90deg"]),
}}

// 👎 숨겨진 값과 transform 문자열은 Studio에서 편집하기 어려워짐
const scale = interpolate(frame, [0, 100], [0, 1]);

style={{
  transform: `scale(${scale})`,
}}

CSS 전환(transition) 또는 애니메이션은 금지입니다. 올바르게 렌더링되지 않습니다. Tailwind 애니메이션 클래스 이름도 금지입니다. 올바르게 렌더링되지 않습니다.

에셋은 프로젝트 루트의 public/ 폴더에 배치하세요.

public/ 폴더의 파일을 참조하려면 staticFile()을 사용하세요.

비디오와 오디오는 @remotion/media를 사용하여 추가하세요. 이미지는 <Img> 컴포넌트를 사용하여 추가하세요. public/ 안의 파일에는 staticFile()을 사용하거나, 원격 URL을 직접 전달하세요:

import { Audio, Video } from "@remotion/media";
import { staticFile } from "remotion";

export const MyComposition = () => {
  return (
    <>
      <Video src={staticFile("video.mp4")} style={{ opacity: 0.5 }} />
      <Audio src={staticFile("audio.mp3")} />
      <Img src={staticFile("logo.png")} style={{ width: 100, height: 100 }} />
      <Video src="https://remotion.media/video.mp4" />
    </>
  );
};

콘텐츠를 지연시키려면 <Sequence>로 감싸고 from을 사용하세요. 요소의 지속 시간을 제한하려면 <Sequence>의 durationInFrames를 사용하세요. <Sequence>는 기본적으로 씬을 덮는 절대 채움(absolute fill)입니다. 인라인 콘텐츠의 경우 layout="none"을 사용하세요.

const Main = () => {
  const {fps} = useVideoConfig();

  return (
    <AbsoluteFill>
      <Sequence name="Background">
        <Background />
      </Sequence>
      <Sequence name="Title" from={30} durationInFrames={60} layout="none">
        <Title />
      </Sequence>
      <Sequence name="Subtitle" from={60} durationInFrames={60} layout="none">
        <Subtitle />
      </Sequence>
    </AbsoluteFill>
  );
}

export const Title = () => {
  const frame = useCurrentFrame();

  return (
    <div
      style={{
        opacity: interpolate(frame, [0, 60], [0, 1], {
          extrapolateRight: "clamp",
          extrapolateLeft: "clamp",
          easing: Easing.bezier(0.16, 1, 0.3, 1),
        }),
      }}
    >
      Title
    </div>
  );
};

export const Subtitle = () => {
  return <div>Subtitle</div>;
};

지도

간단한 정적 지도, Mapbox 지도, MapLibre 지도 중 선택하려면 map.md를 참고하세요.

음성 해설( Voiceover )

ElevenLabs TTS를 사용하여 Remotion 구성에 AI 생성 음성 해설을 추가하는 방법은 voiceover.md를 참고하세요.

트리밍

애니메이션의 시작이나 끝을 자르는 트리밍 패턴은 trimming.md를 참고하세요.

비디오 삽입

비디오 삽입(트리밍, 볼륨, 속도, 반복, 피치)에 대한 고급 지식은 embedding-videos.md를 참고하세요.

오디오 삽입

트리밍, 볼륨, 속도, 피치와 같은 고급 오디오 기능은 audio.md를 참고하세요.

전환(Transition)

씬 전환 패턴은 transitions.md를 참고하세요.

시각 및 픽셀 효과

시각 효과를 만들 때는 다음 순서를 선호합니다: 1. 일반적인 Remotion/HTML/CSS/SVG/filter/blend/mask 애니메이션, 2. <HtmlInCanvas>를 통해 렌더링된 HTML을 포함한 effects.md에 나열된 효과, 3. 사용자가 재사용 가능하거나 프로젝트 특화 효과를 요청할 경우 effects.md를 통한 커스텀 createEffect(), 4. 어떤 효과도 적합하지 않은 경우에만 html-in-canvas.md를 통한 커스텀 <HtmlInCanvas onPaint>.

라이트 릭 오버레이에 대해서는 light-leaks.md를 참고하세요. 문서: https://www.remotion.dev/docs/effects

사용 가능한 효과: brightness(), contrast(), colorKey(), duotone(), grayscale(), hue(), invert(), saturation(), tint(), linearGradient(), linearGradientTint(), thermalVision(), blur(), linearProgressiveBlur(), radialProgressiveBlur(), zoomBlur(), dropShadow(), glow(), lightTrail(), evolve(), venetianBlinds(), mirror(), scale(), uvTranslate(), xyTranslate(), barrelDistortion(), chromaticAberration(), fisheye(), cornerPin(), wave(), burlap(), emboss(), dotGrid(), halftone(), noise(), noiseDisplacement(), paper(), roughenEdges(), pattern(), pixelate(), pixelDissolve(), scanlines(), speckle(), shine(), shrinkwrap(), vignette(), contourLines(), checkerboard(), halftoneLinearGradient(), gridlines(), whiteNoise(), tvSignalOff(), lines(), rings(), waves(), zigzag(), lightLeak(), starburst().

3D 콘텐츠

Three.js와 React Three Fiber를 사용한 Remotion의 3D 콘텐츠는 3d.md를 참고하세요.

음향 효과

음향 효과가 필요할 경우, ./sfx.md 파일을 참고하여 자세한 정보를 확인하세요.

오디오 시각화

오디오를 시각화(스펙트럼 막대, 파형, 베이스 반응 효과)해야 할 경우, ./audio-visualization.md 파일을 참고하여 자세한 정보를 확인하세요.

자막

자막 또는 캡션을 다룰 때는 Remotion Captions 기술을 참고하여 자세한 정보를 확인하세요.

Google Fonts

Remotion에서 폰트를 불러오는 권장 방법입니다. Google Fonts를 불러오는 방법은 google-fonts.md를 참고하세요.

로컬 폰트

로컬 폰트를 불러오는 방법은 local-fonts.md를 참고하세요.

GIF

Remotion 타임라인과 동기화된 GIF를 표시하는 방법은 gifs.md를 참고하세요.

고급 이미지

이미지 크기 및 위치 조정, 동적 이미지 경로, 이미지 크기 가져오기는 images.md를 참고하세요.

Lottie 애니메이션

Remotion에 Lottie 애니메이션을 삽입하는 방법은 lottie.md를 참고하세요.

고급 타이밍

interpolate와 베지어 이징, 스프링을 사용한 고급 타이밍은 timing.md를 참고하세요.

매개변수화된 비디오

Zod 스키마를 추가하여 컴포지션을 매개변수화하는 방법은 parameters.md를 참고하세요.

DOM 노드 측정

Remotion에서 DOM 요소 크기를 측정하는 방법은 measuring-dom-nodes.md를 참고하세요.

텍스트 측정

텍스트 크기 측정, 컨테이너에 텍스트 맞추기, 오버플로 확인은 measuring-text.md를 참고하세요.

FFmpeg 사용

비디오 트리밍이나 무음 감지와 같은 일부 비디오 작업에는 FFmpeg를 사용해야 합니다. 자세한 내용은 ./ffmpeg.md 파일을 참고하세요.

무음 감지

비디오 또는 오디오 파일에서 무음 구간을 감지하고 잘라야 할 경우, ./silence-detection.md 파일을 참고하세요.

동적 지속 시간, 크기 및 데이터

컴포지션의 지속 시간, 크기, props를 동적으로 설정하는 방법은 calculate-metadata.md를 참고하세요.

고급 컴포지션

스틸, 폴더, 기본 props 정의 및 컴포지션 중첩 방법은 compositions.md를 참고하세요.

고급 시퀀싱

항목 지연, 트리밍, 지속 시간 제한 등 더 많은 시퀀싱 패턴은 sequencing.md를 참고하세요.

모듈 설치

올바른 버전의 새 패키지를 추가하려면 npx remotion add를 사용하세요:

npx remotion add @remotion/media

이는 @remotion/* 패키지, mediabunny, @mediabunny/*, zod에 적용됩니다.

마크업 미리보기

사용자가 미리보기를 원한다고 판단될 때만 수행하세요.

npx remotion studio --no-open

이 명령어는 장기 실행 프로세스를 시작하고 미리보기 서버 URL을 출력합니다. 이미 시작된 경우에도 URL이 출력됩니다.

선택 사항: 단일 프레임 렌더링 확인

레이아웃, 색상 또는 타이밍을 확인하기 위해 CLI로 단일 프레임을 렌더링할 수 있습니다. 간단한 수정, 순수 리팩토링, 또는 Studio나 이전 렌더링을 통해 이미 충분히 확신이 있는 경우에는 건너뛰세요.

npx remotion still [composition-id] --scale=0.25 --frame=30

30fps에서 --frame=30은 1초 지점입니다 (--frame은 0부터 시작).

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

JantonioFC/skillsbank

AI-powered image editing with style transfer and object removal

JantonioFC/skillsbank

Internationalization and localization patterns. Detecting hardcoded strings, managing translations, locale files, RTL support.

JantonioFC/skillsbank

Analise e auditoria de editais de leilao judicial e extrajudicial. Riscos ocultos, clausulas perigosas, debitos, ocupante e classificacao da oportunidade.

JantonioFC/skillsbank

Embed Photopea in web apps using photopea.js. Covers embedding, file I/O, scripting, exporting, layers, text, filters, and the full Photoshop-compatible API.

JantonioFC/skillsbank

Best practices for Remotion - Video creation in React

JantonioFC/skillsbank

Generate walkthrough videos from Stitch projects using Remotion with smooth transitions, zooming, and text overlays

JantonioFC/skillsbank

Seek and analyze video content using Memories.ai Large Visual Memory Model for persistent video intelligence

JantonioFC/skillsbank

Writes complete, structured landing pages optimized for SEO ranking, AEO citation, and visitor conversion. Activate when the user wants to write or generate a landing page for a product, service, or offer.

JantonioFC/skillsbank

Video and audio perception, indexing, and editing. Ingest files/URLs/live streams, build visual/spoken indexes, search with timestamps, edit timelines, add overlays/subtitles, generate media, and create real-time alerts.

JantonioFC/skillsbank

Upload, stream, search, edit, transcribe, and generate AI video and audio using the VideoDB SDK.

JantonioFC/skillsbank

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

JantonioFC/skillsbank

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities.

JantonioFC/skillsbank

Tool lifecycle UI components for React/Next.js from ui.inference.sh. Display tool calls: pending, progress, approval required, results. Capabilities: tool status, progress indicators, approval flows, results display. Use for: showing agent tool calls, human-in-the-loop approvals, tool output. Triggers: tool ui, tool calls, tool status, tool approval, tool results, agent tools, mcp tools ui, function calling ui, tool lifecycle, tool pending

JantonioFC/skillsbank

Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

JantonioFC/skillsbank

When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms. Also use when the user mentions 'PPC,' 'paid media,' 'ROAS,' 'CPA,' 'ad campaign,' 'retargeting,' 'audience targeting,' 'Google Ads,' 'Facebook ads,'...

JantonioFC/skillsbank

Create AI avatar and talking head videos with OmniHuman, Fabric, PixVerse via inference.sh CLI. Models: OmniHuman 1.5, OmniHuman 1.0, Fabric 1.0, PixVerse Lipsync. Capabilities: audio-driven avatars, lipsync videos, talking head generation, virtual presenters. Use for: AI presenters, expla...

JantonioFC/skillsbank

Create AI marketing videos for ads, promos, product launches, and brand content. Models: Veo, Seedance, Wan, FLUX for visuals, Kokoro for voiceover. Types: product demos, testimonials, explainers, social ads, brand videos. Use for: Facebook ads, YouTube ads, product launches, brand awarene...

JantonioFC/skillsbank

Generate AI videos with Google Veo, Seedance, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 1.5 Pro, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, lipsync, avatar animation, video upscaling, fole...

JantonioFC/skillsbank

Production-ready CI/CD configurations for Playwright — GitHub Actions, GitLab CI, CircleCI, Azure DevOps, Jenkins, Docker, parallel sharding, reporting, code coverage, and global setup/teardown.

JantonioFC/skillsbank

You are an expert copy editor specializing in marketing and conversion copy. Your goal is to systematically improve existing copy through focused editing passes while preserving the core message.

관련 스킬