تخطَّ إلى المحتوى
مهارةمستورديحتوي سكربتات

remotion

Best practices and comprehensive guide for Remotion - programmatic video creation in React with animations, compositions, and media handling

وصف مستورد لم يراجعه محرر بعد

جاء هذا العنصر من مستودعه الأصلي وفحصناه آلياً فقط، ولم يكتب له محرر وصفاً عربياً بعد. اقرأ محتواه بنفسك قبل أن تعتمد عليه. ولا تُفهرس هذه الصفحة في محركات البحث حتى تُراجَع.

التنزيل

اقرأ هذا قبل أن تنزّل

لا يشغّل تلقين أي شيء من هذا العنصر. لكن ما تنزّله يعمل على جهازك إن شغّلته أنت أو سمحت لكلود كود بتشغيله، فاقرأ الملفات أولاً.

  • في العنصر ملفات سكربت.

الملفات: 32 · الحجم: 80 ك.ب

نزّل ملف ZIP

يحمل الملف ترخيص المصدر الأصلي.

التثبيت

بعد التنزيل، شغّل الأمر في الطرفية. يسأل unzip قبل أن يستبدل أي ملف موجود.

  • لهذا المشروع

    يوضع في: .claude/skills/remotion/

    mkdir -p .claude/skills && unzip ~/Downloads/remotion.zip -d .claude/skills

  • لحسابك على الجهاز كله

    يوضع في: ~/.claude/skills/remotion/

    mkdir -p ~/.claude/skills && unzip ~/Downloads/remotion.zip -d ~/.claude/skills

التعليمات

Remotion - Video Creation in React

Comprehensive skill set for creating programmatic videos using Remotion, a framework for creating videos programmatically using React.

When to use

Use this skill whenever you are dealing with Remotion code to obtain domain-specific knowledge about:

  • Creating video compositions with React components
  • Animating elements using frame-based animations
  • Working with audio, video, and image assets
  • Building charts and data visualizations
  • Implementing text animations and captions
  • Using 3D content with Three.js
  • Applying transitions and sequencing
  • Integrating Tailwind CSS and Lottie animations

Core Concepts

Remotion allows you to create videos using:

  • React Components: Build video content with familiar React syntax
  • Frame-based Animations: All animations driven by useCurrentFrame() hook
  • Compositions: Define video compositions with duration, dimensions, and props
  • Assets: Import and manipulate images, videos, audio, and fonts
  • Rendering: Export videos programmatically with customizable settings

Key Features

  • Frame-by-frame control over animations
  • Dynamic metadata calculation
  • Media processing (trimming, volume, speed, pitch)
  • Caption generation and display
  • Data visualization with charts
  • 3D content integration
  • Professional text animations
  • Scene transitions and sequencing

How to use

Read individual rule files for detailed explanations and code examples:

Core Animation & Timing

  • references/animations.md - Fundamental animation techniques for Remotion
  • references/timing.md - Interpolation curves: linear, easing, spring animations
  • references/sequencing.md - Delay, trim, and limit duration of items
  • references/trimming.md - Cut the beginning or end of animations

Compositions & Metadata

  • references/compositions.md - Defining compositions, stills, folders, default props
  • references/calculate-metadata.md - Dynamically set composition duration, dimensions, and props

Assets & Media

  • references/assets.md - Importing images, videos, audio, and fonts
  • references/images.md - Embedding images using the Img component
  • references/videos.md - Embedding videos with trimming, volume, speed, looping, pitch
  • references/audio.md - Using audio and sound with trimming, volume, speed, pitch
  • references/gifs.md - Displaying GIFs synchronized with timeline

Text & Typography

  • references/text-animations.md - Typography and text animation patterns
  • references/measuring-text.md - Measuring text dimensions, fitting text, checking overflow
  • references/fonts.md - Loading Google Fonts and local fonts

Captions & Transcription

  • references/display-captions.md - Displaying captions with TikTok-style pages and word highlighting
  • references/import-srt-captions.md - Importing .srt subtitle files using @remotion/captions
  • references/transcribe-captions.md - Transcribing audio to generate captions

Data Visualization

  • references/charts.md - Chart and data visualization patterns

Advanced Features

  • references/3d.md - 3D content using Three.js and React Three Fiber
  • references/lottie.md - Embedding Lottie animations
  • references/transitions.md - Scene transition patterns

Styling & Layout

  • references/tailwind.md - Using TailwindCSS in Remotion
  • references/measuring-dom-nodes.md - Measuring DOM element dimensions

