Start with a result you can see. Play or scrub each example, change a parameter, then choose Copy to use the current source. Paste composition markup inside the HTML scaffold from Create a video; the scaffold provides the element imports and preview environment. Reset restores an example's starting state.
A typographic title card
One timegroup gives this card a five-second duration. The title uses a CSS animation; the preview controls let you inspect any point in that animation. Change Title size to see the composition and copied source update together.
<ef-timegroup mode="fixed" duration="5s" class="w-[960px] h-[540px]" style="background:#f5f2ea;color:#191919;display:grid;align-content:center;padding:64px;font-family:Inter,sans-serif;">
<p style="font-size:18px;letter-spacing:0.12em;">A NEW PERSPECTIVE / 01</p>
<ef-text class="title" style="font-size:88px;font-weight:800;line-height:1.05;letter-spacing:-0.04em;">Make it move.</ef-text>
<div style="height:12px;width:160px;background:#d92d28;margin-top:32px;"></div>
<style>
@keyframes title-in {
from { transform: translateY(28px); opacity: 0.35; }
to { transform: translateY(0); opacity: 1; }
}
.title { animation: title-in 0.8s ease-out both; }
</style>
</ef-timegroup>The parameter control belongs to this documentation example. The copied markup contains a concrete font size and works without the control panel. Continue with CSS & Animations or text splitting and stagger.
A three-scene sequence
The parent runs children in order: two seconds for the first card, two for the second, and two for the third. Scrub across the scene boundaries or select a point on the timeline. The finished composition lasts six seconds.
<ef-timegroup mode="sequence" id="sequence-example" class="w-[960px] h-[540px]">
<ef-timegroup mode="fixed" duration="2s" style="background:#f5f2ea;color:#191919;">
<p>01 / Compose</p>
<ef-text>Start with HTML.</ef-text>
</ef-timegroup>
<ef-timegroup mode="fixed" duration="2s" style="background:#2559af;color:white;">
<p>02 / Preview</p>
<ef-text>Find your rhythm.</ef-text>
</ef-timegroup>
<ef-timegroup mode="fixed" duration="2s" style="background:#d92d28;color:white;">
<p>03 / Render</p>
<ef-text>Make the final cut.</ef-text>
</ef-timegroup>
<style>
#sequence-example > ef-timegroup {
width: 100%;
height: 100%;
display: grid;
align-content: center;
padding: 64px;
font-family: Inter, sans-serif;
}
#sequence-example p { font-size: 20px; }
#sequence-example ef-text {
font-size: 76px;
font-weight: 800;
line-height: 1.1;
letter-spacing: -0.04em;
}
</style>
</ef-timegroup>For overlapping scenes and transitions, continue with the time model.
More starting points
| Build this | Open the example |
|---|---|
| A player with play, pause, and scrubbing | Build an editor |
| Animated words and characters | Text |
| A trimmed video clip | Video |
| Captions synchronized to a timeline | Captions |
| A custom editor timeline | Timeline |
| Cloud output from a local project | Automate rendering |
To export these examples, follow Create a video. To assemble your own editor around a composition, follow Build an editor.