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

Method _getAnimationDuration

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

Source from the content-addressed store, hash-verified

293 }
294
295 _getAnimationDuration() {
296 if (this._animationsDisabled) {
297 return '0ms';
298 }
299
300 if (this.animationDuration) {
301 return this.animationDuration;
302 }
303
304 return this.orientation === 'horizontal' ? '500ms' : '225ms';
305 }
306
307 private _handleTransitionend = (event: TransitionEvent) => {
308 const target = event.target as HTMLElement | null;

Callers 1

ngAfterContentInitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected