How can I smoothly transition a color as it ages using a dynamic time scale? I want to calculate the age based on the difference in time rather than triggering an animation after an event.
I aim for a seamless gradient transition between two colors over approximately 10 minutes while maintaining state even after reloading.
Thank you!
EDIT: The plan is to receive a timestamp from the server, use that along with the current time to calculate elapsed time. Next, I need to determine the progress on a flexible scale (could range from 10 to 30 minutes). Finally, I want to assign the correct color and continue aging smoothly.
I am trying to find the best method to resume this animation midway and fade through every possible color seamlessly without chunking it into steps.