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

Animation tools #26

Open
limemloh opened this issue May 11, 2017 · 2 comments
Open

Animation tools #26

limemloh opened this issue May 11, 2017 · 2 comments

Comments

@limemloh
Copy link
Member

limemloh commented May 11, 2017

I would be nice to have some tools to help with describing transitions with behaviors. I imagine an API like this:

const config = {
  duration: 5,
  timingFunction: linear,
  delay: 0
}
const t = transitionBehavior(config, numberStream, initialValue);

numberStream is telling which values the resulting behavior should make transitions to.

This together with a collection of timing functions would be a good start.

@paldepind
Copy link
Member

What is the initial value of the behavior returned by transitionBehavior?

@limemloh
Copy link
Member Author

limemloh commented May 11, 2017

In my example, it is the 3rd argument, which has to be a number

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

2 participants