When we want three tweens happen one by one, we can simply the code and write it as the following one.
new TimelineLite()
.from('#elem-1', 1, { y: -100 })
.from('#elem-2', 1, { y: 100 })
.from('#elem-3', 1, { y: -100 })
But when we want three tweens happen at the same time, we have to add them in an array like the following code. Is there away to simply the code by omitting .add and TweeMax in this case?
new TimelineLite()
.add([
TweenMax.from('#elem-1', 1, { y: -100 }),
TweenMax.from('#elem-2', 1, { y: 100 }),
TweenMax.from('#elem-3', 1, { y: -100 })
])