setAnimationDuration( name, duration ) {

		const animation = this.animationsMap[ name ];

		if ( animation ) {

			animation.duration = duration;
			animation.fps = ( animation.end - animation.start ) / animation.duration;

		}

	}
Sets the duration to the given value for the defined animation.

@param {string} name - The animation name.
@param {number} duration - The duration to set.