Sets the new animation speed.
Use this function to set animation speed, in milliseconds. The default animation speed is 30 milliseconds.