- In addition to any combination of text frames, images and artwork, slideshows can also contain animation. This opens up the possibility of all kinds of interesting effects. In the Exercise Files folder, open 02_03_slideshow_begin Click on the image and you'll see that this a multi-state object with four states all named in the Object States panel and with the Home state selected, double click on the text frame in that state to drill down and get that frame selected and then go to your Animation panel and choose the Fade In animation preset.
Now notice that the event here is defaulted to On State Load. That means that whenever this state of this multi-state object appears, the animation will play. Go to the Timing panel, select the object and change the delay to a half second. Now we can get all fancy and add all kinds of animation to this frame but we're going to keep it simple. There are a number of caveats you should be aware of when working with animation within multi-state objects. To learn about these, be sure to watch chapter six of Diane Burns's Creating Animations with Adobe InDesign CC course.
I find that it's usually easiest to create the MSO first and then drill down by repeatedly double clicking on the MSO to select the object you want to animate and then add the animation as we have done here. So I'm going to repeat this for the other three states. So I'm going to go to the Teen state, double click on the text frame, go to the Animation panel, add the Fade In preset, go to the Timing panel, add a delay of half a second and then go to the Teen state, repeat the process and finally, select the Business state and repeat the process one more time.
Once you've finished, go ahead and preview that in the EPUB Interactivity Preview panel and mine looks pretty good except that if I reload this by clicking on the play button again, I want to point out one subtle thing that's gone wrong. Notice that the initial state when it first appears, there's no caption. If I click on the buttons, the caption animates improperly for all the states including the first one but there's that problem of that initial view where the animation doesn't play and that's because the animation is set to play only on State Load and the state isn't considered loading in that first time that it appears.
Luckily, the solution to this is quite simple but not very obvious. All we need to do is select the multi-state object again and duplicate the Home states. So I'm going to grab the Home state and drag that onto the little page icon on the bottom right hand corner of the Object States panel. I'm going to rename this layer Start and I'm going to drag it to the top of the Object States panel and then I'm going to double click down to select the text frame within this state and I'm going to remove the animations so I'm going to go the Animation panel, change the preset from Fade In to None.
That's all we have to do. This works because this is the state that initially appears but it never reappears because none of the buttons point to it. So once somebody has clicked on a button, now they're navigating between the other four states they never get back to the Start state. So if you go ahead and preview that with EPUB Interactivity Preview panel, you'll see that the first state or the first appearance of this now has the text on it and then as you start to click through the buttons, each subsequent state has the animation in it.
Adding animation to individual states of a slideshow really opens up some interesting possibilities. I'm eager to see the imaginative ways that you put this technique to use.
- 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