From 3be2c69233ca055665537eaf6db4fbe8db94c4b8 Mon Sep 17 00:00:00 2001 From: axherrm Date: Wed, 3 Jan 2024 18:52:39 +0100 Subject: [PATCH] reorganise animation code --- src/app/app.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 8c89bb8..b5a7c1d 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -31,6 +31,10 @@ export class AppComponent { } ngAfterViewInit(): void { + this.addLangButtonAnimation(); + } + + addLangButtonAnimation() { const tl: gsap.core.Timeline = gsap.timeline({ scrollTrigger: { start: "top 90%%",