Hi
I'm trying to find out the best way of referencing the tweened html element from it's onComplete function. I've achieved the following but my gut feeling is there's a better way of doing this
onComplete: function() {
console.log('appId for el tweened is:', $(this.target[0]).attr("data-appid") );
}
As you can see the above way is using jQuery. Is there an easier way of referencing an attribute in the html element that's been tweened in the onComplete function.
Many thanks for advice.