as you're working js. you'll not be able to get exact solution of animation. you can shift to jQuery for the good result..
}, 1500 );
so this will work out with ease. 1500 is the speed of movement(animation) in ms. and 50% is the width till where it should animate.
Thanks & Regards