Posted By

ksnagra on 02/04/11


Tagged

scroll page jquery anchor to tag animation


Versions (?)

Who likes this?

13 people have marked this snippet as a favorite

neex123
maltem
robertdotim
digitalink
Some0ne
Balamir
miguelcanijo
A973C
lookingforsome
pasia
lit3fox
Priestd09
web101


jQuery animated page scroll to anchor tag function


 / Published in: jQuery
 

URL: http://www.ksnagra.com/examples/jquery/page-scroll-to-anchor-tag/

This function allows you to pass any div anchor tag as a parameter to scroll to. You can easily add easing after the 'duration' parameter in the jQuery animation function.

  1. function scroll_to(div){
  2. $('html, body').animate({
  3. scrollTop: $(div).offset().top
  4. },1000);
  5. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: puremelda2019 on October 10, 2019

The agency understands how complex and time-consuming that Cheap Editing Services can be. If you simply don’t have the skills you require to complete a good paper, or you’re pressed for time, or you can always order Best Coursework Writing Servicefrom them.

You need to login to post a comment.