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

Custom Interpolator [proposal] #67

Open
julienvincent opened this issue May 14, 2017 · 1 comment
Open

Custom Interpolator [proposal] #67

julienvincent opened this issue May 14, 2017 · 1 comment

Comments

@julienvincent
Copy link

julienvincent commented May 14, 2017

It might be a good api addition to allow for custom interpolators. It could look something like this:

const anim = new Animated.Value(0)

...

const interpolatedValue = anim.interpolate((value) => {
  // return custom interpolation based on value
})

An example use case would be using D3's powerful interpolators (like their SVG path interpolator) along with Animatedjs

@julienvincent
Copy link
Author

julienvincent commented May 14, 2017

I have submitted a PR for this functionality. See #68

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