/** * @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, group, state, style, transition, trigger, } from '@angular/animations'; // Animation values come from // https://github.com/material-components/material-components-web/blob/master/packages/mdc-menu-surface/_mixins.scss // TODO(mmalerba): Ideally find a way to import the values from MDC's code. export const panelAnimation = trigger('panelAnimation', [ state('void, hidden', style({ opacity: 0, transform: 'scaleY(0.8)', })), transition(':enter, hidden => visible', [ group([ animate('0.03s linear', style({ opacity: 1 })), animate('0.12s cubic-bezier(0, 0, 0.2, 1)', style({ transform: 'scaleY(1)' })), ]), ]), transition(':leave, visible => hidden', [animate('0.075s linear', style({ opacity: 0 }))]), ]); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5pbWF0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9hdXRvY29tcGxldGUvYW5pbWF0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQ0wsT0FBTyxFQUVQLEtBQUssRUFDTCxLQUFLLEVBQ0wsS0FBSyxFQUNMLFVBQVUsRUFDVixPQUFPLEdBQ1IsTUFBTSxxQkFBcUIsQ0FBQztBQUU3Qiw2QkFBNkI7QUFDN0Isb0hBQW9IO0FBQ3BILDJFQUEyRTtBQUMzRSxNQUFNLENBQUMsTUFBTSxjQUFjLEdBQTZCLE9BQU8sQ0FBQyxnQkFBZ0IsRUFBRTtJQUNoRixLQUFLLENBQ0gsY0FBYyxFQUNkLEtBQUssQ0FBQztRQUNKLE9BQU8sRUFBRSxDQUFDO1FBQ1YsU0FBUyxFQUFFLGFBQWE7S0FDekIsQ0FBQyxDQUNIO0lBQ0QsVUFBVSxDQUFDLDJCQUEyQixFQUFFO1FBQ3RDLEtBQUssQ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