I have what I think is a similar question. I want to build a tween that looks like this:
gsap.to(".heart`${life}`,{opacity:0, duration 1.5, y:-50, delay:4.7});
Depending on what round it is, life will be 4 or 3 or 2 or 1 or 0. How can I do that in a tween? I am having problems incorporating the `${.life}` in the tween. I looked in the documentation, and could not find my answer. If you point me to it, that would be nice