Skip to content

Commit

Permalink
Remove scale animation from route transitions (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-lewandowski authored and AlexOverbeck committed Sep 12, 2019
1 parent 58b10f9 commit d225191
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions projects/go-lib/src/lib/animations/route.animation.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
animate,
AnimationTriggerMetadata,
query,
style,
transition,
Expand All @@ -8,7 +9,7 @@ import {

import { easing, timing } from './_configs';

export const routerAnimation =
export const routerAnimation: AnimationTriggerMetadata =
trigger('routerAnimation', [
transition('* <=> *', [
query(':enter',
Expand All @@ -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 }
)
Expand Down

0 comments on commit d225191

Please sign in to comment.