Alex Rivera | Logout

ScrollTo with animation

Asked 2012-08-30T14:36:14.957
17

how can i add an easing/animation/slowly moving to this function? At the moment it just jumps. Now it should move to the "anchor" with an animation.

<script type='text/javascript'>
        setTimeout("window.scrollBy(0,270);",3000);
</script>
Edit
Report

1 Answer

2

Another example with jQuery, uses the easing plugin for some nice effects:

http://tympanus.net/codrops/2010/06/02/smooth-vertical-or-horizontal-page-scrolling-with-jquery/

answered 2012-08-30T15:19:39.537

Your Answer