I'm trying to use one Tweenmax call to handle multiple tween types by using function parameters instead of declaring all the properties individually.
declaring the property as a string works fine, here i can animate 'top', 'scale', whatever
=> TweenMax.to(p_target, p_time, {'top' : p_value} );
however passing the 'top' property as a string parameter logs invalid tween value
=> TweenMax.to(p_target, p_time, {p_type : p_value} );
is there a way to use parameters or variables to declare which property should be animated?
thanks in advance.