Skip to content

Commit

Permalink
reorganise animation code
Browse files Browse the repository at this point in the history
  • Loading branch information
axherrm committed Jan 3, 2024
1 parent a6faa5f commit cd546af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd546af

Please sign in to comment.