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

Possible to do linear interpolation (LERP) for scroll animations? #9

Open
ndimatteo opened this issue Jan 6, 2017 · 0 comments
Open

Comments

@ndimatteo
Copy link

It would be great on page scroll if the animations leveraged linear interpolation so they don't appear so choppy/abrupt.

Here's an excerpt from Rachel Smith's codepen article about moving objects on scroll that outlines this more clearly:

Personally, I’m not really in to the ‘moving things at a linear rate as the page scrolls down’ look. For one, linear movement makes me sad. It also looks kind of choppy if you’re scrolling at random speeds. So instead I like to use linear interpolation to move elements to their target. I think this is one of those effects that are down to personal preference, but I definitely think it makes things look a lot smoother and better.

You can check out an example of how this feels here.

Whatcha think?

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