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

Enhance ScrollDetector to use different reference points for 0 and 1 #12

Open
75th opened this issue Feb 14, 2018 · 1 comment
Open
Assignees

Comments

@75th
Copy link
Owner

75th commented Feb 14, 2018

Right now, ScrollDetector output is 0 when the top border of the reference element aligns with the bottom of the viewport, and 1 when the bottom border of the element aligns with the top of the viewport.

During development of my last site I had a thought that it would be nice to optionally make 0 and 1 be top/top and bottom/bottom instead. The big problem with that, though, is that the order of those times can be [ forwards / simultaneous / backwards ], depending on whether the reference element is [ shorter than / the same height as / taller than ] the viewport.

Also, maybe there's a case for using different, arbitrary points altogether? All this needs a lot more thought

@75th 75th self-assigned this Feb 14, 2018
@75th 75th changed the title Enhance ScrollDetector to use different reference points for 0 and 1 Enhance ScrollDetector to use different reference points for 0 and 1 Feb 15, 2018
@75th
Copy link
Owner Author

75th commented Feb 16, 2018

The confidence-shattering basicScroll library I learned about too late has [top|middle|bottom]-[top|middle|bottom] keyword values. All aboard the RIPOFF EXPRESS

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

1 participant