Skip to content

PlayerPose

Copy as Markdown

PlayerPose = readonly [selector: string, properties: readonly (readonly [property: string, variable: string])[]]

The pose a state starts from: [selector, properties]. For each element of selector (one class inside the root), each [property, variable] pair: the CSS property’s value on screen is written to the custom property variable (--…) when a state begins, and the state’s keyframes start from it, so a state that interrupts another starts where that one was.