Need some Animation Logic

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. :slight_smile:

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