source: trip-planner-front/node_modules/@angular/material/esm2015/tooltip/tooltip-animations.js

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

initial commit

  • Property mode set to 100644
File size: 3.9 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, keyframes, state, style, transition, trigger, } from '@angular/animations';
9/**
10 * Animations used by MatTooltip.
11 * @docs-private
12 */
13export const matTooltipAnimations = {
14 /** Animation that transitions a tooltip in and out. */
15 tooltipState: trigger('state', [
16 state('initial, void, hidden', style({ opacity: 0, transform: 'scale(0)' })),
17 state('visible', style({ transform: 'scale(1)' })),
18 transition('* => visible', animate('200ms cubic-bezier(0, 0, 0.2, 1)', keyframes([
19 style({ opacity: 0, transform: 'scale(0)', offset: 0 }),
20 style({ opacity: 0.5, transform: 'scale(0.99)', offset: 0.5 }),
21 style({ opacity: 1, transform: 'scale(1)', offset: 1 })
22 ]))),
23 transition('* => hidden', animate('100ms cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 0 }))),
24 ])
25};
26//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC1hbmltYXRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL21hdGVyaWFsL3Rvb2x0aXAvdG9vbHRpcC1hbmltYXRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUNILE9BQU8sRUFDTCxPQUFPLEVBRVAsU0FBUyxFQUNULEtBQUssRUFDTCxLQUFLLEVBQ0wsVUFBVSxFQUNWLE9BQU8sR0FDUixNQUFNLHFCQUFxQixDQUFDO0FBRTdCOzs7R0FHRztBQUNILE1BQU0sQ0FBQyxNQUFNLG9CQUFvQixHQUU3QjtJQUNGLHVEQUF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