angularjs-scroll-glue
angularjs-scroll-glue copied to clipboard
Is there a way to smooth scroll ?
I'm searching a way to do what your directive do, but smoothly. Is this possible ?
+1
+1
It's not possible currently. I would accept a PR.
http://stackoverflow.com/questions/30322708/new-element-animation-in-ng-repeat
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 I would happily accept a PR.