In this tutorial, you'll learn about Articulate Storyline's motion path animations, which let you move objects along an invisible track on your slide. Motion paths can be triggered at a certain point on the timeline or by a learner's actions.
If you'd like to work along with the video and you haven't already downloaded the practice files, you can get a copy here. Watch this video first, then follow the steps below to practice.
For this exercise we'll build two motion path animation slides—one that's timed to the timeline and one that's triggered when a learner clicks a button.
To get started, open 03C_Triggered_Motion_Paths.story from your Storyline_Files folder and go to the first slide.
- The first thing we'll do is hide the large "Sexual Harassment" book (Group 1) using the Show/Hide button on the timeline.
- Then we'll stack the blue Frontline Managers book and the yellow Warehouse Employees book over where the large book was located before we hid it.
- Since we're working on the Managers book first, go ahead and hide the yellow Employees book.
- Now select the blue Managers book and add a Turns motion path to it. Position the animation path so that it ends with the blue book sitting on the Frontline Managers shelf. Your slide should look something like the one shown below.
- Preview the slide to see how the motion path works.
- Return to your slide and select the blue Managers book. On the Animations tab, double-click the Animation Painter button.
- Use the timeline to unhide the Employees book and then select it to apply the Turn animation we copied from the Managers book.
- To turn the Animation Painter back off again, just click the Animation Painter button on the ribbon or press Esc on your keyboard.
- Select the motion path and position the endpoint of the animation so it is on the Warehouse Employees shelf.
- Preview the slide to see how the motion paths are working.
We want these books to animate at a certain point on the timeline. To do that, we'll add some cue points and use them to trigger the animations.
- On the timeline, create one cue point at the 1-second mark and another cue point at the 2-second mark.
- Double-click the existing trigger for the Manager object. Modify the trigger so that the Manager object will move when the timeline reaches cue point #1.
- Update the existing trigger for the Employee object to move when the timeline reaches cue point #2.
- Preview the slide to see how it works.
- When you're done, don't forget to unhide the Sexual Harassment book that we hid earlier.
Now we'll look at another example that's animated based on triggers. In this case, we'll add buttons that trigger an animation to the left or right, depending on which button is clicked.
- Go to the second slide in your practice file and select the blue box shape at the bottom of the slide.
- Add a Line motion path and use the Path Options to set the direction to the left.
- Add another Line motion path on that same shape and set it to move to the right.
Now we'll set up the triggers so that clicking the left button will move the box to the left and clicking the right button will move it to the right.
- Modify the trigger for the first motion path so the box moves on motion path 1 when the user clicks the left button.
- Modify the second motion path so the box moves on motion path 2 when the user clicks the right button.
- Preview the slide and see how it works. Try clicking the left button twice in a row and notice what happens.
- Return to the slide and update the Path Options for both motion paths to use a Relative Start Point.
- Now Preview your slide again and notice the difference when you click the same button more than once.
Now you know how to create motion paths and trigger them based on the timeline and on user actions.
In our next tutorial, you'll see how easy it is to create a tabs interactions in Storyline.