# Need some Animation Logic

**URL:** <https://forum.juce.com/t/need-some-animation-logic/10311>\
**Category:** Windows\
**Created:** [April 19, 2013, 5:48am UTC](https://forum.juce.com/t/need-some-animation-logic/10311 "2013-04-19T05:48:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![digi007](https://avatars.discourse-cdn.com/v4/letter/d/ec9cab/32.png) [@digi007](https://forum.juce.com/u/digi007)\
**Post date:** [April 19, 2013, 5:48am UTC](https://forum.juce.com/t/need-some-animation-logic/10311/1 "2013-04-19T05:48:40Z")

</div>

I have an Application , there is a button which can Add Tabs (Just like a Web Browser ex: Chrome). I am able to Drag the Tabs from one Position to another i.e, switch the position of tabs. But not able to make it look animated. I was just thinking if i move one Tab from left to right so that if this Tab will move half the distance right, an Animation effect should start which will move the neighbor tab to the left, it’s just similar to the Tabs in Google Chrome what i am supposed to do. LOGIC to do this is most Welcome. 🙂

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [April 19, 2013, 7:59am UTC](https://forum.juce.com/t/need-some-animation-logic/10311/2 "2013-04-19T07:59:46Z")

</div>

The juce toolbar does that kind of animation when you drag items around, you could look at that.
