-
Notifications
You must be signed in to change notification settings - Fork 102
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
Any idea how to animate box-shadow? #56
Comments
@ryanflorence there is a PR open for it |
Ah has a conflicting issue, needs a rebase. |
If targeting the web, you could be using the let value = anim.interpolate({ inputRange: [ 0, 1 ], outputRange: [ 0, 40 ] });
...
style.boxShadow = Animated.template `0px 0px ${value}px hsla(0, 0, 0, 0.5)`; |
Nothing that specific is actually needed. Just need to fix the interpolation to understand multi-values. |
Sure, in this specific case it's only a workaround :) |
Yeah good point, I believe Leland Richardson had ideas about all of this. Although mostly in the form of building out new Lots of use cases to be covered, especially SVG paths which I think is a huge one. |
I'd love to help out with SVG interpolation if it's still needed :) I've been looking at a lot of libs that support this. I'm guessing it would need to work in both React Native and React Web? I should be able to handle the web side or at least start it, I'd be willing to look into RN as well and try to learn some things. |
It's a silly rule since it doesn't have box-shadow-radius, spread, color, etc.
That would be cool! but seems heavy to have to dig in and find every possible number that could be interpolating :\
Any ideas?
The text was updated successfully, but these errors were encountered: