Spaces:
Running

pixel-art-master / script.js
Maxim7575's picture
انتشار کن اینو برام
7153cea verified
Raw History Blame Contribute Delete
807 Bytes
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
});