Persist a grade
The browser editor and the CLI store the resolved grade indata-color-grading:
--dry-run --json to inspect the change without writing it. Use --clear
to remove the treatment.
Grade a whole lane
A camera cut into hundreds of clips takes one grade, set once. Put the grade on an<hf-color-group> and point each clip at it with data-color-group:
data-color-gradingon the group takes the same JSON as on a clip. Editing it regrades every member, in preview and in render.data-color-groupgoes on the<video>,<img>or<canvas>. Membership is held by the member, so a deleted clip simply leaves the group.- A clip’s own
data-color-gradingwins. It replaces the group’s grade for that clip, sotamer-03above gets only its exposure lift, not skin-soft. data-color-group=""is no group, and a group id with no<hf-color-group>element leaves the clip ungraded. Removing the element, or itsdata-color-grading, ungrades its members.- Groups do not nest. Group ids share the element-id namespace.
- The element is inert: the runtime injects
hf-color-group{display:contents!important}. Close it with</hf-color-group>, since HTML ignores/>on a custom element.
Animate a supported property
Nine grading properties expose CSS custom properties that a paused timeline can tween directly:--hf-color-grading-intensity scales the primary correction, wheels, curves,
selections, and LUT. It is not a master control for detail and effect families
such as grain, halftone, bloom, tape, or CRT. Animate the specific exposed
property and verify that it moves before relying on it.
Limit a grade to part of the frame
Grading selects pixels by value, not position. To treat one region, isolate it as its own media layer:clip-path
works only when the subject barely moves; real movement needs a tracked matte
produced outside HyperFrames.