Streaming live at 10am (PST)

How to change color of a sticky element on a different background?

Hi Guys, i need some help to find a solution for a nice UX Experience. How i can change automatical the color of sticky element if this element is on a different background color?

Thank you guys, hope you will have some solutions. Here are some Screenshots:

Bildschirmfoto 2021-11-03 um 16.31.07