Hi all,
I'm a noob here and have really been enjoying creating awesome experiences with GreenSock!
However, I'm trying to get past an issue that you might be able to help me with. After a tween of a container width, I'm trying to add an inline div to the newly created space.
The new div does not immediately get added to the space. On the next add action (that creates additional container width), the previously created div appears.
Am I hooking the wrong method?
Thanks!
TweenLite.to($('.list-item-container'), 1, {
width: $('.list-item-container').width() + 253,
delay: 0.25,
onComplete: function () {
var _item = document.createElement('div');
$(_item).addClass('list-item');
$('.list-item-container').append(_item);
}
});