Hi @OSUblake
I've a code like this:
gsap.utils.toArray("" +
".js-class-1, .js-class-1-wrap > *," +
".js-class-2, .js-class-2-wrap > *") // and so on, a long list of classes/css selectors
.forEach(el => {
gsap.from(el, {
scrollTrigger: {
trigger: el,
once: true,
},
y: animUpY,
autoAlpha: 0,
});
});
and I obviously get in console a lot of "not found" warnings because some classes are on a page, some others on other pages, and so on.
What is the best practice in gsap to check them with an if?
This technique could decrease performance? (and for this reason is better shutdown warnings in gsap.config?)
Also, any advice about a better refactoring of my code is welcome
Thanks