zippy1978 / jquery.scrollz

Modern scrolling for jQuery
GNU General Public License v2.0
81 stars 17 forks source link

Offset for bottom reached #3

Closed jerone closed 11 years ago

jerone commented 11 years ago

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!

zippy1978 commented 11 years ago

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

zippy1978 commented 11 years ago

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%'.