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 trialShaun Kelly
35,560 PointsScrolling to next div with jQuery
Hi guys! How would i scroll to the next div with a slight transition similar to this: http://www.dishoom.com
Thanks in advance!
Shaun
1 Answer
Richard Ling
8,522 PointsHi Shaun,
There are quite a few different jQuery plugins and components out there to achieve this sort of effect with very little work.
Full page style scrolling from this one:
http://alvarotrigo.com/blog/fullpage-jquery-plugin-for-fullscreen-scrolling-websites/
Or a number of other "scroll-to" style plugins with different transitions and easing options:
http://balupton.github.io/jquery-scrollto/
http://lions-mark.com/jquery/scrollTo/
http://demos.flesler.com/jquery/scrollTo/
Apologies if this isn't quite what you're looking for
Thanks, Rich
Marcus Parsons
15,719 PointsMarcus Parsons
15,719 PointsI lasted about 10 seconds on that site before I got fed up. It's kind of a nifty scroll method they're using, but God is it annoying. You don't want anyone to scroll a bit and then be forced back to the content they were trying to get away from, right? Go with Richard Ling's suggestion of fullPage.js if you want something very nifty. It is a great plugin and will not make any users that visit your site want to find your cafe in London and shove your coffee down your throat! Lol! :D