Skip to content

anim-format (runtime format) / TextAnimParamDef

Type Alias: TextAnimParamDef ​

ts
type TextAnimParamDef = 
  | {
  default: number;
  key: string;
  kind: "number";
  label: string;
  max: number;
  min: number;
  step: number;
  unit?: string;
}
  | {
  default: string;
  key: string;
  kind: "choice";
  label: string;
  options: object[];
}
  | {
  default: boolean;
  key: string;
  kind: "boolean";
  label: string;
};

one parameter of a preset — the structural twin of document's CannedParamDef (the Properties panel draws both the same way)

HereSplash — 2D animation for the web