Posts tagged anchor

Animated scrollto effect jQuery plugin

41

Howdy,

Since my post about this effect has a lot of succes I decided to make a little plugin to simplify it even more.

First of all go check out the Demo.

(more…)

Share

Related Posts:

Animated scroll to anchor/id function with jQuery

82

Update : Post update here

Today I had to make a function for a client of mine so I decided to share it with you.

It’s a oneliner but can add a really nice effect to your website.

This function requires jQuery

function goToByScroll(id){
     	$('html,body').animate({scrollTop: $("#"+id).offset().top},'slow');
}

Of course you can change slow to normal or fast or even a int in milliseconds.

And to call it

<script>
goToByScroll("theIdIWantToGoTo");
</script>

Enjoy

Share

Related Posts:

Go to Top