Releases: terwanerik/ScrollTrigger
v1.0.6
v1.0.5
- Update dependencies
v1.0.4
v1.0.3
- Fixed 'main' path in package.json, thanks to @nicolasmn
v1.0.2
- 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
Updated webpack-dev-server to > 3.1.11 for security patches. Updated webpack / babel setup in the process.
v1.0.0
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
.innerWidth/innerHeight fix thanks to @Sqrrl . Also implemented custom .each method which is faster than using .forEach.
Fixed callback scope issue & more
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'
The new method was causing more trouble than it was solving.