- In a previous movie, we saw how to make a slideshow that advances from slide to slide in order, forward or backward. But sometimes you want to give the user the ability to jump to a specific slide in any order that they wish. Here's how to do that. When creating this type of interactive experience, it's important to have some sort of a visual cue that helps the user determine which button is currently selected. In this case, that visual cue is a simple gray square behind each icon. The way this is usually done, and in InDesign, is to create a two-state button with each state having a different visual appearance.
But unfortunately, two-state buttons aren't supported in fixed layout EPUB or Publish Online output. So we have to get sneaky and do this a different way. In the Exercise Files folder, open up 03_02_slideshow_begin. And go to your layers panel and open up the MSO layer. You'll see that this layer consists of four groups and then four squares. The four squares are these four gray rectangles behind each piece of button artwork.
We need to group each of these rectangles with each slide. So this rectangle needs to be grouped with this image. This rectangle needs to be grouped with a different image, etc. Luckily, we can do this very easily using a trick in the layers panel. This is a really good trick to know about. So I want this square to be added to this Teen group. So Teen is already a group consisting of a text frame and an image. I need to add this square to it.
I can do that by simply grabbing this square in the layers panel, dragging it down into the Teen group, and it needs to be indented just like so. If I don't have it quite right, and it sticks out, that little bar sticks out like this, that's not going to work. So it needs to be pulled over so it's indented along with the stuff above it, let go, and now that is added to the Teen group. So now I need to repeat that three times. So I'm going to hide the Teen group. I'm going to flip the Team group open, grab the second square, drag that into the Team group.
Close that up, hide it, open up the Business group. Grab this rectangle. Add that to the Business group. Close that up, hide it. Open the Home group, grab the last remaining square, add that to the Home group. And now we've got four groups on this MSO layer. I need to display all the groups again. And then, I'm going to select all four groups and make a new multi-state object. Do that by clicking on the New icon in the bottom right corner of the object states panel.
Then I'm going to name the multi-state object Banking Slideshow. And I want to make sure that the slideshow begins with the Teen state, the one that we see here. So I want to make sure that is the top state in the object states panel. Now, all I need to do is wire up four buttons that are going to control this slideshow, because these aren't buttons. These are just button artwork. So I'm going to go to the layers panel and click on the buttons layer.
Then I'm going to create a clear frame on top of the button artwork for the first button. And then I'm going to give that the action Go to State. Now, this really should say, in my opinion, Go to a Particular State because what it's going to do is it's going to ask me which multi-state object should that button point to and which state of that multi-state object. Now, we got lucky here. It's defaulting to the right MSO and the right state but we're not going to get so lucky on the second one.
So, now I'm going to Option or Alt drag that button over to the second piece of artwork here. And then, I'm going to change the state on that one to point to the Team state. And then, I repeat the process for the third one. Point that to the Business state. Option or Alt drag that one to the fourth one and point that to the Home state. When you're all finished, go to the EPUB interactivity preview panel and click on the Play button in the bottom left and preview your work.
There, that looks great. This way to present a slideshow is another common design pattern that occurs in many digital publications. I hope that you have an opportunity to use this sometime in one of your projects.
- Creating animated navigation buttons
- Building interactive slideshows
- Creating reveal buttons
- Adding multiple choice and branching quizzes
- Creating a scrolling panorama
- Embedding video
- Creating buttons to send email