-
Notifications
You must be signed in to change notification settings - Fork 582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assign plugin functionality to a certain part of the website #51
Comments
You might be able to achieve what you want by using the 'target' option. |
actually, i think i have the same necessity as @alberto2000 , i need to have half-of-screen of content on page and snappable blocks below, so snappable behavior starts from specific height. haven't found a solution yet. |
@altmind yeah, when I made that comment I forgot that |
@alberto2000 You can manage them defining different section name. For left part define all section name to 'left-section' and for right part define all section name to 'right-section' and call scrollify for both. |
@bini7a That won't work, Scrollify scrolls the window, not the document. |
@lukehaas I thought both part has scroll bar. Doesn't that work even? Shouldn't it be updated to be more friendly for that? |
+1 to allow containers other than |
I'm happy for this feature to be added to Scrollify if anyone wants to contribute. |
I'd be glad to contribute - @lukehaas if you could give me some indication on which parts may need refactoring or just a short crash course into the architecture of the plugin? From very first telling I'd just go and replace all references to $window with the new, configurable target element and go from there? |
@alberto2000 It could be as straight forward as that. |
On it, will make a PR asap |
PR submitted #158 |
@alberto2000 thanks I'll take a look soon. |
Why not implement the plugin following the convention of $('#desired-container').scrollify({section: 'desired-section-element'}); so it can be assigned to only specific parts of the website? I have a one page layout but it is two-parted (50/50 left and right) and I only want the right part to have this functionality - when I apply it as it is now, only the hash changes but no scroll effect whatsoever...
The text was updated successfully, but these errors were encountered: