Creating Page Scroll Animation With Pure JavaScript | ScrollTrigger

ScrollTrigger is the primary use of Scroll Trigger is to run classes based on the current scroll position. For example when an element enters the viewport, it vanishes. You can add custom offsets for each element, or set offsets in the viewport (eg always run after the element reaches 20% of the viewport)

When using callbacks ScrollTrigger becomes really powerful. You can trigger a custom icon when it enters/becomes a visible item, and even return promises to stop the trigger if the callback fails. This makes the lazy loading of images very easy.

animate on scroll library, page scroll animation css, page scroll animation plugin, javascript animate scroll to element, animate div on scroll jquery, animate on scroll javascript library

Quick Scrolling And Updating Of Any Amount Of Hierarchical List Data | Vue Virtualised

How to make use of it:

Download and embed ScrollTrigger.js on the webpage.

<script src="ScrollTrigger.min.js"></script>

Configure ScrollTrigger.

document.addEventListener('DOMContentLoaded', function(){
  ScrollTrigger.init();
});

Set animations (CSS styles) and other options for the element you want to animate.

<div data-scroll="200 animateIn animateOut addHeight once"></div>

Creating Scroll Based Animations, ScrollTrigger Plugin/Github


See Demo And Download

Official Website(terwanerik): Click Here

This superior jQuery/javascript plugin is developed by terwanerik. For extra Advanced usage, please go to the official website.

Share