Also, made sure to show me how I can add smooth transitions as well, given the complex logic.
Discussion
ChatGPT didn't do this magically to me, but witht he correct queries and follow-up corrections I came up to the solution that I otherwise would have spent weeks on.