You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I can tell the trigger fires when the trigger element enters the browser window, however I wish to fire they trigger when the trigger element leaves the window (when scrolling down). Is this possible?
I cannot set an numerical offset as the site is responsive so this changes.
I essentially am duplicating what Mashable do with their share buttons, ..the share buttons on are on the page below an article title, but when leave leave the page I want them to trigger headhesive. I have placed a #share-trigger below the share buttons,..although in retrospect just using the share buttons div would work if I could set it to trigger when it leaves the page.
Is this possible? ..thanks in advance.
The text was updated successfully, but these errors were encountered:
Currently it's not possible directly, but there a few ways you could achieve this:
Add in an anchor tag where you want the trigger to be, and target that.
Use some JS to get the bottom of the element, and pass that to Headhesive. I'm not sure if this will work well responsively, so the first solution may be best.
I like the idea of targeting the bottom of an element as well as the top, I'll look to add this into the plugin :)
Thanks for getting back to me, ..I changed my logic around a bit, ..I had intended to have two Headhesive's on the page at different point, ..but have now compressed that down. Still loving the script, ..very nice. Thanks,
From what I can tell the trigger fires when the trigger element enters the browser window, however I wish to fire they trigger when the trigger element leaves the window (when scrolling down). Is this possible?
I cannot set an numerical offset as the site is responsive so this changes.
I essentially am duplicating what Mashable do with their share buttons, ..the share buttons on are on the page below an article title, but when leave leave the page I want them to trigger headhesive. I have placed a #share-trigger below the share buttons,..although in retrospect just using the share buttons div would work if I could set it to trigger when it leaves the page.
Is this possible? ..thanks in advance.
The text was updated successfully, but these errors were encountered: