I know I'm reviving an ancient thread here, but I wondered if the progress trick was still considered best practice? As I still do this for all my timelines, where possible. The only time I don't is when a timeline has an onComplete callback, in which case it won't work because it'll fire the callback after caching.
The approach makes sense, but at the same time feels slightly hacky.
Best practice for "caching" timeline values
in GSAP
Posted
I know I'm reviving an ancient thread here, but I wondered if the progress trick was still considered best practice? As I still do this for all my timelines, where possible. The only time I don't is when a timeline has an onComplete callback, in which case it won't work because it'll fire the callback after caching.
The approach makes sense, but at the same time feels slightly hacky.