https://lovable.dev/projects/https://lovable.dev/projects/530a5e02-ed78-4b07-aea9-ef8883ee33ea-ed78-4b07-aea9-ef8883ee33ea
e637ce4 verified Download script.js from RedVisionMusic/cosmic-brand-blastoff: direct link, hf CLI and curl.
- Browser
- Download file 672 Bytes
-
https://huggingface.co/spaces/RedVisionMusic/cosmic-brand-blastoff/resolve/main/script.js
- Command line
-
hf download hf://spaces/RedVisionMusic/cosmic-brand-blastoff/script.js
-
curl -L -o script.js https://huggingface.co/spaces/RedVisionMusic/cosmic-brand-blastoff/resolve/main/script.js
672 Bytes
| // 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' | |
| }); | |
| }); | |
| }); | |
| // Intersection Observer for animations | |
| const observer = new IntersectionObserver((entries) => { | |
| entries.forEach(entry => { | |
| if (entry.isIntersecting) { | |
| entry.target.classList.add('animate-fadeIn'); | |
| } | |
| }); | |
| }, { | |
| threshold: 0.1 | |
| }); | |
| document.querySelectorAll('.animate-on-scroll').forEach(el => { | |
| observer.observe(el); | |
| }); |