Controllar scroll to go in sections of the site

Asked

Viewed 69 times

1

I have a site with sections. I’m trying to get the scroll to skip to the next section and so on.. I thank you from now on!

  • 2

    Are you trying to figure out how? Paste the code so we can see

  • I don’t really know how to do this ... I want to make it look like this site:

  • http://na.leagueoflegends.com/en/featured/skins/star-guardian-2016

  • has several ways to implement this. Try this here: https://github.com/flesler/jquery.scrollTo

  • Thanks @Ricardomoraleida :D

1 answer

1


There are many plugins that do this for you, recommend using the fullPage.js.
To use, just use the following code:

<div id="fullpage">
  <div class="section">Some section</div>
  <div class="section">Some section</div>
  <div class="section">Some section</div>
  <div class="section">Some section</div>
</div>

In your javascript just use:

$(document).ready(function() {
  $('#fullpage').fullpage();
});

Browser other questions tagged

You are not signed in. Login or sign up in order to post.