source: trip-planner-front/node_modules/@angular/material/esm2015/sidenav/drawer-animations.js@ 6a3a178

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

initial commit

  • Property mode set to 100644
File size: 4.1 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 drawers.
11 * @docs-private
12 */
13export const matDrawerAnimations = {
14 /** Animation that slides a drawer in and out. */
15 transformDrawer: trigger('transform', [
16 // We remove the `transform` here completely, rather than setting it to zero, because:
17 // 1. Having a transform can cause elements with ripples or an animated
18 // transform to shift around in Chrome with an RTL layout (see #10023).
19 // 2. 3d transforms causes text to appear blurry on IE and Edge.
20 state('open, open-instant', style({
21 'transform': 'none',
22 'visibility': 'visible',
23 })),
24 state('void', style({
25 // Avoids the shadow showing up when closed in SSR.
26 'box-shadow': 'none',
27 'visibility': 'hidden',
28 })),
29 transition('void => open-instant', animate('0ms')),
30 transition('void <=> open, open-instant => void', animate('400ms cubic-bezier(0.25, 0.8, 0.25, 1)'))
31 ])
32};
33//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJhd2VyLWFuaW1hdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbWF0ZXJpYWwvc2lkZW5hdi9kcmF3ZXItYW5pbWF0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFDSCxPQUFPLEVBQ0wsT0FBTyxFQUNQLEtBQUssRUFDTCxLQUFLLEVBQ0wsVUFBVSxFQUNWLE9BQU8sR0FFUixNQUFNLHFCQUFxQixDQUFDO0FBRTdCOzs7R0FHRztBQUNILE1BQU0sQ0FBQyxNQUFNLG1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