angularjs-scroll-glue icon indicating copy to clipboard operation
angularjs-scroll-glue copied to clipboard

Is there a way to smooth scroll ?

Open miccarr opened this issue 9 years ago • 6 comments

I'm searching a way to do what your directive do, but smoothly. Is this possible ?

miccarr avatar May 19 '15 22:05 miccarr

+1

pranav7 avatar Sep 24 '15 10:09 pranav7

+1

essivision avatar Nov 03 '16 13:11 essivision

It's not possible currently. I would accept a PR.

oliversalzburg avatar Nov 03 '16 13:11 oliversalzburg

http://stackoverflow.com/questions/30322708/new-element-animation-in-ng-repeat

essivision avatar Nov 21 '16 13:11 essivision

I have found a way to make this work. This is an example here -> http://plnkr.co/edit/iVHtD2N1RJtGRiKMbkc8?p=preview

Look for smoothScrollTo function in the scrollglue.js file. You could apply this to all directions and maybe pass something like smooth-scroll=400 when using the directive to mention the scroll duration. If nothing is passed it would work as if smooth scroll did not exist and would work as before.

anubhav193 avatar Mar 31 '17 04:03 anubhav193

@anubhav193 I would happily accept a PR.

oliversalzburg avatar Apr 06 '17 08:04 oliversalzburg