update tslint -> eslint

This commit is contained in:
2021-05-21 20:17:26 +02:00
parent 80260df71f
commit a195fafa6b
252 changed files with 3080 additions and 2420 deletions

View File

@@ -3,23 +3,20 @@ import {animate, query, state, style, transition, trigger} from '@angular/animat
export const fade = [
// the fade-in/fade-out animation.
trigger('fade', [
// the "in" style determines the "resting" state of the element when it is visible.
state('in', style({opacity: 1, transform: 'translateY(0px)'})),
// fade in when created. this could also be written as transition('void => *')
transition(':enter', [
style({opacity: 0, transform: 'translateY(-10px)'}),
animate(200)
]),
])
transition(':enter', [style({opacity: 0, transform: 'translateY(-10px)'}), animate(200)]),
]),
];
export const fader =
trigger('fader', [
transition('* <=> *', [
// Set a default style for enter and leave
query(':enter, :leave', [
export const fader = trigger('fader', [
transition('* <=> *', [
// Set a default style for enter and leave
query(
':enter, :leave',
[
style({
position: 'absolute',
left: 0,
@@ -27,10 +24,22 @@ export const fader =
opacity: 0,
transform: 'scale(1) translateY(-10px)',
}),
], {optional: true}),
// Animate the new page in
query(':enter', [
animate('200ms ease', style({opacity: 1, transform: 'scale(1) translateY(0)'})),
], {optional: true}),
]),
]);
],
{optional: true}
),
// Animate the new page in
query(
':enter',
[
animate(
'200ms ease',
style({
opacity: 1,
transform: 'scale(1) translateY(0)',
})
),
],
{optional: true}
),
]),
]);