background


backgroundBackgroundOptions

Sets or gets an object containing information about the TextMask's background.

Setting the src property sets the source of the TextMask's background. The src property can be set to an image or a video. Images can either be from the Media Manager or an external image from any web location. Videos must come from the Media Manager.

The supported URL formats are:

  • Images from the Media Manager: wix:image://v1//#originWidth=&originHeight=[&watermark=]
  • Videos from the Media Manager: wix:video://v1//#posterUri=&posterWidth=&posterHeight=
  • Images from the web: http(s)://

The URL for Media Manager images and videos is the fileUrl value returned by the listFiles() function.

Getting the src property gets the source of the TextMask's background.

Was this helpful?
Yes
No