Skip to content

ease option seems to not work #390

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

Open
burzykovski opened this issue Feb 15, 2019 · 0 comments
Open

ease option seems to not work #390

burzykovski opened this issue Feb 15, 2019 · 0 comments

Comments

@burzykovski
Copy link

Hi,
Maybe I'm wrong, but it seems to me that changing function in ease option doesn't work properly. I've got horizontal navigation menu and even though I've changed default ease behavior with t => t to use just linear animation it still behaves non-linearly.

Piece of code responsible for scrolling:

scrollIntoView(element, {
          behavior: 'smooth',
          scrollMode: 'always',
          block: 'nearest',
          inline: 'center',
          ease: t => t,
        });

Anyway, I really appreciate your work @stipsan :)

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

No branches or pull requests

1 participant