paper-leaf / alton

Alton is a jQuery-powered scrolling plugin, with a twist.
http://paper-leaf.com/alton-jquery-scroll-jacking-plugin/
217 stars 34 forks source link

Re-enable Native Scrolling after Featured Section in Bookmark Mode #20

Closed azkaiart closed 9 years ago

azkaiart commented 9 years ago

Firstly, absolutely LOVE this plugin! Great work and thank you so much for sharing it with us.

The issue I have been trying to solve (but sadly, have a hard time moding the JS since I'm very novice) is to try to re-enable native scrolling after my last featured section--then un-enabling it as they scroll up back into the featured section.

I believe this would be a wonderful addition to the plugin--but was wondering if you knew of a work-around in the meantime?

Again, thanks so much--you all are a super team! :)

ntan97 commented 9 years ago

Thanks so much for the love for the plugin. It's much appreciated.

Currently the only portion of this plugin that re-enables to native scrolling is in the Featured Header scroll. I would recommend look at what we've written in there and that could lead you to an answer.

Start here on line 530 of the plugin: https://github.com/paper-leaf/alton/blob/master/assets/jquery.alton.js#L530 for the code, and to see how it all works http://demo.paper-leaf.com/alton/heroscroll/.

Here's another demo showing how it works: http://colofts.ca/

Let me know if this helps at all.

azkaiart commented 9 years ago

Thanks! I did try, but my JS skills are very basic. But perhaps this is a good way for me to strengthen those skills. I'll take another look and see what I can customize.

Thanks again! :) :+1: