Creates a project with
@oanim/core — animation presets, transitions, components, and design tokens pre-configured.import { AbsoluteFill, useCurrentFrame, useVideoConfig } from 'remotion';
import { fadeUp, Background, SafeArea, palettes } from '@oanim/core';
const colors = palettes.dark;
export const MyComp: React.FC = () => {
const frame = useCurrentFrame();
const { fps } = useVideoConfig();
return (
<AbsoluteFill>
<Background gradient={`linear-gradient(135deg, ${colors.bg}, ${colors.bgAlt})`} />
<SafeArea style={{ justifyContent: 'center', alignItems: 'center' }}>
<div style={{
...fadeUp({ frame, fps, delay: 0.2 }),
fontSize: 80,
fontWeight: 700,
color: colors.text,
}}>
Hello World
</div>
</SafeArea>
</AbsoluteFill>
);
};
npx oanim login
npx oanim assets gen-image --prompt "dark abstract gradient, purple and blue" --out public/bg.png
import { Img, staticFile } from 'remotion';
<Img
src={staticFile('bg.png')}
style={{ width: '100%', height: '100%', objectFit: 'cover' }}
/>
You can also generate video and audio — see the Working with Media guide.