You can buy this project and download/modify it how often you want.
<rect> x Animation in 'onclick' <rect> x Animation in 'onclick' Position A Position B Click on Play button (green triangle) to start animation Click on Pause button (yellow rects) to stop animation