Cette page est affichée en anglais. Une traduction française est en cours.
SkillsMar 29, 2026·1 min de lecture

Remotion Rule: Text Animations

Remotion skill rule: Typography and text animation patterns for Remotion.. Part of the official Remotion Agent Skill for programmatic video in React.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Remotion Rule: Text Animations
Commande d'installation directe
npx -y tokrepo@latest install 29a4a1e6-f3d7-4c48-aa33-caddbd0bd35e --target codex

À exécuter après confirmation du plan en dry-run.

TL;DR
A Remotion skill rule providing typography and text animation patterns for creating animated text in React-based videos.
§01

What it is

Remotion Rule: Text Animations is a skill rule within the official Remotion Agent Skill that provides typography and text animation patterns for programmatic video creation in React. It covers fade-in, slide-in, typewriter, word-by-word reveal, and other text animation techniques using Remotion's interpolate and spring functions.

This rule is for developers building programmatic videos with Remotion who need ready-made text animation patterns. If you are creating explainer videos, title sequences, or social media content with animated text, this rule provides tested patterns to start from.

§02

How it saves time or tokens

Instead of figuring out Remotion's interpolate API from scratch for each text effect, this rule provides copy-paste patterns for common animations. Each pattern uses Remotion's built-in timing functions correctly, handles edge cases like text overflow and line breaks, and follows Remotion best practices for performance. When using AI coding assistants, the rule activates automatically in Remotion projects, giving the AI correct context for generating text animations.

§03

How to use

  1. Install the Remotion skills: npx skills add remotion-dev/skills.
  2. The text animation rule activates automatically when working with text in a Remotion project.
  3. Use the provided patterns as starting points and customize timing, easing, and styles.
§04

Example

import { useCurrentFrame, interpolate, spring, useVideoConfig } from 'remotion';

export const FadeInText: React.FC<{text: string}> = ({text}) => {
  const frame = useCurrentFrame();
  const {fps} = useVideoConfig();

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

  const translateY = spring({
    frame,
    fps,
    config: {damping: 200},
  });

  return (
    <div
      style={{
        opacity,
        transform: `translateY(${(1 - translateY) * 50}px)`,
        fontSize: 60,
        fontWeight: 'bold',
      }}
    >
      {text}
    </div>
  );
};
§05

Related on TokRepo

§06

Common pitfalls

  • Using CSS transitions instead of Remotion's interpolate function. CSS animations are frame-rate independent and will not sync with Remotion's frame-based rendering. Always use interpolate or spring for animations.
  • Not clamping interpolation values. Without extrapolateRight: 'clamp', values continue beyond the target range, causing unexpected animation behavior after the transition completes.
  • Rendering too many text elements simultaneously. Each animated text component adds to render time. For complex typography, pre-compose text groups and animate the container rather than individual characters.

Questions fréquentes

What is a Remotion skill rule?+

A Remotion skill rule is a configuration file that provides patterns and best practices for specific aspects of Remotion video development. Rules activate automatically in AI coding assistants when working on relevant code, providing context-aware suggestions.

Can I customize the animation timing?+

Yes. All animation patterns use Remotion's interpolate and spring functions with configurable parameters. You can adjust frame ranges, easing curves, damping, stiffness, and other timing properties to match your creative vision.

Does this work with any font?+

Yes. The text animation patterns work with any font you load into your Remotion project. Use the @remotion/google-fonts package for Google Fonts or load custom fonts via CSS @font-face declarations in your Remotion root.

Can I animate text word by word?+

Yes. The rule includes patterns for word-by-word reveal where each word appears with a staggered delay. Split your text by spaces, calculate per-word timing offsets, and apply individual interpolation to each word component.

How do I handle long text that wraps?+

Use a fixed-width container with CSS word-wrap and set overflow handling. For per-line animations, split text into lines programmatically using measureText or a layout library, then animate each line separately.

Sources citées (3)
🙏

Source et remerciements

Created by Remotion. Licensed under MIT. remotion-dev/skills — Rule: text-animations

Part of the Remotion AI Skill collection on TokRepo.

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires