Changing background color of slide deck gallery

Hello,

I’m using a slide deck gallery and when I switch the images to fit instead of autocrop, a black border appears on both the right and left sides of the gallery. Is there a way to change the color of that background?

Thanks!

I have the same question. I want my slide deck background to match my page background but can’t find a way to change the setting or edit the code for that.

I have the same issue. Please add this enhancement.

Hi Richard, Rowdy and Andre :raised_hand_with_fingers_splayed:

You can use the Gallery API , specifically the currentItem property alongside the isPlaying property, you can check whether the gallery is playing or not, then get the src of the image from the current item, and then change the source of your background image to match the current image displayed by your slider gallery. You can use the onCurrentItemChanged() event handler to run your code automatically and change the background.

Hope this helps~!
Ahmad