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.0 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 | */
|
---|
8 | import { animate, state, style, transition, trigger, } from '@angular/animations';
|
---|
9 | /**
|
---|
10 | * Animations used by the MatFormField.
|
---|
11 | * @docs-private
|
---|
12 | */
|
---|
13 | export const matFormFieldAnimations = {
|
---|
14 | /** Animation that transitions the form field's error and hint messages. */
|
---|
15 | transitionMessages: trigger('transitionMessages', [
|
---|
16 | // TODO(mmalerba): Use angular animations for label animation as well.
|
---|
17 | state('enter', style({ opacity: 1, transform: 'translateY(0%)' })),
|
---|
18 | transition('void => enter', [
|
---|
19 | style({ opacity: 0, transform: 'translateY(-5px)' }),
|
---|
20 | animate('300ms cubic-bezier(0.55, 0, 0.55, 0.2)'),
|
---|
21 | ]),
|
---|
22 | ])
|
---|
23 | };
|
---|
24 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC1hbmltYXRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL21hdGVyaWFsL2Zvcm0tZmllbGQvZm9ybS1maWVsZC1hbmltYXRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUNILE9BQU8sRUFDTCxPQUFPLEVBQ1AsS0FBSyxFQUNMLEtBQUssRUFDTCxVQUFVLEVBQ1YsT0FBTyxHQUVSLE1BQU0scUJBQXFCLENBQUM7QUFFN0I7OztHQUdHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sc0JBQXNCLEdBRS9CO0lBQ0YsMkVBQT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