Added IllegalArgumentException to setAnimationDuration