From cd546af13acd41e5a490953dc7c53ba52f5e6d6a 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 8c89bb8..aec8a9b 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -31,9 +31,13 @@ export class AppComponent { } ngAfterViewInit(): void { + this.addLangButtonAnimation(); + } + + addLangButtonAnimation() { const tl: gsap.core.Timeline = gsap.timeline({ scrollTrigger: { - start: "top 90%%", + start: "top 90%", trigger: this.educationCard.nativeElement, end: "top top", // markers: true, // TODO remove