Spaces:
Running
Running
Download script.js from Maxim7575/pixel-art-master: direct link, hf CLI and curl.
- Browser
- Download file 807 Bytes
-
https://huggingface.co/spaces/Maxim7575/pixel-art-master/resolve/main/script.js
- Command line
-
hf download hf://spaces/Maxim7575/pixel-art-master/script.js
-
curl -L -o script.js https://huggingface.co/spaces/Maxim7575/pixel-art-master/resolve/main/script.js
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 | |
| }); | |