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
timeline.captionTracks[].captions[].colorColorstring; #AARRGGBB#ffffffff
timeline.captionTracks[].captions[].contextIdPackage, style, or animation IDstring; required when the referenced resource is usedNot set
timeline.captionTracks[].captions[].fontSizeRatioFont-size ratiopositive finite number0.1
timeline.captionTracks[].captions[].rendererIdPackage, style, or animation IDstring; required when the referenced resource is usedNon-empty
timeline.captionTracks[].captions[].spans[].typeObject or parameter typestring; allowed values depend on the containing objectfontFamily, weight
timeline.captionTracks[].captions[].styleIdPackage, style, or animation IDstring; required when the referenced resource is usedNot set
timeline.captionTracks[].captions[].textCaption textstring; line breaks are supportedNon-empty
timeline.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
timeline.captionTracks[].captions[].colorColorstring; #AARRGGBB#910c00ff
timeline.captionTracks[].captions[].spans[].endRich-text character boundaryinteger; half-open interval [start, end)26
timeline.captionTracks[].captions[].spans[].startRich-text character boundaryinteger; half-open interval [start, end)0
timeline.captionTracks[].captions[].spans[].typeObject or parameter typestring; allowed values depend on the containing object7 values
timeline.captionTracks[].captions[].spans[].valueParameter valuestring; logical numbers and booleans remain strings8 values
timeline.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
timeline.captionTracks[].captions[].bgColorColorstring; #AARRGGBB#ff060cff
timeline.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
timeline.captionTracks[].captions[].outlineFeature switchboolean; true or falsetrue
timeline.captionTracks[].captions[].outlineColorColorstring; #AARRGGBB#ff0176fd
timeline.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
timeline.captionTracks[].captions[].shadowFeature switchboolean; true or falsetrue
timeline.captionTracks[].captions[].shadowColorColorstring; #AARRGGBB#f2808080
timeline.captionTracks[].captions[].shadowFeatherStyle parameterfinite number; limits depend on the caption renderer46
timeline.captionTracks[].captions[].shadowOffsetXStyle parameterfinite number; limits depend on the caption renderer3
timeline.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
timeline.captionTracks[].captions[].contextIdPackage, style, or animation IDstring; required when the referenced resource is usedNon-empty
timeline.captionTracks[].captions[].lineSpacingStyle parameterfinite number; limits depend on the caption renderer50
timeline.captionTracks[].captions[].translationXPosition or anchor pointfinite number-2.8957557678222656
timeline.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
timeline.captionTracks[].captions[].inAnimationDurationAnimation period or durationinteger, milliseconds; normally >= 05472
timeline.captionTracks[].captions[].inAnimationIdPackage, style, or animation IDstring; required when the referenced resource is usedNon-empty
timeline.captionTracks[].captions[].outAnimationDurationAnimation period or durationinteger, milliseconds; normally >= 02801
timeline.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
timeline.captionTracks[].captions[].animationIdPackage, style, or animation IDstring; required when the referenced resource is usedNon-empty
timeline.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
timeline.captionTracks[].captions[].letterSpacingStyle parameterfinite number; limits depend on the caption renderer20
timeline.captionTracks[].captions[].letterSpacingTypeLetter-spacing modeinteger; 0 for percentage-like values, 1 for absolute values1