# Move target for infinity

**URL:** <https://forums.fusetools.com/t/move-target-for-infinity/6329>\
**Category:** How-to Discussions\
**Created:** [August 7, 2017, 1:16pm UTC](https://forums.fusetools.com/t/move-target-for-infinity/6329 "2017-08-07T13:16:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erica](https://avatars.discourse-cdn.com/v4/letter/e/9dc877/32.png) [@Erica](https://forums.fusetools.com/u/Erica)\
**Post date:** [August 7, 2017, 1:16pm UTC](https://forums.fusetools.com/t/move-target-for-infinity/6329/1 "2017-08-07T13:16:29Z")

</div>

Hello!

I want to have an icon rotates (or moves) forth and back. This creates what I want. Is there somehow to create an infinity loop with WhileActive triggers or something like that? I couldn’t find anything about it in the documentation.

(Updated the post)

```auto
<Image ux:Name="IceBreakerIcon" Width="40%" Alignment="BottomCenter" StretchMode="UniformToFill" File="../../assets/IceBreakerIcon.png" X="0">

        <WhileActive Threshold="0.1">
          <Rotate Degrees="10" Duration="0.5" Delay="0.5" />
          <Rotate Degrees="-20" Duration="1" Delay="1" />
          <Rotate Degrees="20" Duration="1" Delay="2" />
          <Rotate Degrees="-20" Duration="1" Delay="3" />
          <Rotate Degrees="20" Duration="1" Delay="4" />
          <Rotate Degrees="-20" Duration="1" Delay="5" />
          <Rotate Degrees="20" Duration="1" Delay="6" />
          <Rotate Degrees="-20" Duration="1" Delay="7" />
          <Rotate Degrees="20" Duration="1" Delay="8" />
          <Rotate Degrees="-20" Duration="1" Delay="9" />
          <Rotate Degrees="20" Duration="1" Delay="10" />
        </WhileActive>

      </Image>

```

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [August 7, 2017, 1:25pm UTC](https://forums.fusetools.com/t/move-target-for-infinity/6329/2 "2017-08-07T13:25:47Z")

</div>

You should look into using [Cycle](https://www.fusetools.com/docs/fuse/animations/cycle_1) on a [Translation](https://www.fusetools.com/docs/fuse/translation) instead of `Move`. Here’s a proof of concept:

```auto
<App>
	<Rectangle Width="56" Height="56" Color="#18f" CornerRadius="2">
		<Translation ux:Name="rectTrans" X="-0.5" RelativeTo="Size" />
		<WhileVisible>
			<Cycle Target="rectTrans.X" Low="-0.5" High="0.5" Frequency="2" />
		</WhileVisible>
	</Rectangle>
</App>

```

You can still put the `Cycle` inside of `WhileActive`, as in your snippet.
