Skip to content

Releases: terwanerik/ScrollTrigger

v1.0.6

15 Feb 14:01
Compare
Choose a tag to compare

Update dependencies

v1.0.5

01 Aug 07:06
cab281c
Compare
Choose a tag to compare
  • Update dependencies

v1.0.4

16 Jan 18:22
18bca38
Compare
Choose a tag to compare
  • 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

v1.0.3

25 Nov 10:07
Compare
Choose a tag to compare
  • Fixed 'main' path in package.json, thanks to @nicolasmn

v1.0.2

13 Nov 14:58
Compare
Choose a tag to compare
  • 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)

v1.0.1

12 Nov 22:35
9c62155
Compare
Choose a tag to compare

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

v1.0.0

12 Nov 15:15
Compare
Choose a tag to compare

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

Fixed use of .innerWidth/innerHeight on elements other than window

10 Mar 14:20
Compare
Choose a tag to compare

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

Fixed callback scope issue & more

05 Jan 17:38
Compare
Choose a tag to compare

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.

Reverted back to old 'once'

30 Dec 15:07
Compare
Choose a tag to compare

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