Spaces:
Running

File size: 807 Bytes
7153cea
458f58e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7153cea
 
 
458f58e
7153cea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

document.addEventListener('DOMContentLoaded', function() {
    // Add animations to elements
    const animatedElements = document.querySelectorAll('.course-card, .feature-card');
    animatedElements.forEach((el, index) => {
        el.style.animationDelay = `${index * 0.1}s`;
        el.classList.add('slide-up');
    });

    // Smooth scrolling for anchor links
    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
        anchor.addEventListener('click', function (e) {
            e.preventDefault();
            document.querySelector(this.getAttribute('href')).scrollIntoView({
                behavior: 'smooth'
            });
        });
    });

    // Initialize feather icons
    feather.replace();

    // Mobile menu toggle functionality will be added by navbar component
});