Calculating handle position and updating animation accordingly.