Tips3 min read

How to Make a Looping Animation, Part 1

Part 1, a detailed explanation of Looping animations.

Leah Han
Leah Han, Head of China BusinessMay 1, 2020
How to Make a Looping Animation? Part 1 thumbnail

Teacher Leah Han is here with a new ProtoPie Tip! This is part one of two which covers basic Looping Animations. For the second part, we will talk about Infinite Paging Scroll.

Looping animations gif

Let's start with the easiest one!

Rotate Looping

We will try to keep a layer rotating, let’s see how.

  1. Add a ‘Start’ trigger and a ‘Rotate’ response to the layer to make it start rotating automatically.
  2. Then input 360 as the rotation degree, so it will make a full circle clockwise.
  3. To make it don’t stop and keep rotating, check the ‘Repeat’ option at the bottom of the property panel.
  4. The last step is setting the “Easing’ curving and change the interval duration of each repeat.

In this example, I set it up with Linear curving without interval.

Setting up rotage looping gif
Setting up rotage looping

Amazing, right? But wait, there is more!
As you can see below, based on your settings, the rotate looping animation will give you different emotions.

3 different rotate looping animation gif
3 different rotate looping animation

Which one do you think is the best? There is no right answer, and it totally depends on your preferences. Remember to make a rotate looping, you just need to add one ‘Rotate’ response.

Let’s go with our next looping!

Move Looping

  1. Same as rotate, add a ‘Start’ trigger and a ‘Move’ response first.
  2. Then, decide how far the layer should move before come back. You can choose ‘move to’, which means you want the layer to move to an exact position (x=200). Also, you can choose ‘move by’, which means you don’t need to know where is the layer’s current position, you just need it to move forward to the right side with a distance of 200.
Move by with a distance of 200 gif
Move by with a distance of 200

3. Check the ‘Repeat’ option again and set up the ‘Easing’ curving.
(For this example, I used ‘move by’ +200.)

Checking the repeat option gif
Checking the repeat option

Why it doesn’t come back? Because we haven’t added the ‘move back’ effect. (I know it seems taken for granted, but sometimes we misled by easy things.)

So, there are still a few steps we have to do:

  1. Add one more ‘Move’ response to the same layer.
  2. Set the position as ‘move by’ -200 to make it go back to the left side with a distance of 200.
  3. Before checking ‘Repeat’, don’t forget to set up ‘Start delay’, because ‘move back’ should happen after the layer has moved to the right side.
Setting Move back response gif
Setting Move back response

For the Radius Looping, Scale Looping, and Opacity Looping. We should also use two responses. One is for changing the state, and another one is for changing the state back to the original one. Just like the Move Looping.

In the next ProtoPieTips and second part of the looping animation, we will learn how to make an infinite paging scroll like the one below.

An infinite paging scroll gif
An infinite paging scroll

If there are some other tips that you would like to see us talking about, feel free to let us know by replying.