Making an Animated Route Map
Remember those cool flight maps from Raiders of the Lost Ark and the other Indiana Jones movies?
There are tutorials all over the web for how to make effects like this in applications like After Effects, Final Cut Pro, and even Keynote (courtesy of the amazing Erica Gamet). Here’s how to make something similar with InDesign.
See also: Adventures in Keynote Animations at CreativePro
Start with a background map image. It’s best to put it on its own layer or at least lock it so you’re not accidentally selecting it as you work with the animation effects.
Use the Pen tool to draw a straight line (curved lines won’t work) from one location to another. Format the line with a solid stroke.
With the Selection tool, copy the line and paste it in place (Edit > Paste in Place), so you have two copies stacked on top of one another.
Select both copies.
In the Animation panel, click the button to convert to motion path.
The top copy of the line becomes the motion path.
In the Properties section, choose Animate: To Current Location.
Give the animation a name.
If you want to control the animation with a button, deselect the On Page Load event.
Make sure that both Speed and Opacity are set to None.
Preview the animation. If it moves too quickly or slowly for your taste, and adjust the Duration.
Create a mask (a frame with no stroke and no fill) that just reveals the end position of the animation. Masking the animation is what will make the line appear to grow in length rather than just move over the map.
With the Selection tool, select the animated line. Cut it and paste it into the mask (Edit > Paste Into).
To control when the animation plays, make a button in the Buttons and Forms panel. Name it to match the animation.
For the Action choose On Release or Tap, Animation, Play.
Use the EPUB Interactivity Preview panel to preview the animation to confirm that the button works.
Now repeat the process for as many legs of the trip as you want. You can either use different buttons for different legs of the trip, or wire up all the legs of the trip in the right order to the same button.
When you’re satisfied, export the document to Publish Online or Fixed-Layout EPUB.
Here’s what a finished animated route map looks like.
Be aware that if you need to tweak any settings of a masked animation, you will need to cut it out of the mask (paste it in place so it doesn’t get moved out of position). After you make your tweaks, paste the animation back into the mask, and go back to the Buttons and Forms panel and re-establish the button to trigger the animation (the trigger event is destroyed when you cut the animation out of the mask).
Mike, just a comment. I don’t use interactive very much. I am curious, if curved paths don’t work, why does the “Convert to motion path” icon have a curved arrow?
Hi Jake- Great question! Curves are tricky first because it’s hard to get the motion path to follow the original shape. There’s always some distortion of the motion path due to the thickness of the stroke (they only match up perfectly with zero stroke width), and the fact that you can only choose one of nine origin points for the animation in the panel. That means each endpoint of the path must be exactly at one of those points for the motion path to align with the object. This is OK for straight lines and something like a semi-circle, but most curves will just look like they’re wiggling and sliding along the page instead of growing in length. It’s an interesting thing and maybe worth another post at some point.
I’ve used curved motion paths to show a car in a scene go over a hill (and disappear into the distance with a scale effect).
Ah I see what you were doing, I know I should have read it properly before giving my 5 cents. Please excuse me. Nice tutorial by the way. :)
Thanks Tim. No worries :)
Does anyone have any experience of extracting a MSO from a fxl epub and using it in a web page?