Skip to content

Stylized Captions

See JSON Examples Overview for shared project fields and general parameter rules.

Stylized Caption

Creates a stylized caption by referencing a style package and renderer.

Complete JSON

Key Parameters

Field pathPurposeType and constraintsExample value
timelines[].captionTracks[].captions[].colorColorstring; #AARRGGBB#ffffffff
timelines[].captionTracks[].captions[].contextIdPackage, style, or animation IDstring; required when the referenced resource is usedNot set
timelines[].captionTracks[].captions[].fontSizeRatioFont-size ratiopositive finite number0.1
timelines[].captionTracks[].captions[].rendererIdPackage, style, or animation IDstring; required when the referenced resource is usedNon-empty
timelines[].captionTracks[].captions[].spans[].typeObject or parameter typestring; allowed values depend on the containing objectfontFamily, weight
timelines[].captionTracks[].captions[].styleIdPackage, style, or animation IDstring; required when the referenced resource is usedNot set
timelines[].captionTracks[].captions[].textCaption textstring; line breaks are supportedNon-empty
timelines[].captionTracks[].captions[].typeObject or parameter typestring; allowed values depend on the containing objectmodular

Stylized Caption Opacity

Adjusts caption opacity through the alpha channel of the color value.

Complete JSON

Key Parameters

Field pathPurposeType and constraintsExample value
timelines[].captionTracks[].captions[].colorColorstring; #AARRGGBB#910c00ff
timelines[].captionTracks[].captions[].spans[].endRich-text character boundaryinteger; half-open interval [start, end)26
timelines[].captionTracks[].captions[].spans[].startRich-text character boundaryinteger; half-open interval [start, end)0
timelines[].captionTracks[].captions[].spans[].typeObject or parameter typestring; allowed values depend on the containing object7 values
timelines[].captionTracks[].captions[].spans[].valueParameter valuestring; logical numbers and booleans remain strings8 values
timelines[].captionTracks[].captions[].typeObject or parameter typestring; allowed values depend on the containing objectmodular

Stylized Caption Background

Configures the background color, opacity, and corner radius.

Complete JSON

Key Parameters

Field pathPurposeType and constraintsExample value
timelines[].captionTracks[].captions[].bgColorColorstring; #AARRGGBB#ff060cff
timelines[].captionTracks[].captions[].bgRadiusStyle parameterfinite number; limits depend on the caption renderer40

Stylized Caption Outline

Enables and configures the outline color and width.

Complete JSON

Key Parameters

Field pathPurposeType and constraintsExample value
timelines[].captionTracks[].captions[].outlineFeature switchboolean; true or falsetrue
timelines[].captionTracks[].captions[].outlineColorColorstring; #AARRGGBB#ff0176fd
timelines[].captionTracks[].captions[].outlineWidthStyle parameterfinite number; limits depend on the caption renderer100

Stylized Caption Shadow

Configures shadow color, feathering, and horizontal and vertical offsets.

Complete JSON

Key Parameters

Field pathPurposeType and constraintsExample value
timelines[].captionTracks[].captions[].shadowFeature switchboolean; true or falsetrue
timelines[].captionTracks[].captions[].shadowColorColorstring; #AARRGGBB#f2808080
timelines[].captionTracks[].captions[].shadowFeatherStyle parameterfinite number; limits depend on the caption renderer46
timelines[].captionTracks[].captions[].shadowOffsetXStyle parameterfinite number; limits depend on the caption renderer3
timelines[].captionTracks[].captions[].shadowOffsetYStyle parameterfinite number; limits depend on the caption renderer5

Bubble Caption

Creates a bubble-style caption and adjusts its position and line spacing.

Complete JSON

Key Parameters

Field pathPurposeType and constraintsExample value
timelines[].captionTracks[].captions[].contextIdPackage, style, or animation IDstring; required when the referenced resource is usedNon-empty
timelines[].captionTracks[].captions[].lineSpacingStyle parameterfinite number; limits depend on the caption renderer50
timelines[].captionTracks[].captions[].translationXPosition or anchor pointfinite number-2.8957557678222656
timelines[].captionTracks[].captions[].translationYPosition or anchor pointfinite number0.1332542896270752

Caption In and Out Animations

Configures caption entrance and exit animation packages and durations.

Complete JSON

Key Parameters

Field pathPurposeType and constraintsExample value
timelines[].captionTracks[].captions[].inAnimationDurationAnimation period or durationinteger, milliseconds; normally >= 05472
timelines[].captionTracks[].captions[].inAnimationIdPackage, style, or animation IDstring; required when the referenced resource is usedNon-empty
timelines[].captionTracks[].captions[].outAnimationDurationAnimation period or durationinteger, milliseconds; normally >= 02801
timelines[].captionTracks[].captions[].outAnimationIdPackage, style, or animation IDstring; required when the referenced resource is usedNon-empty

Caption Loop Animation

Configures a caption loop animation package and animation period.

Complete JSON

Key Parameters

Field pathPurposeType and constraintsExample value
timelines[].captionTracks[].captions[].animationIdPackage, style, or animation IDstring; required when the referenced resource is usedNon-empty
timelines[].captionTracks[].captions[].animationPeroidAnimation period or durationinteger, milliseconds; normally >= 07789

Caption Letter Spacing

Uses absolute-value mode to configure letter spacing.

Complete JSON

Key Parameters

Field pathPurposeType and constraintsExample value
timelines[].captionTracks[].captions[].letterSpacingStyle parameterfinite number; limits depend on the caption renderer20
timelines[].captionTracks[].captions[].letterSpacingTypeLetter-spacing modeinteger; 0 for percentage-like values, 1 for absolute values1