/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { animate, state, style, transition, trigger, AnimationTriggerMetadata, } from '@angular/animations'; /** * Animations used by the Material steppers. * @docs-private */ export const matStepperAnimations: { readonly horizontalStepTransition: AnimationTriggerMetadata; readonly verticalStepTransition: AnimationTriggerMetadata; } = { /** Animation that transitions the step along the X axis in a horizontal stepper. */ horizontalStepTransition: trigger('stepTransition', [ state('previous', style({transform: 'translate3d(-100%, 0, 0)', visibility: 'hidden'})), state('current', style({transform: 'none', visibility: 'visible'})), state('next', style({transform: 'translate3d(100%, 0, 0)', visibility: 'hidden'})), transition('* => *', animate('500ms cubic-bezier(0.35, 0, 0.25, 1)')) ]), /** Animation that transitions the step along the Y axis in a vertical stepper. */ verticalStepTransition: trigger('stepTransition', [ state('previous', style({height: '0px', visibility: 'hidden'})), state('next', style({height: '0px', visibility: 'hidden'})), state('current', style({height: '*', visibility: 'visible'})), transition('* <=> current', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')) ]) };