So I'm trying to animate all h1 elements on a page using ScrollTrigger, but running into an issue with the trigger property.   Perhaps I am going about this all wrong, but my first attempt before RTFM was based on the knowledge that I can do this:   gsap.to(gsap.utils.toArray('h1'), { ... backgroundColor: (index, element, elements) => (0 === index % 2 ? 'black' : 'white') ... }); I simply tried to do the same with the trigger property by using a function like so: