For a tween, not a timeline.
I know a timeline can hold children timelines, but this doesn't worry me, not yet, it will after this
I am referring to the function names as types , sorry ...they are to, from, fromTo, staggerTo ...
I need to detect them...all as strings.
Could 2 functions cover all combinations?
Lets just assume its gsap3.
var tween = gsap.to("body",{x:10, duration:1})
function isTo(tweenInstance){
// return true/false,
//what with fromTo and toFrom??
}
function isStagger(tweenInstance){
// return true/false
}
Which also bring me to ask :
are there differences in tweens if two are created with version 3, same one, but with different syntaxes ...gsap.to() vs. TweenMax.to ...do they yeld absolutely same result?
Thank you for your help guys