-
All checks were successful
Deploy / trigger (push) Successful in 2s

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-05-01 11:57:40 +02:00
parent 3a48f7dbf1
commit 83970f7d1e
3 changed files with 121 additions and 50 deletions

View File

@@ -37,6 +37,10 @@
<li><a href="#lette" class="nav-link">La Ciociara</a></li>
</ul>
</nav>
<a href="index.php" class="logo-link">
<img src="img/woman-hair.png" alt="Logo" class="header-logo">
</a>
</div>
</header>
@@ -95,6 +99,28 @@
</div>
</div>
</footer>
<script>
const observerOptions = {
root: null,
rootMargin: '-30% 0px -35% 0px', // Attiva l'effetto quando l'elemento è nella fascia centrale
threshold: 0
};
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('active');
} else {
entry.target.classList.remove('active');
}
});
}, observerOptions);
document.querySelectorAll('.markdown-body p, .markdown-body li').forEach(el => {
observer.observe(el);
});
</script>
</body>
</html>