source: trip-planner-front/node_modules/@angular/material/esm2015/tabs/tabs-animations.js@ 84d0fbb

Last change on this file since 84d0fbb was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 5.5 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { animate, state, style, transition, trigger, } from '@angular/animations';
9/**
10 * Animations used by the Material tabs.
11 * @docs-private
12 */
13export const matTabsAnimations = {
14 /** Animation translates a tab along the X axis. */
15 translateTab: trigger('translateTab', [
16 // Note: transitions to `none` instead of 0, because some browsers might blur the content.
17 state('center, void, left-origin-center, right-origin-center', style({ transform: 'none' })),
18 // If the tab is either on the left or right, we additionally add a `min-height` of 1px
19 // in order to ensure that the element has a height before its state changes. This is
20 // necessary because Chrome does seem to skip the transition in RTL mode if the element does
21 // not have a static height and is not rendered. See related issue: #9465
22 state('left', style({ transform: 'translate3d(-100%, 0, 0)', minHeight: '1px' })),
23 state('right', style({ transform: 'translate3d(100%, 0, 0)', minHeight: '1px' })),
24 transition('* => left, * => right, left => center, right => center', animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)')),
25 transition('void => left-origin-center', [
26 style({ transform: 'translate3d(-100%, 0, 0)' }),
27 animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)')
28 ]),
29 transition('void => right-origin-center', [
30 style({ transform: 'translate3d(100%, 0, 0)' }),
31 animate('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)')
32 ])
33 ])
34};
35//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFicy1hbmltYXRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL21hdGVyaWFsL3RhYnMvdGFicy1hbmltYXRpb25zLnRzIl0sIm5hbWVzIjpbXSwib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