smoother transition with transform translate