Triggers classes on html elements based on the scroll position. It makes use of requestAnimationFrame so it doesn’t jack the users scroll, that way the user / browser keeps their original scroll behaviour.
<script src="ScrollTrigger.min.js"></script> <script> document.addEventListener('DOMContentLoaded', function(){ ScrollTrigger.init(); }); </script>Website