Spaces:
Running

bottle-flow-mapper / script.js
nc46's picture
can you make a very simple process map diagram - please make it simple with arrows and flow chart UNCLEAN BOTTLE HANDLING AND STAGING
cf561e3 verified
Raw History Blame Contribute Delete
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)';
});
});
});