Spaces:
Running
Running
File size: 568 Bytes
082a1d3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | document.addEventListener('DOMContentLoaded', function() {
// Initialize animations
const animatedElements = document.querySelectorAll('.fade-in, .slide-up');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('animate');
}
});
}, {
threshold: 0.1
});
animatedElements.forEach(el => observer.observe(el));
// Mobile menu toggle functionality will be handled by navbar component
}); |