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