In an attempt to not only have the flexibility of Trig.js for making your own CSS scroll animations. V4 now comes with an entire CSS library of scroll animations straight out of the box for the easiest implementation ever for your projects. Trig.js and Trig-Animations.css will drop right into any existing or new project with ease. Just like animate.css or hover.css but for scroll animations.
Trig Js can be used for simple triggers of animations when on screen to accessing scroll positions in percentages, pixels or degrees. v3.1 separates these out to make the minimal changes to the DOM unless needed. Making Trig JS the lightest and simplest way to access scroll information within your CSS, using nothing but data attributes.