I'm trying to use a different mask color on the second time an element is exposed. The color is set using a js variable named background. Here is the current code (with a fixed variable setting):
If I run this code a second time on the same page (after closing the first expose instance), the expose uses the same background as the first instance even though the variable has changed. How can I make it use the new background variable on the second usage?
var background = "#333333";
exposeApi = $("#contain1").expose({api: true, color: background, opacity:1}).load();
If I run this code a second time on the same page (after closing the first expose instance), the expose uses the same background as the first instance even though the variable has changed. How can I make it use the new background variable on the second usage?