ux-flow-symphony / script.js
ShubhraSaha's picture
Create a clean, modern process timeline section for a UX case study, inspired by high-end SaaS portfolio websites. The layout should be calm, minimal, and professional — with soft gradients, large background circles, and a horizontal 3-phase structure.
8c694a3 verified
raw
history blame contribute delete
426 Bytes
// Mobile responsive adjustments
function adjustForMobile() {
if (window.innerWidth < 768) {
document.querySelectorAll('.timeline-pill').forEach(pill => {
pill.style.gridColumn = '1 / -1';
});
}
}
// Initialize
window.addEventListener('DOMContentLoaded', () => {
adjustForMobile();
feather.replace();
});
// Handle window resize
window.addEventListener('resize', adjustForMobile);