MCPcopy Create free account
hub / github.com/angular/components / _getAnimationDuration

Method _getAnimationDuration

src/material/stepper/stepper.ts:302–312  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

300 }
301
302 _getAnimationDuration() {
303 if (this._animationsDisabled) {
304 return '0ms';
305 }
306
307 if (this.animationDuration) {
308 return this.animationDuration;
309 }
310
311 return this.orientation === 'horizontal' ? '500ms' : '225ms';
312 }
313
314 private _handleTransitionend = (event: TransitionEvent) => {
315 const target = event.target as HTMLElement | null;

Callers 1

ngAfterContentInitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected