Trig JS Versions Save

The easy way to create CSS scroll animations that react to the position of your HTML element on screen. Animate on scroll (AOS) your CSS.

v2.0.2

1 year ago

Fixed the responsiveness of scroll direction.

v2.0.0

1 year ago

Creates a class of "trig-scroll-up" or "trig-scroll-down" onto the body of the document depending on the last scroll direction.

v1.9.1

1 year ago

Refactoring and slight optimisations.

v1.9.0

1 year ago

Reintroduced data-trig-height="0" and restructured for better compression.

v1.8.0

1 year ago

You can now use data-trig-global="true" to create global CSS variables for an element using the id for the variables (i.e --trig-yourelementid). There was an issue with element heights which is now fixed. This allows for progress bars like this to work.

v1.7.3

1 year ago

More refactoring.

v1.7.2

1 year ago

A little more refactoring.

v1.7.1

1 year ago

Refactoring of script for code quality.

v1.7.0

1 year ago

Reduced reflows to only when Trig.js starts and when the browser is resized.

v1.6.0

1 year ago

Enable Trig.js by adding a class instead of a data attribute.