Easily and only with the help of a simple function, determine whether your element is in the user's viewport or not?
IMPORTANT NOTE => To see how to use this function, refer to the Example.html file
This small project is completely written in vanilla-JS language and uses the new IntersectionObserver API method
Click on the link below to see how many browsers support this method (IntersectionObserver):
https://caniuse.com/intersectionobserver
IMPORTANT NOTE => To see how to use this function, refer to the Example.html file
Good Luck & Best Wishes