animated scroll
Posted
by Happy
on Stack Overflow
See other posts from Stack Overflow
or by Happy
Published on 2010-06-15T00:33:39Z
Indexed on
2010/06/15
0:52 UTC
Read the original article
Hit count: 413
Using scrollTo plugin to animate scroll effect:
http://plugins.jquery.com/project/ScrollTo
http://demos.flesler.com/jquery/scrollTo/
Tryed this code:
$(".top-scroll").hover(function(){
$("body").scrollTo($(".top-corner"), 2000);
},function(){
$("body").stop().scrollTo();
});
It must start
to scroll when we hover .top-scroll
block (mouseover) and stop
when we hover it out (mouseleave).
Start
works, stop
- not.
How to fix?
Thanks.
© Stack Overflow or respective owner