Adds options to set the speed of and pause at the end of the animation