Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

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