# heading in your MDX defines a section (scene). Sections are rendered as
Remotion Series.Sequence components, playing one after another.| Unit | Example | Meaning |
s | duration=3.5s | Seconds (multiplied by fps) |
beats / beat | duration=8beats | Beats (using frontmatter bpm) |
frames / f | duration=90frames | Raw frames |
| (bare number) | duration=90 | Raw frames |
123456789101112--- fps: 30 bpm: 120 --- # Intro duration=3s # Verse duration=8beats # Bridge duration=90frames # Outro duration=2s
duration={33 * BEAT} does not work. Use duration=33beats instead.duration, the section uses the maximum
duration of any <Audio> or <Video> element inside it.Series, and persists across all sections.<Audio src="/music.mp3" /> plays for the full video<Video src="/bg.mp4" /> behind all sections123456789101112131415--- fps: 30 bpm: 120 --- <Audio src="/soundtrack.mp3" /> <Video src="/ambient-bg.mp4" objectFit="cover" /> # First Section duration=5s This content appears on top of the ambient background. # Second Section duration=3s Background video continues playing.
FPS and BEAT as globals:FPS = frames per second (from frontmatter fps, default 30)BEAT = frames per beat, computed as fps / (bpm / 60)1234567<TranslateX from={-140} to={0} duration={0.5 * FPS}> <div>Slides in over half a second</div> </TranslateX> <Opacity from={0} to={1} duration={2 * BEAT}> <div>Fades in over 2 beats</div> </Opacity>