From d225191733bd1747df270ffa4d6fda344fbd8bc7 Mon Sep 17 00:00:00 2001 From: Patrick Lewandowski Date: Thu, 12 Sep 2019 11:23:44 -0400 Subject: [PATCH] Remove scale animation from route transitions (#173) --- projects/go-lib/src/lib/animations/route.animation.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/projects/go-lib/src/lib/animations/route.animation.ts b/projects/go-lib/src/lib/animations/route.animation.ts index 1bc72bd5a..b75a0b623 100644 --- a/projects/go-lib/src/lib/animations/route.animation.ts +++ b/projects/go-lib/src/lib/animations/route.animation.ts @@ -1,5 +1,6 @@ import { animate, + AnimationTriggerMetadata, query, style, transition, @@ -8,7 +9,7 @@ import { import { easing, timing } from './_configs'; -export const routerAnimation = +export const routerAnimation: AnimationTriggerMetadata = trigger('routerAnimation', [ transition('* <=> *', [ query(':enter', @@ -21,15 +22,15 @@ export const routerAnimation = query(':leave', [ style({ opacity: 1 }), - animate(timing + easing, style({ opacity: 0, transform: 'scale(0.95)' })) + animate(timing + easing, style({ opacity: 0 })) ], { optional: true } ), query(':enter', [ - style({ opacity: 0, transform: 'scale(0.95)' }), - animate(timing + easing, style({ opacity: 1, transform: 'scale(1)' })) + style({ opacity: 0 }), + animate(timing + easing, style({ opacity: 1 })) ], { optional: true } )