From 2392131ca0942745e0221c86c0daff24fb9c5600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berna=20T=C3=BClek?= <berna.tuelek@mni.thm.de> Date: Sun, 14 Apr 2019 19:04:49 +0200 Subject: [PATCH] Improve rubberBand animation --- src/app/components/shared/comment/comment.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/components/shared/comment/comment.component.ts b/src/app/components/shared/comment/comment.component.ts index 66ac86883..9c1f980f1 100644 --- a/src/app/components/shared/comment/comment.component.ts +++ b/src/app/components/shared/comment/comment.component.ts @@ -20,7 +20,7 @@ export const rubberBand = [ style({ transform: 'scale3d(0.95, 1.05, 1)', offset: .65 }), style({ transform: 'scale3d(1.05, 0.95, 1)', offset: .75 }), style({ transform: 'scale3d(1, 1, 1)', offset: 1 }) -] +]; @Component({ selector: 'app-comment', @@ -56,8 +56,8 @@ export class CommentComponent implements OnInit { langService.langEmitter.subscribe(lang => translateService.use(lang)); } - startAnimation(state) { - console.log(state) + startAnimation(state: string) { + console.log(state); if (!this.animationState) { this.animationState = state; } -- GitLab