in website/src/components/HeroCanvas.tsx [112:127]
function onCanvasIntersection(entries) {
entries.forEach((entry) => {
if (entry.isIntersecting && isLoaded) {
if (isLoaded && !isRendering) {
animate();
} else {
console.log('Loading');
}
} else {
if (animationFrame) {
cancelAnimationFrame(animationFrame);
isRendering = false;
}
}
});
}