Remotion Rule: Lottie
Remotion skill rule: Embedding Lottie animations in Remotion.. Part of the official Remotion Agent Skill for programmatic video in React.
Instalación con revisión previa
Este activo requiere revisión. El prompt copiado pide dry-run, muestra escrituras y continúa solo tras confirmación.
npx -y tokrepo@latest install 2348d25f-2fd3-43cf-9672-56dcf6010174 --target codexPrimero dry-run, confirma las escrituras y luego ejecuta este comando.
What it is
Remotion Rule: Lottie is a skill rule that activates automatically when working with Lottie animations in a Remotion project. It provides the coding patterns and API knowledge needed to embed Lottie JSON animations into programmatic video.
This rule targets developers using Remotion for video generation who want to add Lottie animations (motion graphics, icons, transitions) without manually reading the Lottie integration docs each time.
How it saves time or tokens
The rule injects the correct Remotion-Lottie API patterns into the AI agent context automatically. Instead of the agent searching docs or guessing the API, it knows the exact component props, animation timing hooks, and frame synchronization patterns. Token estimate per use is approximately 500 tokens.
How to use
- Install the Remotion skills collection:
npx skills add remotion-dev/skills
- The Lottie rule activates automatically when the agent detects Lottie-related work in a Remotion project.
- Use
@remotion/lottiecomponents in your Remotion composition.
Example
import { Lottie, useLottie } from '@remotion/lottie';
import { useCurrentFrame, useVideoConfig } from 'remotion';
import animationData from './animation.json';
const MyAnimation: React.FC = () => {
const frame = useCurrentFrame();
const { fps } = useVideoConfig();
const animation = useLottie({ animationData });
if (!animation) return null;
return (
<Lottie
animationData={animation}
playbackRate={1}
style={{ width: 400, height: 400 }}
/>
);
};
Related on TokRepo
- Coding Tools -- Developer frameworks and coding skills
- Video Tools -- Video creation and editing tools
Common pitfalls
- Lottie JSON files can be large. Optimize them with tools like lottie-compress or bodymovin settings to reduce bundle size.
- Frame synchronization between Remotion and Lottie requires matching fps settings. Mismatched frame rates cause animation speed issues.
- Not all Lottie features are supported by the web renderer. Complex After Effects expressions may not render correctly.
Preguntas frecuentes
The @remotion/lottie package provides React components for rendering Lottie animations inside Remotion compositions. It synchronizes Lottie playback with Remotion frame timing for frame-accurate animation in programmatic video.
Run npm install @remotion/lottie in your Remotion project. The package provides the Lottie component and useLottie hook for loading and rendering Lottie JSON animation data.
Yes. The Lottie component accepts a playbackRate prop. Set it to values like 0.5 for half speed or 2 for double speed. The animation timing is synchronized with Remotion frames.
The integration expects Lottie JSON files exported from tools like Adobe After Effects with the Bodymovin plugin, or from LottieFiles. The JSON is passed as animationData to the useLottie hook.
Yes. This rule is part of the official Remotion Agent Skill and works with Claude Code, OpenAI Codex, and Cursor. It activates automatically when the agent detects Lottie-related work in a Remotion project.
Referencias (3)
- Remotion GitHub— Remotion is a framework for creating videos programmatically in React
- Remotion Lottie Docs— @remotion/lottie package for Lottie animation integration
- LottieFiles— Lottie is an animation format by Airbnb for vector animations
Relacionados en TokRepo
Fuente y agradecimientos
Created by Remotion. Licensed under MIT. remotion-dev/skills — Rule:
lottie
Part of the Remotion AI Skill collection on TokRepo.
Discusión
Activos relacionados
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.
Remotion Rule: Videos
Remotion skill rule: Embedding videos in Remotion - trimming, volume, speed, looping, pitch. Part of the official Remotion Agent Skill for programmatic video in React.
Remotion Rule: Timing
Remotion skill rule: Interpolation curves in Remotion - linear, easing, spring animations. Part of the official Remotion Agent Skill for programmatic video in React.
Remotion Rule: Trimming
Remotion skill rule: Trimming patterns for Remotion - cut the beginning or end of animations. Part of the official Remotion Agent Skill for programmatic video in React.