A continuation of ch04-i-wait.html. The complete source identity, every recorded occurrence, and linked equations are on its first page.
Source transcript · continued
Download complete source text ↓1,538 lines · 43.5 KB
}
});
gsap.from('.legacy-final', { scale: 0.8 });
// ═══════════════════════════════════════════════════════════════
// Smooth scroll enhancement
// ═══════════════════════════════════════════════════════════════
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
gsap.to(window, {
duration: 1.5,
scrollTo: target,
ease: 'power3.inOut'
});
}
});
});
// ═══════════════════════════════════════════════════════════════
// Parallax effects
// ═══════════════════════════════════════════════════════════════
gsap.to('.void-breath', {
y: -100,
scrollTrigger: {
trigger: '#sceneVoid',
start: 'top top',
end: 'bottom top',
scrub: 1
}
});
</script>
</body>
</html>