A script that adds a class to HTML when an element enters the viewport