Looping an animation causes it to repeat. You can loop animations in Advanced mode . Each element's animation can be looped separately, or you can loop a more complex animation involving multiple elements.
Loop the animation for a single element
- On the timeline, click the Set animation repeat button on the animation layer that you want to loop.
- In the pop-up menu, select an option:
- Infinite- The animation loops infinitely.
- ___ times - The animation loops to play the specified number of times in total.
- None- The animation does not loop.
Looped keyframes show as translucent copies on the timeline. In the example below, the red-div element has a 0.5-second-long animation that loops to play 4 times in total.
You can preview the looped animation on the stage by clicking Playin the timeline.
Loop the animation for multiple elements
You can add an event to loop all animation on the page, starting and ending at the times you specify.
- Set a timeline label where you want the animation loop to start:
- Right-click the Eventstrack (the first row of the timeline) where you want the animation to start looping, and select Add label...from the pop-up menu.
- Enter a label name such as
loopStart
in the pop-up dialog. - Press Enter.
- Right-click the Eventstrack where you want the animation loop to end, and select Add eventfrom the pop-up menu.
- Double-click the event markerto configure the event:
- For the Action, choose:
- Timeline> gotoAndPlay for infinite looping.
- Timeline> gotoAndPlayNTimes for a specific number of loops.
- For the Receiver, choose the page.
- For the Configuration, select the label you created earlier (for example,
loopStart
) and set the number of times you want to repeat.
- For the Action, choose:
Use the Previewbutton to see how your looped animation behaves in a browser.