Join Keith Gilbert for an in-depth discussion in this video Create an image reveal: Method 1, part of InDesign: Fixed-Layout EPUB Interactive Techniques & Publish Online.
- In this movie, we're going to create an effect that you've no doubt seen before. A grid of images, and when you tap an image, the image disappears and information about the image appears in its place. In this case, we want the user to be able to reveal more than one object at a time. In the Exercise Files folder, open 03_02_reveal_begin. I've done some manual labor here for you. I've got text frames positioned over images six times here.
What we're going to do to begin is we're going to select the Robert Bott text frame and the image underneath it, and make a new multi-state object by clicking on the New button on the bottom right corner. That makes a two-state multi-state object. I'm going to give that object a name: Robert Bott. And then I'm going to repeat that process for Cheri Mann and her image underneath. And then you could repeat the process for the other four people. Next, I'm going to create a new layer, and I'm going to call this layer Buttons, and just for clarity, I'm going to choose a different color for this layer so it really shows up on the screen well.
So I'll make it black. And then on this Buttons layer, I want to create a clear frame over each of these six different text frames. A real quick easy way to do that is to take your rectangle tool and to start up here in the corner and draw a clear frame over each text frame. And take your gridify feature. The gridify feature, if you're not familiar with it, consists of tapping the right arrow key on the keyboard twice to spawn two more columns and then the up arrow key once to spawn another row.
Now we have a grid of six frames that we'll just snap right on top of the other six frames, and voila. There we go. Now we're going to turn each of these frames into a button. So I'm going to select the one over Robert's text frame, and for the action, I'm going to choose "Go To Next State." And then it says, "Okay, which multi-state object "should I go to the next state of?" And we're going to pick Robert Bott. Then we select this frame, and choose the Go To Next State action for that also, and it says, "Which multi-state object?" We're going to choose Cheri Mann, and you would repeat that process for the other four.
Let's preview this and see we what this looks like. In the EPUB interactivity preview panel, I'll click the play button, and if I click on Robert Bott, I see his image. Click it again, the text comes back. Same with Cheri. That's good, but I want the photos to be initially displayed and have the text appear when you click. This is the other way around. Let's see how we could fix that. Back here, I'm going to hide the Buttons layer so it doesn't get in my way at the moment. And I'm going to select the first multi-state object, the one corresponding to Robert, and even though the text frame is the state that is being displayed at the moment, it might seem like all we have to do is select state two.
So that's the current appearance, and we'd be good. But that wouldn't fix the problem. The top state in the object states panel is always the one that is the initial state when the page is first displayed. So what I have to do is I have to drag state two to the top of the list. So then I would go to the Cheri Mann multi-state object, grab her image, and drag that to the top of the list, and repeat that for Cecil, Gerard, Walter and Naomi. So now when I preview this, the images are initially displayed, and then I click.
Whoops, I forgot to unlock my buttons layer, however. So I'm going to go over here. It wasn't locked. It was hidden, actually. I'm going to make that layer visible and reload the preview, and then these now work as intended. So this method, which allows multiple objects to be revealed at the same time on the screen works well as long as the objects don't overlap. But sometimes, tight quarters require that one box automatically close when another box is open. We'll see how to do this in another movie.
- 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