Media Processing (Mediabunny)

  • references/can-decode.md - Check if a video can be decoded by the browser
  • references/extract-frames.md - Extract frames from videos at specific timestamps
  • references/get-audio-duration.md - Getting the duration of an audio file
  • references/get-video-dimensions.md - Getting the width and height of a video file
  • references/get-video-duration.md - Getting the duration of a video file

Quick Start Example

import { useCurrentFrame, useVideoConfig, interpolate } from "remotion";

export const MyComposition = () => {
  const frame = useCurrentFrame();
  const { fps } = useVideoConfig();

  const opacity = interpolate(frame, [0, 2 * fps], [0, 1], {
    extrapolateRight: 'clamp',
  });

  return (
    <div style={{ opacity }}>
      <h1>Hello Remotion!</h1>
    </div>
  );
};

Best Practices

  1. Always use useCurrentFrame() - Drive all animations from the current frame
  2. Avoid CSS animations - They won't render correctly in videos
  3. Think in seconds - Multiply time in seconds by fps for frame calculations
  4. Use interpolate for smooth animations - Built-in interpolation with easing functions
  5. Clamp extrapolation - Prevent values from exceeding intended ranges
  6. Test frequently - Preview in Remotion Studio before rendering

Resources

الملفات

  • مجلدreferences73 ك.بسكربت
    • مجلدassets7.8 ك.بسكربت
      • مجلدcharts3.3 ك.بسكربت
        • bar-chart.tsx3.3 ك.بسكربت
      • text-animations-typewriter.tsx2.1 ك.بسكربت
      • text-animations-word-highlight.tsx2.3 ك.بسكربت
    • 3d.md2.2 ك.ب
    • animations.md790 بايت
    • assets.md1.6 ك.ب
    • audio.md3.7 ك.ب
    • calculate-metadata.md2.9 ك.ب
    • can-decode.md1.5 ك.ب
    • charts.md1.7 ك.ب
    • compositions.md3.4 ك.ب
    • display-captions.md3.6 ك.ب
    • extract-frames.md5.4 ك.ب
    • fonts.md3.4 ك.ب
    • get-audio-duration.md1.3 ك.ب
    • get-video-dimensions.md1.6 ك.ب
    • get-video-duration.md1.3 ك.ب
    • gifs.md3.8 ك.ب
    • images.md2.7 ك.ب
    • import-srt-captions.md2.1 ك.ب
    • lottie.md1.7 ك.ب
    • measuring-dom-nodes.md974 بايت
    • measuring-text.md2.9 ك.ب
    • sequencing.md2.3 ك.ب
    • tailwind.md422 بايت
    • text-animations.md700 بايت
    • timing.md3.8 ك.ب
    • transcribe-captions.md850 بايت
    • transitions.md3.6 ك.ب
    • trimming.md1.2 ك.ب
    • videos.md3.4 ك.ب
  • LICENSE1 ك.ب
  • SKILL.md6.2 ك.ب

ما وجده الفحص الآلي

فحصنا الملفات آلياً وقت الاستيراد. هذا ما نبّه إليه الفحص، ولا يعني أن العنصر ضار ولا أنه سليم: اقرأه بنفسك.

  • يحتاج مراجعةملف سكربت

    في الملف cli-tool/components/skills/video/remotion/references/assets/charts/bar-chart.tsx

التعليقات (0)

لا تعليقات بعد. كن أول من يعلّق.

سجّل الدخول لتعلّق. التعليق من المستوى 1 (عضو).

أبلغ

عناصر مشابهة

  • مهارةمستورد

    3d-web-experience

    Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences. Use when: 3D webs

    MITالملفات: 1

  • مهارةمستورد

    accessibility

    Audit and improve web accessibility following WCAG 2.1 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".

    MITالملفات: 2

  • مهارةمستورد

    accessibility-auditor

    Web accessibility specialist for WCAG compliance, ARIA implementation, and inclusive design. Use when auditing websites for accessibility issues, implementing WCAG 2.1 AA/AAA standards, testing with screen readers, or ensuring ADA complianc

    MITالملفات: 1

  • مهارةمستورد

    accessibility-compliance

    Implement WCAG 2.2 compliant interfaces with mobile accessibility, inclusive design patterns, and assistive technology support. Use when auditing accessibility, implementing ARIA patterns, building for screen readers, or ensuring inclusive

    MITالملفات: 5

  • مهارةمستورد

    algolia-search

    Expert patterns for Algolia search implementation, indexing strategies, React InstantSearch, and relevance tuning Use when: adding search to, algolia, instantsearch, search api, search functionality.

    MITالملفات: 1

  • مهارةمستورد

    angular

    Modern Angular (v20+) expert with deep knowledge of Signals, Standalone Components, Zoneless applications, SSR/Hydration, and reactive patterns.

    MITالملفات: 3