From a2a77d01a6f0b95079ca46aa1a2763cb90c01675 Mon Sep 17 00:00:00 2001 From: Julian Lechner Date: Mon, 20 Apr 2026 23:03:33 +0200 Subject: [PATCH] feat: style --- src/app/home/home.component.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts index aadb8f9..20974ec 100644 --- a/src/app/home/home.component.ts +++ b/src/app/home/home.component.ts @@ -334,8 +334,21 @@ export class HomeComponent implements OnInit, AfterViewInit, OnDestroy { this.aboutSectionObserver = new IntersectionObserver( (entries: IntersectionObserverEntry[]): void => { for (const entry of entries) { + if (!entry.isIntersecting) { + this.zone.run((): void => { + this.isAboutSectionInView = false; + }); + continue; + } + this.zone.run((): void => { - this.isAboutSectionInView = entry.isIntersecting; + this.isAboutSectionInView = false; + }); + + window.requestAnimationFrame((): void => { + this.zone.run((): void => { + this.isAboutSectionInView = true; + }); }); } },