Skip to content

Releases: iDev-Games/Trig-JS

v4.2.0

28 Mar 21:26

Choose a tag to compare

The data attribute will now also update in increments of 10 so you can use CSS attribute selectors like:

[data-trig-var="50"],
[data-trig-var="60"],
[data-trig-var="70"],
[data-trig-var="80"],
[data-trig-var="90"],
[data-trig-var="100"]{
  transform: translateX( var(--trig) );
} 

for more control.

v4.1.1

27 Mar 23:07

Choose a tag to compare

Fix for trig-animations.css

v4.1.0

27 Mar 22:33

Choose a tag to compare

Adds direction classes on each element when in view. Allowing you to trigger animations from a certain direction or even have a different one on the other direction. Thanks to @glucka for the suggestion and contribution.

v4.0.0

09 Mar 21:02

Choose a tag to compare

Trig.js now comes with it's own CSS library for configurable predefined animations. Making it even easier for you to get scroll based animations into your project.

v3.2.0

21 Feb 22:06

Choose a tag to compare

Optimisations and refactoring with a fix for bottom and top class responsiveness.

v3.1.0

17 Feb 20:16

Choose a tag to compare

Fix for confliction with Google Analytics and other services. Many different optimisations for creating smoother animations with lower overheads.

v3.0.0

19 May 20:29

Choose a tag to compare

Optimisations mainly but major version change due to the fundamentals changing. To make less going on at once, data attributes must be added for data-trig-var="true", data-trig-pixels="true" or data-trig-degrees="true" to create the position css variables. This'll disrupt any current usage of previous versions and would need amendments to make things work again. This'll make trig JS much lighter for use when only using animation triggers when on screen or using the body classes. It also improves the usage when using many scroll animations at once.

v2.2

24 Sep 18:56

Choose a tag to compare

Added in the new data attribute negativeOffset to be able to offset the start position in the opposite direction.

v2.1.7

12 Apr 22:07

Choose a tag to compare

v2.1.6 - Change to package.json.

v2.1.6

12 Apr 21:41

Choose a tag to compare

Removed tests from package.