Hi both,
Thanks for this. I have changed it to data-animation (was a mistake) but it still doesn't work. I am basically animating on scroll elements relative to their container/if they are in the viewport.
Regarding the data attribute being a string, this is what I thought too. However, I'm not sure how to fix this to use this as a variable in my tween for x in this instance. Can you elaborate further on the adding a "+" as a prefix, please?
Thank you