Scrolling inside a div with body fixed to 100% height of window
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?
@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.
@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/.