Skip to content

Scrolling inside a div with body fixed to 100% height of window #22

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

Open
rossanthony opened this issue Feb 20, 2016 · 2 comments
Open

Comments

@rossanthony
Copy link

I'm working on a site which contains a fixed div, within which there is a long scrolling div containing content. Is it possible to configure spark-scroll to use a specific div by id, which it then uses as the reference for the scroll offset?

@theaccordance
Copy link

@rossanthony, if you solved your problem, what was the solution? I've been reviewing the source code for this and my intended use case matches yours.

If you didn't solve it, I've been reading through the source to see how to make that possible, and I think it might be as simple as passing a reference for the directive to know which element to attach the scroll listener to.

@rossanthony
Copy link
Author

@theaccordance - I ended up restructuring the page so that the scrolling div was no longer inside a fixed one. The design requirements I was working to called for a fixed outer frame with a bg image and I found a way to mimic this effect through other means, see: https://acknowledgement.uk/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants