ScrollTrigger Versions Save

Let your page react to scroll changes.

v1.0.6

1 year ago

Update dependencies

1.0.5

3 years ago
  • Update dependencies

1.0.4

4 years ago
  • Made sure the .top and .left of the ClientBoundingRect are used instead of x and y. Fixes #59 thanks to @KDLees
  • Updated dependencies and version to 1.0.4

1.0.3

4 years ago
  • Fixed 'main' path in package.json, thanks to @nicolasmn

1.0.2

4 years ago
  • Added documentation for migrating from 0.x to 1.x
  • Made sure the scrollPosition is always taken from the element.scrollTop before trying documentElement.scrollTop (fallback when having body as the element)

1.0.1

4 years ago

Updated webpack-dev-server to > 3.1.11 for security patches. Updated webpack / babel setup in the process.

1.0.0

4 years ago

A complete rewrite of ScrollTrigger. Please checkout the new README and/or example for more info on how to get setup!

v0.3.6

7 years ago

.innerWidth/innerHeight fix thanks to @Sqrrl . Also implemented custom .each method which is faster than using .forEach.

v0.3.5

7 years ago

You can now define in what scope to search for the callback, instead of having to put them all global in the window scope. This is done by setting the global callScope variable, like so: trigger.callScope = ..;

Added support for multiple attributes in the callback definition, e.g. someMethod('foo', 'bar') works.

Added the trigger.scrollDidChange() method to force check if elements are in or out the viewport.

v0.3.4

7 years ago

The new method was causing more trouble than it was solving.