first commit
This commit is contained in:
parent
e622bc12e3
commit
bb47283766
|
|
@ -264,6 +264,17 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
|
||||
sections.forEach((section) => observer.observe(section));
|
||||
|
||||
// Hide scroll indicator when footer is visible
|
||||
const footerEl = document.querySelector("footer.page-footer");
|
||||
if (footerEl && scrollIndicator) {
|
||||
const footerObserver = new IntersectionObserver((entries) => {
|
||||
entries.forEach((entry) => {
|
||||
scrollIndicator.style.opacity = entry.isIntersecting ? "0" : "";
|
||||
});
|
||||
}, { threshold: 0.05 });
|
||||
footerObserver.observe(footerEl);
|
||||
}
|
||||
|
||||
// ============ SMOOTH SCROLL (Navbar) ============
|
||||
document.querySelectorAll('a[href^="#"]').forEach((anchor) => {
|
||||
anchor.addEventListener("click", function (e) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue