Just add it (and jQuery) to your page, then define which HTML elements you want to make the snap points. I love simple-to-use code, don’t you?
I’ll add onto it later as new ideas pop into my head. Right now, it’s using a timeout to account for the fact that there’s no scroll-end event in the DOM or jQuery. I’m not a huge fan of timeouts, but in this case it seems to work. I’d like something more elegant going forward.
As I get further along in my career, I’m pretty regularly tapped for training, mentoring, and general advice.
Seems like a good idea to lock those ideas and code snippets into a format that everyone can get at. I’m building this in conjunction with some of the projects I’ve put up on GitHub.
Feel free to share and comment all you like.