Object

Fill

The object for setting a fill type and attachment for a component’s background fill.

Properties

type
string
(Required)

The type of fill to apply.

attachment
string

Indicates how the fill should behave when a user scrolls. Valid values:

  • scroll (default): The fill scrolls along with its component.

  • fixed: The fill stays at a fixed position within the viewport.

Discussion

This is an abstract definition. Do not use this object type directly; use only the objects that extend Fill, for example GradientFill, ImageFill and VideoFill.

See Also

Backgrounds for Components

Applying a Background to a Component

Change the appearance of the backgrounds in your article.

object ImageFill

The object for adding an image background fill to a component.

object RepeatableImageFill

The object for adding a background image that can be repeated.

object VideoFill

The object for adding a video background fill to a component.

object LinearGradientFill

The object for displaying a linear gradient as a component background.

object GradientFill

The properties shared by all gradient fill types.

object ColorStop

The object for specifying the color and location for a color stop in a gradient.