Capítulo 359 de 411
Returns true if the element is in the viewport. You can optionally specify a minimum proportion, like ScrollTrigger.isInViewport(element, 0.2) would only return true if at least 20% of the element is in the viewport.
// is any part of the element in the viewport?
if (ScrollTrigger.isInViewport(element)) {
// you can use selector text
// do stuff
}