Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
128
rated 0 times [  129] [ 1]  / answers: 1 / hits: 49941  / 12 Years ago, thu, august 30, 2012, 12:00:00

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>

More From » scrollto

 Answers
14

got it myself. because of wordpress and the jquery.noConflict Mode i hade to modify the code:



<script type=text/javascript>
(function($){
$(document).ready(function(){
setTimeout(function() {
$('body').scrollTo( '300px', 2500 );
}, 3000);
});
}(jQuery));
</script>


thanks for everybody!!!


[#83332] Wednesday, August 29, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
averyc

Total Points: 102
Total Questions: 113
Total Answers: 89

Location: Taiwan
Member since Mon, Sep 6, 2021
3 Years ago
;