Whilst my animations can be part of a timeline, they are also available as functions which can be called on other events, such as click, over, drag, or from other code. So unfortunately I am unable to use the timeline onUpdate function to apply the transforms.
For example
function envelopeSetViewFlatBack() {
return TweenMax.to('.env', 1, {
rotation: 0,
rotationX: 0,
rotationY: 180
});
}
tl.add(envelopeSetViewFlatBack());
How could I apply the string approach outside of a timeline?