captions.js
API ReferenceInterfaces

CaptionsSettings

Full styling + animation configuration for a single captions track.

Full styling + animation configuration for a single captions track.

Properties

PropertyTypeDescription
animation| "scale" | "none" | "bounce" | "underline" | "box" | "pop" | "slide-left" | "slide-up" | "slide-down" | "box-word"-
lineSpacing?number | null-
linesPerPagenumber-
position"auto" | "top" | "middle" | "bottom"-
positionTopOffset?number-
styleobject-
style.aplifiedWordColor?stringDeprecated Misspelled original name of CaptionsSettings.style.highlightColor. Still read when highlightColor is not set; will be removed in 2.0.
style.backgroundColorstring-
style.fontobject-
style.font.fontCapitalizeboolean-
style.font.fontColorstring-
style.font.fontFamilystring-
style.font.fontSizenumber-
style.font.fontStrokeColorstring-
style.font.fontStrokeWidthnumber-
style.font.fontWeight"thin" | "light" | "regular" | "medium" | "bold" | "black"-
style.font.italicboolean-
style.font.shadow?object-
style.font.shadow.fontShadowBlurnumber-
style.font.shadow.fontShadowColorstring-
style.font.shadow.fontShadowOffsetXnumber-
style.font.shadow.fontShadowOffsetYnumber-
style.font.underlineboolean-
style.highlightColor?stringColor of the active (spoken) word. A per-word Caption.highlightColor overrides it.
style.namestring-
style.verticalCoverImg?string-

For AI agents and LLMs: this page as Markdown · llms.txt · all docs in one file

On this page