Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Vertical scrolling

I saw this vertical scrolling and I was wondering if you know another JS gallery that can achieve this same effect (see http://www.hotelstyle.biz/lookbook) rather than the one they are using which is scripterlative. Thanks a LOT!

2 Answers

I'm guessing you are more interested in the parallax scrolling technique that they are using. Here are some tutorials: http://f6design.com/journal/2011/08/06/build-a-parallax-scrolling-website-interface-with-jquery-and-css/ http://ianlunn.co.uk/articles/recreate-nikebetterworld-parallax/ http://www.richardshepherd.com/smashing/parallax/background.html If you are actually more focused on how to the the vertical scrolling, it can easily be accomplished using jquery.smooth-scroll.js, then you call it like this: $('ul.nav a').smoothScroll(); and you have the HTML <a> link target a div on the page that you want to scroll to. Hope that helps.

I actually wanted to know how the do the scrolling with the 2 sections