Hey, I'm wondering if there is a way to calculate the styles applied by a timeline deterministically, and in a clean way.
E.g. I have a timeline with various tweens, I would like to get the styles at second 1.
I'm aware I could simply set the progress to 0.1 (if the overall length is 10), create a dummy element, and then scrape the styles from that element,
but that first of isn't clean + I don't know which styles were animated and which not, I could be scraping the wrong values.
Is there any way to do this cleanly?
PS:
The desired function could have the following syntax:
calcStyles(timeline: Timeline, time: number): { [key: string]: string }
Thanks for your help!