mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 04:38:33 +00:00
## Summary - Run `oxfmt .` across the entire codebase to establish formatted baseline - 299 files changed — mechanical formatting only, no logic changes - Double quotes, semicolons, 2-space indent, trailing commas, 100 print width Part 3/4 of [VA-851](https://linear.app/heygen/issue/VA-851/pre-migration-configure-eslint-prettier-and-conventional-commits) ## Test plan - [x] `pnpm format:check` — all 426 files pass - [x] `pnpm -r typecheck` — all packages pass - [x] `pnpm build` — all packages build - [x] All 348 tests pass
27 lines
851 B
Markdown
27 lines
851 B
Markdown
# Data Attributes
|
|
|
|
Core attributes for controlling element timing and behavior.
|
|
|
|
## Timing
|
|
|
|
- `data-start="0"` — Start time in seconds
|
|
- `data-duration="5"` — Duration in seconds
|
|
- `data-track-index="0"` — Timeline track number (controls z-ordering)
|
|
|
|
## Media
|
|
|
|
- `data-media-start="2"` — Media playback offset / trim point (seconds)
|
|
- `data-volume="0.8"` — Audio/video volume, 0 to 1
|
|
- `data-has-audio="true"` — Indicates video has an audio track
|
|
|
|
## Composition
|
|
|
|
- `data-composition-id="root"` — Unique ID for composition wrapper (required)
|
|
- `data-width="1920"` — Composition width in pixels
|
|
- `data-height="1080"` — Composition height in pixels
|
|
- `data-composition-src="./intro.html"` — Nested composition source
|
|
|
|
## Element Visibility
|
|
|
|
Add `class="clip"` to timed elements so the runtime can manage their visibility lifecycle.
|