Search Docs
Loading...
Skip to content

Type Alias: AssetStylePresetAnimationProperties

type AssetStylePresetAnimationProperties = { [K in Extract<BoolPropertyName, `animation/${string}`>]?: boolean } & { [K in Extract<EnumPropertyName, `animation/${string}`>]?: string } & { [K in Extract<FloatPropertyName, `animation/${string}`>]?: number } & { [K in Extract<ColorPropertyName, `animation/${string}`>]?: RGBColor | RGBAColor } & object & object;

The parameters of an AssetStylePresetAnimation: a map of the animation’s property paths to values. The animation’s animation/* properties (e.g. animation/slide/fade, animation/grow/scaleFactor) are value-checked and autocomplete, as are the animation controls (playback/duration, animationEasing, textWritingStyle, textWritingOverlap); any other property path is still accepted. These are animation paths, distinct from the block-property paths in AssetStylePresetProperties.

Type Declaration#

Name Type Description
playback/duration? number Animation controls applied outside the animation/* properties.
animationEasing? string -
textWritingStyle? string -
textWritingOverlap? number -