remotion-markup
Fungsinya
Skill ini memberi panduan menulis kode React di Remotion, alat untuk membuat video dengan kode. Skill ini cocok untuk developer yang membuat video beranimasi dan menginginkan kode yang dirender dengan benar.
Kapan dipakai
- βSaat Anda meminta agent membuat judul atau adegan beranimasi dalam video Remotion.
- βSaat gerakan yang dibuat dengan transisi atau animasi CSS tidak muncul di video yang dirender.
- βSaat Anda ingin komponen Remotion memudar, bergeser, atau membesar seiring waktu.
Link skill
https://github.com/remotion-dev/remotion/blob/main/packages/codex-plugin/skills/remotion-markup/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBuat judul di video Remotion saya memudar masuk dan bergeser naik dalam dua detik pertama.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill memberi tahu agent agar menggerakkan animasi berdasarkan nomor frame saat ini dan interpolasi, pendekatan yang dibutuhkan Remotion untuk video. Skill juga menunjukkan pola kode yang perlu diikuti.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
This is guidance for writing Remotion React Markup. If this is not relevant, load Remotion Best Practices instead.
Preserve user changes
Users may make edits in the code outside of the conversation.
If you detect a surprising change made in the meanwhile, don't overwrite it, assume it was intentional or ask for confirmation.
General rules
Drive animations using useCurrentFrame() and interpolate().
CSS transition or animation will not render correctly, they need to refactored.
Tailwind animation class will not render correctly, they need to be refactored.
Use Easing.bezier() and Easing.spring() to customize timing.
Structure your markup according to Remotion Interactivity Best Practices
import { useCurrentFrame, Easing, interpolate, Interactive } from "remotion";
export const FadeIn = () => {
const frame = useCurrentFrame();
return (
<Interactive.Div
name="Title"
style={{
opacity: interpolate(frame, [0, 2 * fps], [0, 1], {
extrapolateRight: "clamp",
extrapolateLeft: "clamp",
easing: Easing.bezier(0.16, 1, 0.3, 1),
}),
}}
>
Hello World!
</Interactive.Div>
);
};
Keep the interpolate() call inline in the style prop.
Use scale, translate, rotate CSS properties over transform.
// π Inline editable keyframes and transform shorthands
style={{
scale: interpolate(frame, [0, 100], [0, 1], {
extrapolateLeft: 'clamp',
extrapolateRight: 'clamp',
easing: Easing.spring({damping: 200}),
output: 'perceptual-scale' // For `scale` animations, use "output: 'perceptual-scale'"
}),
translate: interpolate(frame, [0, 100], ["0px 0px", "100px 100px"], {
extrapolateLeft: 'clamp',
extrapolateRight: 'clamp',
easing: Easing.spring({damping: 200}),
}),
rotate: interpolate(frame, [0, 100], ["20deg", "90deg"], {
extrapolateLeft: 'clamp',
extrapolateRight: 'clamp',
easing: Easing.spring({damping: 200}),
}),
}}
// π Non-inline values and transform strings become harder to edit in Studio
const scale = interpolate(frame, [0, 100], [0, 1]);
style={{
transform: `scale(${scale})`,
}}
Assets
Place assets in the public/ folder at your project root.
Use staticFile() to reference files from the public/ folder.
Media components
Add video and audio using <Video> and <Audio> from @remotion/media.
Add images using the <CanvasImage> component.
Add animated GIFs, APNG, WebP or AVIF images using <AnimatedImage>, use @remotion/gif if not using Chrome.
Use staticFile() for files in public/ or pass a remote URL directly:
import { Audio, Video } from "@remotion/media";
import { staticFile, CanvasImage, AnimatedImage } from "remotion";
export const MyComposition = () => {
return (
<>
<Video src={staticFile("video.mp4")} style={{ opacity: 0.5 }} />
<Audio src={staticFile("audio.mp3")} />
<CanvasImage
src={staticFile("logo.png")}
style={{ width: 100, height: 100 }}
/>
<Video src="https://remotion.media/video.mp4" />
<AnimatedImage src={staticFile('nyancat.gif')} />
</>
);
};
Example scene
import {
AbsoluteFill,
Easing,
Interactive,
interpolate,
useCurrentFrame,
useVideoConfig
} from "remotion";
export const Empty = () => {
const {fps} = useVideoConfig();
const frame = useCurrentFrame();
return (
<AbsoluteFill
name="Scene"
style={{
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
backgroundColor: 'white'
}}
>
<Interactive.Div
name="Title"
style={{
opacity: interpolate(frame, [1 * fps, 2 * fps], [0, 1], {
extrapolateRight: "clamp",
extrapolateLeft: "clamp",
easing: Easing.bezier(0.16, 1, 0.3, 1),
}),
fontSize: 88
}}
>
Title
</Interactive.Div>
<Interactive.Div
name="Subtitle"
style={{
opacity: interpolate(frame, [2 * fps, 3 * fps, 8 * fps, 10 * fps], [0, 1, 1, 0], {
extrapolateRight: "clamp",
extrapolateLeft: "clamp",
easing: [Easing.bezier(0.16, 1, 0.3, 1), Easing.linear, Easing.bezier(0.16, 1, 0.3, 1)],
}),
fontSize: 32
}}
>
Subtitle
</Interactive.D
Pertanyaan umum
Apakah saya perlu memahami React untuk memakai ini?
Video Remotion ditulis dengan React, sehingga sedikit pengetahuan akan membantu. Agent Anda menulis sebagian besar kode dari permintaan sederhana Anda.
Mengapa agent saya tidak bisa memakai animasi CSS biasa di sini?
Transisi dan animasi CSS tidak dirender dengan benar di video Remotion. Skill mengarahkan agent ke gerakan berbasis frame.
Apakah skill ini membuatkan video untuk saya?
Skill memandu kode yang ditulis agent Anda untuk proyek Remotion. Anda tetap perlu menyiapkan proyek Remotion untuk merender video.
Detail
Popularitas
- Bintang GitHub
- 70k
- Peringkat
- #3150
- Lisensi
- β
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
fix-root-cause
70kMengajari agent Anda menelusuri bug kembali ke titik awal kesalahan, dan memperbaiki titik itu alih-alih menyembunyikan gejalanya dengan solusi sementara.
gh-stack
70kMenunjukkan kepada agent Anda cara memecah pekerjaan besar menjadi tumpukan pull request yang terhubung, agar peninjau membaca satu lapisan kecil per waktu.
issue-management
70kMembantu agent Anda menautkan issue GitHub sebagai induk, sub-issue, dan penghalang menggunakan GitHub CLI, sehingga pekerjaan proyek tetap tertata dengan jelas.
no-comments
70kMembantu agent Anda menghapus komentar kode yang hanya menjelaskan kode tim sendiri, sambil menyimpan catatan tentang keanehan peramban, pustaka, atau platform.
Skill serupa
angular-developer
280kMembantu agent Anda membuat kode Angular dan memberi saran struktur proyek. Berguna saat memulai proyek baru, membuat komponen, atau meningkatkan performa.
frontend-a11y
280kMembantu agent Anda membuat antarmuka web dapat diakses semua orang. Memastikan website dan aplikasi berfungsi baik dengan screen reader dan navigasi keyboard.
frontend-patterns
280kMembuat agent Anda menerapkan pola modern dalam frontend. Mengoptimalkan performa, mengelola state, dan mengikuti praktik terbaik React dan Next.js.