Forum Discussion
Make text on master slide always on top
I don't believe there's a one-click solution in Storyline to ensure that objects on a master slide are always on top. However, you can achieve this by executing a JavaScript trigger on a master slide when the timeline starts:
document.querySelector('[data-acc-text="footer"]').style.zIndex = "9999";
This line selects the element with the attribute data-acc-text="footer" and applies a z-index of 9999, effectively bringing it to the front if there are no other higher z-index values on the page.
- JamesCarson2 months agoCommunity Member
Doesn't seem to work with layers on the slide. Either that or I have no idea how to trigger the '[data-acc-text="footer"]' correctly, I named the text box "footer"
- Nedim2 months agoCommunity Member
Let’s say you have a shape or text on a master slide that you always want to appear on top. Right-click the element, select Accessibility, and enter some Alternative Text—this can be anything you like, just make sure the same text is used in your code. Then, create an Execute JavaScript trigger with the following code:
document.querySelector('[data-acc-text="footer"]').style.zIndex = "9999";
- JamesCarson2 months agoCommunity Member
OK tried that too, but still doesn't work. Looks like the layers are on top and not the footer.