ld }

    const inViewCallback = entries => {
      entries.forEach(entry => {
        if (entry.isIntersecting) { // define the event/property you want to use
          entry.target.classList.add(triggerAnimation);
          //do something with the element
        }
      });
    }
    let observer = new IntersectionObserver(inViewCallback,options);

    observedElements.forEach(element => {
      observer.observe(element) // run the observer 
    });
}

isInView('.wow', 1, 'animate');
</script>

</body>
<