Rotate and get back to normal

Back to How-to Discussions

Hi!

I'm not sure what you mean by "get back to normal continuously", but if you want make an image rotate once and then back, you can use Rotate: https://www.fusetools.com/docs/fuse/animations/rotate

<WhileTrue>
    <Rotate Target="theImage" Degrees="360" Duration="1"/>
</WhileTrue>

to make it spin continuously, you can use Spin: https://www.fusetools.com/docs/fuse/animations/spin

<WhileTrue>
    <Spin Frequency="1" Target="theImage"/>
</WhileTrue>

is this what you were looking for?

What I mean to say is first I want to rotate image to 45 degree and then again to -45. I want to make it continuesly in loop. I mean using WhileVisible not using WhilePressed just like in what we see in GIF image.

You can do that by adding a Rotation node to your element:

<Panel>
    <Rotation ux:Name="rot" />
</Panel>
<WhileTrue>
    <Cyclce Target="rot.Degrees" Low="-45" High="45" />
</WhileTrue>
Post Stats
  • 6
    replies
  • 992
    views
  • 3
    users
Frequent Posters