Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Apply best practices for creating programmatic videos with Remotion and React.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
rules/animations.md
1---2name: animations3description: Fundamental animation skills for Remotion4metadata:5tags: animations, transitions, frames, useCurrentFrame6---78All animations MUST be driven by the `useCurrentFrame()` hook.9Write animations in seconds and multiply them by the `fps` value from `useVideoConfig()`.1011```tsx12import { useCurrentFrame } from "remotion";1314export const FadeIn = () => {15const frame = useCurrentFrame();16const { fps } = useVideoConfig();1718const opacity = interpolate(frame, [0, 2 * fps], [0, 1], {19extrapolateRight: "clamp",20});2122return <div style={{ opacity }}>Hello World!</div>;23};24```2526CSS transitions or animations are FORBIDDEN - they will not render correctly.27Tailwind animation class names are FORBIDDEN - they will not render correctly.28