STYLE SWITCHER

ScrollTrigger – Scroll Based Animations with Ease

scroll

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.

[js]
<script src="ScrollTrigger.min.js"></script>
<script>
document.addEventListener(‘DOMContentLoaded’, function(){
ScrollTrigger.init();
});
</script>
[/js]

https://terwanerik.github.io/ScrollTrigger/

Recent Article

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.