Spaces:
Running
Running
Download script.js from vjlopezvilla/landerverse: direct link, hf CLI and curl.
- Browser
- Download file 641 Bytes
-
https://huggingface.co/spaces/vjlopezvilla/landerverse/resolve/main/script.js
- Command line
-
hf download hf://spaces/vjlopezvilla/landerverse/script.js
-
curl -L -o script.js https://huggingface.co/spaces/vjlopezvilla/landerverse/resolve/main/script.js
641 Bytes
| // Initialize Feather Icons | |
| document.addEventListener('DOMContentLoaded', () => { | |
| if (typeof feather !== 'undefined') { | |
| feather.replace(); | |
| } | |
| }); | |
| // Simple interaction: Add subtle scroll reveal effect | |
| const observerOptions = { | |
| threshold: 0.1 | |
| }; | |
| const observer = new IntersectionObserver((entries) => { | |
| entries.forEach(entry => { | |
| if (entry.isIntersecting) { | |
| entry.target.classList.add('animate-fade-in'); | |
| observer.unobserve(entry.target); | |
| } | |
| }); | |
| }, observerOptions); | |
| // Observe sections (if we want to add specific classes later) | |
| // Currently keeping it simple as requested |