zippy1978/jquery.scrollz

Offset for bottom reached

Closed this issue · 2 comments

Still loving your script!

I was looking for a way to set an offset/margin for when the bottomreached event will be triggered.
Right now it's bottom minus 1 pixel, but I like to trigger this event 100 pixels earlier.

Keep up the great work!

Good idea, I'll add an option for that when I have time :)

Done in version 1.0.5.
The option is bottomDetectionOffset: it can be an int (pixels) or a percentage of the container height (example: '30%').
The default is now set to '10%'.