Forum Discussion
Help with displaying slide layers on click on a button
You'll have to get comfortable with trigger conditions and variables.
- Use a numeric variable to track which layer is currently showing.
- Use conditional triggers to show the "next" or "previous" layer based on the value of variable.
- After the trigger that shows another layer, adjust the variable so it equals that layer's number.
The attached file demonstrates this with 3 layers.
Obviously, the more layers in the carousel, the more triggers you'll need.
Also note that the slide includes triggers to show the appropriate layer based on the variable's value. The default value is 1, so layer 1 will show the first time the user visits the slide.
I included a text box that displays the variable's value. That's usually not something you'd show to the user. But it helps to include that during development, so you can see whether the variable is changing as expected.
It's worth it to learn about trigger conditions and variables. They provide the real power in Storyline. Here's the User Guide info:
- AnnaBasile2 years agoCommunity Member
Thank you so much, Judy! I got it up and running as desired! I am very grateful for your help.
Related Content
- 9 months ago
- 12 months ago