diff --git a/client/src/app/shared/animations.ts b/client/src/app/shared/animations.ts index c41f83bd6..4c11aa4e9 100644 --- a/client/src/app/shared/animations.ts +++ b/client/src/app/shared/animations.ts @@ -3,7 +3,7 @@ import { trigger, animate, transition, style, query, stagger, group } from '@ang const fadeVanish = [ style({ transform: 'translateY(0%)', opacity: 1 }), animate( - '200ms ease-in-out', + '150ms ease-in-out', style({ transform: 'translateY(0%)', opacity: 0 @@ -11,16 +11,17 @@ const fadeVanish = [ ) ]; -const fadeAppear = [ - style({ transform: 'translateY(0%)', opacity: 0 }), - animate('200ms ease-in-out', style({ transform: 'translateY(0%)', opacity: 1 })) -]; +// Requires more generic way to trigger parallel animations +// const fadeAppear = [ +// style({ transform: 'translateY(0%)', opacity: 0 }), +// animate('200ms ease-in-out', style({ transform: 'translateY(0%)', opacity: 1 })) +// ]; const justEnterDom = [style({ opacity: 0 })]; const fadeMoveIn = [ style({ transform: 'translateY(30px)' }), - animate('250ms ease-in-out', style({ transform: 'translateY(0px)', opacity: 1 })) + animate('150ms ease-in-out', style({ transform: 'translateY(0px)', opacity: 1 })) ]; export const pageTransition = trigger('pageTransition', [ @@ -30,28 +31,19 @@ export const pageTransition = trigger('pageTransition', [ /** keep the dom clean - let all items "just" enter */ query(':enter mat-card', justEnterDom, { optional: true }), - query(':enter .on-transition-fade', justEnterDom, { optional: true }), query(':enter mat-row', justEnterDom, { optional: true }), - query(':enter mat-expansion-panel', justEnterDom, { optional: true }), /** parallel vanishing */ group([ - query(':leave .on-transition-fade', fadeVanish, { optional: true }), query(':leave mat-card', fadeVanish, { optional: true }), - query(':leave mat-row', fadeVanish, { optional: true }), - query(':leave mat-expansion-panel', fadeVanish, { optional: true }) + query(':leave mat-row', fadeVanish, { optional: true }) ]), /** parallel appearing */ group([ - /** animate fade in for the selected components */ - query(':enter .on-transition-fade', fadeAppear, { optional: true }), - /** Staggered appearing = "one after another" */ query(':enter mat-card', stagger(50, fadeMoveIn), { optional: true }), query(':enter mat-row', stagger(30, fadeMoveIn), { optional: true }) - // disabled for now. They somehow appear expanded which looks strange - // query(':enter mat-expansion-panel', stagger(30, fadeMoveIn), { optional: true }) ]) ]) ]); diff --git a/client/src/app/shared/components/head-bar/head-bar.component.html b/client/src/app/shared/components/head-bar/head-bar.component.html index 1b18b62aa..239f9dbdb 100644 --- a/client/src/app/shared/components/head-bar/head-bar.component.html +++ b/client/src/app/shared/components/head-bar/head-bar.component.html @@ -1,37 +1,27 @@ -
- - - -
+
@@ -39,21 +29,20 @@
-
+
-
+
- +
@@ -80,7 +68,7 @@