People,
I am making code to control a list of elements, this is part of my code:
for (let target of vetorElementos) {
vetorAnimacoes[contador] = new TimelineMax({paused:true}).staggerFromTo(target, .3, {opacity: 0, y: 150},{opacity: 1, y: 0}, .3);
// vetorAnimacoes[contador] = new TimelineMax({paused:true}).fromTo(target, 1, {scale:0, visibility: 'hidden', opacity: 0},{scale: 1, visibility: 'visible', opacity: 1});
observer.observe(target);
contador++;
}
In the commented part of the code (line 3), this part works without any problem, but the code part (line 2) it does not execute at all.
In staggerFromTo, if you replace the target directly with the querySelectorAll element, it will work, but not the result I need.
This only happens in the stagger, either from, to or fromTo.
Did I miss any details?