Cassie, it worked like a charm. Thanks...
One more thing here (if I may ) ... Will this solution work with "stagger" paramater at all?
Here are the updated lines ... I am trying to get the intances receive the class one by one ( in case there are more than two... under one parent ) instead of being animated at once. Thanks for your support - that is amazing !
P.
gsap.utils.toArray('.scrollin').forEach(function(el,index){
var addClass = $(el);
var containerTrigger = addClass.closest('.scrollin-parent');
ScrollTrigger.create({
trigger: containerTrigger[0],
start: "top bottom-=100",
markers: true,
toggleClass: {targets: el, className: "zoom-test"},
stagger:1, /// will that work here???
toggleActions: "play none none reverse",
});
});