darsain / espy

jQuery plugin for on-scroll detecting whether the element entered or left the viewport.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change size and/or offset after construction?

mxdubois opened this issue · comments

Hey @darsain, I browsed a bunch of your libraries and they all look awesome.

In espy, you allow client code to set the size of the trigger area at construction (jQuery.Espy()). Is there any good way to update that size from $(window).resize()?

In my case, I'd like to subtract the height of some "sticky" UI elements from the viewport to determine the trigger size.

I'm afraid not. Look for alternatives, I'm quite sure there are better libraries for this than Espy :)

Espy needs a rewrite.