remotion
A package containing the essential building blocks of expressing videos in Remotion.
Some pure functions such as interpolate()
and interpolateColors()
can also be used outside of Remotion.
Installation
- npm
- bun
- pnpm
- yarn
bash
npm i remotion
bash
npm i remotion
bash
bun i remotion
bash
bun i remotion
bash
pnpm i remotion
bash
pnpm i remotion
bash
yarn add remotion
bash
yarn add remotion
API
The following functions and components are exposed:
<Composition>
Define a video
<Still>
Define a still
<Folder>
Organize compositions in the Studio sidebar
registerRoot()
Initialize a Remotion project
useCurrentFrame()
Obtain the current time
useVideoConfig()
Get the duration, dimensions and FPS of a composition
interpolate()
Map a range of values to another
spring()
Physics-based animation primitive
interpolateColors()
Map a range of values to colors
measureSpring()
Determine the duration of a spring
Easing
Customize animation curve of
interpolate()
<Img>
Render an
<img>
tag and wait for it to load<Video>
Synchronize a
<video>
with Remotion's time<Audio>
Synchronize
<audio>
with Remotion's time<OffthreadVideo>
Alternative to
<Video>
<IFrame>
Render an
<iframe>
tag and wait for it to load<Sequence>
Time-shifts it's children
<Series>
Display contents after another
<Freeze>
Freeze some content in time
<Loop>
Play some content repeatedly
delayRender()
Block a render from continuing
continueRender()
Unblock a render
cancelRender()
Abort an error
getInputProps()
Receive the user-defined input data
getRemotionEnvironment()
Determine if you are currently previewing or rendering
staticFile()
Access file from
public/
folder<AbsoluteFill>
Position content absolutely and in full size
VERSION
Get the current version of Remotion