Skip to content
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

Scrolling within a element? #92

Closed
shmshrbali opened this issue Jun 11, 2015 · 1 comment
Closed

Scrolling within a element? #92

shmshrbali opened this issue Jun 11, 2015 · 1 comment

Comments

@shmshrbali
Copy link

Hi loved the plugin, since i am a beginner in javascript, i was trying to attach the plugin to a element within the page that has overflow scroll. (long content div && body height 100%). I was wondering how do i about doing that?

@tholman
Copy link
Owner

tholman commented Jun 12, 2015

Hey,

This isn't really in the scope of elevator.js, but if you were to do it, you'd need to change the body element in the script, and also line 66 (where the scrolling happens) - https://github.com/tholman/elevator.js/blob/master/elevator.js#L66

:)

@tholman tholman closed this as completed Jun 12, 2015
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