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

Shortcuts for non-linear interpolation #410

Open
LeaVerou opened this issue Feb 9, 2024 · 0 comments
Open

Shortcuts for non-linear interpolation #410

LeaVerou opened this issue Feb 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@LeaVerou
Copy link
Member

LeaVerou commented Feb 9, 2024

Right now, we support custom functions for non-linear interpolation, which does make complex things possible.
However, it would be nice to also make simple things easy, by defining a few shortcuts.

Borrowing from CSS, these could be:

  • Predefined functions for the CSS keywords (ease, ease-in, etc.)
  • A function that takes in cubic-bezier() coordinates and returns a function
  • Same for steps()

Outside of CSS, it would be good to see some use cases where non-linear interpolation is used, to see what primitives would facilitate them better.

@LeaVerou LeaVerou added the enhancement New feature or request label Feb 9, 2024
@LeaVerou LeaVerou mentioned this issue Feb 9, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant