Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to smooth scroll ? #32

Open
miccarr opened this issue May 19, 2015 · 6 comments
Open

Is there a way to smooth scroll ? #32

miccarr opened this issue May 19, 2015 · 6 comments

Comments

@miccarr
Copy link

miccarr commented May 19, 2015

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

@pranav7
Copy link

pranav7 commented Sep 24, 2015

+1

1 similar comment
@essivision
Copy link

+1

@oliversalzburg
Copy link
Collaborator

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

@essivision
Copy link

@anubhav193
Copy link

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.

@oliversalzburg
Copy link
Collaborator

@anubhav193 I would happily accept a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants