javascript - Scroll vertically 100% on click with jQuery -


I need an animated scrolling effect that pushes the site to 100%, it basically a website Multipage and every 100% is a different site, I think there are many plugins for this, but I want to get it to work manually.

I tried to use the anchor and the ID to stimulate the 100% scrolling effect, but I can not think of a pure solution that leaves the page without any help of other id or sections 100 % Leads down.

Any help would be highly appreciated.

OK, it's very simple, use the snippet below to find what you're looking for They are helping you in achieving it. To prevent the default action of $ ("HTML, body")

  $ ("a") On ("click", function (event) {event.preventDefault ();) .mate ({scrollTop: $ (document). Height () // get height of document}, "slow"); // scrolling / / * also animated 3000, 4000 i.e. 3 seconds, 4 seconds to scroll to use); Tag the   

here onclick and tags, we first prevent the default action of the anchor tag, and then click, we will open the document Let's scroll down to the bottom.

Note: Use an id or class for anchor tag by clicking on the onclick Want to attach an object, because the current selector's usage is normal and will target all the anchor tags in your document.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -