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

[css-easing-2] Custom curve-based easing functions #7508

Open
jakearchibald opened this issue Jul 17, 2022 · 1 comment
Open

[css-easing-2] Custom curve-based easing functions #7508

jakearchibald opened this issue Jul 17, 2022 · 1 comment
Labels

Comments

@jakearchibald
Copy link
Contributor

#229 was solved with linear(), which allows easings to be defined by a series of points that are linearly interpolated.

Many easings are curve-based, so there's space for a more efficient syntax that allows curves to be defined.

Some ideas/points from #229:

@tabatkins
Copy link
Member

tabatkins commented Sep 17, 2024

To finish out the list of currently-suggested additional easing ideas:

  • spring(): "bouncy" easing. Dean's suggestion produces its own duration; other variants can be duration-independent.
  • JS-driven easing: use a JS function (takes an input number, produces an output number) to drive an easing
  • midpoint(): reproducing the easing behavior of gradients, so easing functions can be integrated into gradients more smoothly
  • stacking easing functions: applying one, then sending that value to another
  • chaining easing functions: hooking several together end-to-end, like successive cubic-beziers
  • math-based easing: like custom-easing(sin(p)), a calculation with a calc variable p for the progress
  • smooth: a new cubic-bezier keyword that auto-computes based on surrounding easings in a keyframe animation to produce a c1-continuous curve

Agenda+ to discuss at TPAC, to see if we want to pursue any of these right now, or defer them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants