feat: style

This commit is contained in:
2026-04-20 23:03:33 +02:00
parent 7cb841072d
commit a2a77d01a6
+14 -1
View File
@@ -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;
});
});
}
},