getAnimationDuration( name ) {

		let duration = - 1;

		const animation = this.animationsMap[ name ];

		if ( animation ) {

			duration = animation.duration;

		}

		return duration;

	}
Returns the duration for the defined animation.

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