Spaces:
Running
Running
File size: 922 Bytes
cf561e3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | // 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)';
});
});
}); |