85453da49f
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
Docs / Validate docs (push) Waiting to run
CodeQL / Analyze (actions) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
Sync skills to ClawHub / Publish changed skills (push) Waiting to run
regression / regression-shards (style-16-prod style-9-prod style-17-prod iframe-render-compat variables-prod mp4-h265-sdr, shard-4) (push) Has been cancelled
regression / regression-shards (style-4-prod style-11-prod style-2-prod animejs-adapter typegpu-adapter parallel-capture-regression, shard-5) (push) Has been cancelled
regression / regression-shards (style-7-prod style-8-prod style-10-prod css-spinner-render-compat webm-transparency mp4-h264-sdr webm-vp9, shard-3) (push) Has been cancelled
regression / regression-shards (sub-composition-video style-18-prod raf-ball-render-compat font-variant-numeric sub-comp-t0 sub-comp-id-selector, shard-7) (push) Has been cancelled
Windows render verification / Detect changes (push) Has been cancelled
Windows render verification / Preflight (lint + format) (push) Has been cancelled
Windows render verification / Render on windows-latest (push) Has been cancelled
Windows render verification / Tests on windows-latest (push) Has been cancelled
CI / Detect changes (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Fallow audit (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Typecheck (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Producer: integration tests (push) Has been cancelled
CI / Producer: unit tests (push) Has been cancelled
CI / File size check (push) Has been cancelled
CI / Test: skills (push) Has been cancelled
CI / Skills: manifest in sync (push) Has been cancelled
CI / CLI: npx shim (macos-latest) (push) Has been cancelled
CI / CLI: npx shim (ubuntu-latest) (push) Has been cancelled
CI / CLI: npx shim (windows-latest) (push) Has been cancelled
CI / SDK: unit + contract + smoke (push) Has been cancelled
CI / Test: runtime contract (push) Has been cancelled
CI / Studio: load smoke (push) Has been cancelled
CI / Smoke: global install (push) Has been cancelled
CI / CLI smoke (required) (push) Has been cancelled
CI / Semantic PR title (push) Has been cancelled
Player perf / Detect changes (push) Has been cancelled
Player perf / Preflight (lint + format) (push) Has been cancelled
Player perf / player-perf (push) Has been cancelled
Player perf / Perf: drift (push) Has been cancelled
Player perf / Perf: fps (push) Has been cancelled
Player perf / Perf: parity (push) Has been cancelled
Player perf / Perf: scrub (push) Has been cancelled
Player perf / Perf: load (push) Has been cancelled
preview-regression / Detect changes (push) Has been cancelled
preview-regression / Preflight (lint + format) (push) Has been cancelled
preview-regression / Preview parity (push) Has been cancelled
preview-regression / preview-regression (push) Has been cancelled
regression / regression (push) Has been cancelled
regression / Detect changes (push) Has been cancelled
regression / Preflight (lint + format) (push) Has been cancelled
regression / regression-shards (hdr-regression style-5-prod style-3-prod mov-prores, shard-1) (push) Has been cancelled
regression / regression-shards (overlay-montage-prod style-12-prod chat missing-host-comp-id png-sequence portrait-edge-bleed, shard-6) (push) Has been cancelled
regression / regression-shards (style-13-prod style-6-prod vignelli-stacking gsap-letters-render-compat audio-mux-parity, shard-8) (push) Has been cancelled
regression / regression-shards (style-15-prod hdr-hlg-regression style-1-prod many-cuts vfr-screen-recording render-symlinked-assets, shard-2) (push) Has been cancelled
111 lines
4.3 KiB
Plaintext
111 lines
4.3 KiB
Plaintext
---
|
|
title: Timeline Editing
|
|
description: "What you can edit in the Studio timeline today, how those edits map back to HTML, and the current limitations."
|
|
---
|
|
|
|
The Studio timeline lets you edit the parts of a HyperFrames composition that can be persisted cleanly back into source HTML.
|
|
|
|
It is not a separate project format or hidden binary state. Every supported timeline action updates the same `data-*` attributes and inline styles that your composition already uses.
|
|
|
|
## What the Timeline Can Do
|
|
|
|
- **Move clips in time** — drag a clip horizontally to update `data-start`
|
|
- **Move clips between rows** — drag a clip vertically to update `data-track-index`
|
|
- **Change visual stacking** — top timeline rows render above lower rows, and that ordering is persisted back into inline `z-index`
|
|
- **Trim the end of a clip** — drag the right handle to reduce `data-duration`
|
|
- **Trim the start of media clips** — drag the left handle on clips backed by media offsets to advance the clip start and playback offset together
|
|
|
|
## How Timeline Edits Map To Source
|
|
|
|
The timeline works directly against your HTML:
|
|
|
|
- horizontal move updates `data-start`
|
|
- vertical move updates `data-track-index`
|
|
- right trim updates `data-duration`
|
|
- media left trim updates `data-start` and `data-media-start` or `data-playback-start`
|
|
- changing row order also updates inline `z-index` so the preview matches the timeline
|
|
|
|
This means timeline editing stays inspectable and versionable. If you open the file after a move or trim, you can see the exact attributes that changed.
|
|
|
|
## Current Editing Model By Clip Type
|
|
|
|
### Generic motion / DOM clips
|
|
|
|
Examples:
|
|
- `div`
|
|
- `section`
|
|
- `aside`
|
|
- GSAP-driven cards, overlays, and text blocks
|
|
|
|
Supported:
|
|
- move the clip later or earlier on the timeline
|
|
- move the clip to another row
|
|
- trim the end of the clip
|
|
|
|
Not supported yet:
|
|
- true front trim that removes the beginning of the animation itself
|
|
|
|
### Media clips
|
|
|
|
Examples:
|
|
- `video`
|
|
- `audio`
|
|
- wrappers backed by `data-media-start` / `data-playback-start`
|
|
|
|
Supported:
|
|
- move the clip later or earlier on the timeline
|
|
- move the clip to another row
|
|
- trim the end of the clip
|
|
- trim the start of the media content itself
|
|
|
|
## Why Start Trim Is Media-Only
|
|
|
|
Media clips have a real content-offset model:
|
|
|
|
- `data-media-start`
|
|
- `data-playback-start`
|
|
|
|
Those attributes let the Studio say:
|
|
|
|
> Start this clip later on the timeline, and also start reading the media later inside the source.
|
|
|
|
Generic motion clips do not have an equivalent playback-offset model yet. For a GSAP-driven `section` or `div`, the Studio can:
|
|
|
|
- move the whole clip later by changing `data-start`
|
|
- shorten its visible window by changing `data-duration`
|
|
|
|
But it cannot yet say:
|
|
|
|
> Start this animation halfway through its timeline.
|
|
|
|
That is why generic motion clips do **not** show an interactive left trim handle. The control is hidden instead of implying behavior the runtime cannot currently represent truthfully.
|
|
|
|
<Note>
|
|
A useful mental model is: **move** changes when a clip starts, **right trim** changes when it ends, and **left trim** only appears when the clip can actually skip the beginning of its own content.
|
|
</Note>
|
|
|
|
## Stacking Rule
|
|
|
|
The Studio follows the normal timeline-editor convention:
|
|
|
|
- the visually top row renders on top
|
|
- lower rows render underneath
|
|
|
|
If you want captions, lower-thirds, or overlays to sit above other content, place them on a visually higher timeline row.
|
|
|
|
## Current Limitations
|
|
|
|
- **No true front trim for generic motion clips yet.**
|
|
You can move those clips later in time, but you cannot start their internal animation phase partway through.
|
|
- **Layering is still driven by row order plus persisted inline `z-index`.**
|
|
If a clip already has custom CSS stacking rules outside the Studio flow, keep that in mind when editing manually.
|
|
- **Timeline editing is intentionally scoped.**
|
|
The Studio currently focuses on move and trim behavior. It does not yet expose full split, slip, slide, ripple, or roll editing semantics.
|
|
|
|
## Best Practices
|
|
|
|
- Use **move** when you want an element to start later but still play its full animation.
|
|
- Use **right trim** when you want the element to end sooner.
|
|
- Use **media left trim** when you want to remove the beginning of a video or audio clip.
|
|
- Put overlays and captions on visually higher rows so they render above base footage.
|