konstantin-paulus 5a8b56d29b Add animations prop to various components and documentation
Introduce the `animations` prop across multiple components, including audio, elements, and text, allowing for preset in/out animations. Update related documentation to reflect this new feature and enhance the `animations` handling in the node patching process. This change improves the flexibility and visual dynamics of the UI elements.
2026-07-15 15:33:44 +02:00

1.1 KiB

<audio>

An audio clip: no visual output, no spatial props; carries volume. When timing is omitted, the node fits its natural duration (see timing.md).

<audio src="https://my.videoarchive.com/audio/clip.wav" start={2.2} sourceOut={16} volume={-6} />

Props

Prop Type Default Meaning
src string | AssetRef required See media.md.
name string none Human-readable node name.
start, end, sourceIn, sourceOut Time see timing.md Temporal placement.
volume Animatable<number> 0 Decibels: 0 = unity, negative attenuates (-6 ≈ half as loud), -Infinity = silence. Not linear.
muted boolean false Excludes the node's audio from the mix; independent of volume.
syncTo string none Key of another element carrying audio; derives start by audio alignment (see audio-sync.md). Mutually exclusive with start.
animations AnimationSpec[] none Preset in/out animations (see animations.md); only "gain" is audible.