Spaces:
Running

brainboost-academy / script.js
bravo09's picture
can you prepared backend
082a1d3 verified
Raw History Blame Contribute Delete
568 Bytes
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
});