# Move Animation with StateGroup

**URL:** <https://forums.fusetools.com/t/move-animation-with-stategroup/3202>\
**Category:** How-to Discussions\
**Created:** [December 6, 2016, 4:18pm UTC](https://forums.fusetools.com/t/move-animation-with-stategroup/3202 "2016-12-06T16:18:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Junseok\_Kim](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/junseok_kim/32/492_2.png) [@Junseok\_Kim](https://forums.fusetools.com/u/Junseok_Kim)\
**Post date:** [December 6, 2016, 4:18pm UTC](https://forums.fusetools.com/t/move-animation-with-stategroup/3202/1 "2016-12-06T16:18:08Z")

</div>

Problem: [https://vimeo.com/194525097](https://vimeo.com/194525097)

Code: [https://gist.github.com/banil-la/68e3d6e2fbefa7e1689ca3988268f82c](https://gist.github.com/banil-la/68e3d6e2fbefa7e1689ca3988268f82c)

As you can see in clip from vimeo,  
White panel have a three state.

1. Hidden at Y=“100%”
2. Shown at Y=“70%”
3. Shown at Y=“0%”  
(exactly, not using ‘Percent’ value)

There is no problem with sequential progress(1 -\> 2 -\> 3 -\> 2 -\> 1).  
However, the problem occurs if it is not sequential.

I expect when click a show panel button, the white panel move to step2, after switching from step3 to step1 immediately.  
But in my code, It’s not. white panel move to step3 directly.

How could i solve it?

---

<div class="post-metadata">

**Author:** ![Junseok\_Kim](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/junseok_kim/32/492_2.png) [@Junseok\_Kim](https://forums.fusetools.com/u/Junseok_Kim)\
**Post date:** [December 7, 2016, 4:07am UTC](https://forums.fusetools.com/t/move-animation-with-stategroup/3202/2 "2016-12-07T04:07:16Z")

</div>

[Resolved]

I found solution ‘SetSwipeActive’. When Click button, add this

`<SetSwipeActive Target="swipeUp" Value="false" />`

But, is it a right approach on UX side?

---

<div class="post-metadata">

**Author:** ![Kristian\_Hasselknipp](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/kristian_hasselknipp/32/549_2.png) [@Kristian\_Hasselknipp](https://forums.fusetools.com/u/Kristian_Hasselknipp)\
**Post date:** [December 8, 2016, 12:46pm UTC](https://forums.fusetools.com/t/move-animation-with-stategroup/3202/3 "2016-12-08T12:46:15Z")

</div>

Hi!

It is a bit hard to understand what was going wrong, but using `SetSwipeActive` is quite standard, so if it works for you i think you’ve found an OK solution. I’ll mark this ticket as resolved for now 🙂
