Spaces:
Running
Running
Download script.js from nc46/bottle-flow-mapper: direct link, hf CLI and curl.
- Browser
- Download file 922 Bytes
-
https://huggingface.co/spaces/nc46/bottle-flow-mapper/resolve/main/script.js
- Command line
-
hf download hf://spaces/nc46/bottle-flow-mapper/script.js
-
curl -L -o script.js https://huggingface.co/spaces/nc46/bottle-flow-mapper/resolve/main/script.js
922 Bytes
| // Simple animation for flow steps on page load | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const steps = document.querySelectorAll('.flow-step'); | |
| steps.forEach((step, index) => { | |
| // Initial state | |
| step.style.opacity = '0'; | |
| step.style.transform = 'translateY(20px)'; | |
| // Animate in with delay | |
| setTimeout(() => { | |
| step.style.transition = 'opacity 0.5s ease, transform 0.5s ease'; | |
| step.style.opacity = '1'; | |
| step.style.transform = 'translateY(0)'; | |
| }, 200 * index); | |
| }); | |
| // Add hover effect enhancement | |
| steps.forEach(step => { | |
| step.addEventListener('mouseenter', function() { | |
| this.style.transform = 'translateY(-5px)'; | |
| }); | |
| step.addEventListener('mouseleave', function() { | |
| this.style.transform = 'translateY(0)'; | |
| }); | |
| }); | |
| }); |