# Repeat -1 an object in scroll scene

**URL:** <https://forum.pinegrow.com/t/repeat-1-an-object-in-scroll-scene/6175>\
**Category:** Pinegrow Interactions Add-on\
**Created:** [January 22, 2022, 6:45pm UTC](https://forum.pinegrow.com/t/repeat-1-an-object-in-scroll-scene/6175 "2022-01-22T18:45:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![erik-k](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@erik-k](https://forum.pinegrow.com/u/erik-k)\
**Post date:** [January 22, 2022, 6:45pm UTC](https://forum.pinegrow.com/t/repeat-1-an-object-in-scroll-scene/6175/1 "2022-01-22T18:45:53Z")

</div>

Is it possible de loop forever (moving up and down for example) an object when the object appears in the trigger and stop it when it leaves. Thanks in advance

---

<div class="post-metadata">

**Author:** ![abirana](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/abirana/32/4162_2.png) [@abirana](https://forum.pinegrow.com/u/abirana)\
**Post date:** [January 22, 2022, 8:06pm UTC](https://forum.pinegrow.com/t/repeat-1-an-object-in-scroll-scene/6175/2 "2022-01-22T20:06:09Z")

</div>

Yes you can use -1 to repeat animation in loop.

For your requirement we can do something like below:

> - First add interaction on the element which you want to animate.
> - Give it a proper name, for example **repeatAnimation**
> - For **Trigger** select **No event**
> - Now select an animation or create a custom one
> - At last click on **Advanced Options** and for **Repeat** enter **-1**

> - Now add **Scroll Scene** interaction where you need.
> - Arrange **Start and End** as you require
> - Now on **Animation 1** click on **Edit Animation**
> - Goto **Timeline Editor** and click on selector and select your element which you want to animate(first one where we added the interaction)

> - Now add a transition and keep it as **Tween**
> - For **Position** enter **0**
> - For **Duration** enter **0.5**
> - Click on **Add Property** \> goto **Interactions** \> select **Play Animation**
> - For **Play Animation** enter the animation name that is on the target (my example is **repeatAnimation** )

> - Again add new transition, select **Set** for **Type**
> - For **Position** enter **0.5**
> - Click on **Add Property** \> goto **Interactions** \> select **Pause Animation**
> - For **Pause Animation** enter the animation name (my example is **repeatAnimation** )

> Add one last transition and repeat same process as above but for **Position** enter **0**

At the end your timeline should look something like this.

 ![Screen Shot 2022-01-23 at 1.40.07 AM](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/8/87af744c79fea491b1ff8a3796d13d13ffd1d188.png)

---

<div class="post-metadata">

**Author:** ![erik-k](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@erik-k](https://forum.pinegrow.com/u/erik-k)\
**Post date:** [January 22, 2022, 9:39pm UTC](https://forum.pinegrow.com/t/repeat-1-an-object-in-scroll-scene/6175/3 "2022-01-22T21:39:33Z")

</div>

thanks a lot for you explanation !!
