Loading...
Loading...
Best practices and comprehensive guide for Remotion - programmatic video creation in React with animations, compositions, and media handling
npx skill4agent add davila7/claude-code-templates remotionuseCurrentFrame()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>
);
};useCurrentFrame()fps