Skip to content

Releases: terwanerik/ScrollTrigger

v1.0.6

Choose a tag to compare

@terwanerik terwanerik released this 15 Feb 14:01

Update dependencies

v1.0.5

Choose a tag to compare

@terwanerik terwanerik released this 01 Aug 07:06
cab281c
  • Update dependencies

v1.0.4

Choose a tag to compare

@terwanerik terwanerik released this 16 Jan 18:22
18bca38
  • 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

Choose a tag to compare

@terwanerik terwanerik released this 25 Nov 10:07
  • Fixed 'main' path in package.json, thanks to @nicolasmn

v1.0.2

Choose a tag to compare

@terwanerik terwanerik released this 13 Nov 14:58
  • 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

Choose a tag to compare

@terwanerik terwanerik released this 12 Nov 22:35
9c62155

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

v1.0.0

Choose a tag to compare

@terwanerik terwanerik released this 12 Nov 15:15

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

Choose a tag to compare

@terwanerik terwanerik released this 10 Mar 14:20

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

Fixed callback scope issue & more

Choose a tag to compare

@terwanerik terwanerik released this 05 Jan 17:38

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'

Choose a tag to compare

@terwanerik terwanerik released this 30 Dec 15:07

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