Search.../

style

Gets an object containing information about the styles of a slideshow button.

Description

The following styles can be used with slideshow buttons:

Getting or setting styles of a slideshow button gets or sets the styles of the button's regular state. It does not set the styles of the button in the hover or disabled states.

Note: Not all styles can be used on all slideshow button designs. To determine which styles work with a specific slideshow button design, go to the design panel in the Editor and customize your design. The design options that you see in the design panel for your particular slideshow button are the styles you can use in your code.

Type:

StyleRead Only

Was this helpful?

Set the background color

Copy Code
1$w("#myElement").style.backgroundColor = "rgba(255,0,0,0.5)";
Get the background color

Copy Code
1let bgColor = $w("#myElement").style.backgroundColor;