-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[Style] Support backface-visibility style property on views. #1973
Comments
Can you PR it? |
I can def try this one. :D Adding rotateX, rotateY, rotateZ first. |
done. |
The |
Same here, backface-visibility: hidden has no effect on Android. It's definitely defined in ViewStylePropTypes.js, it just isn't doing anything. |
any update? |
Not working on Android for me either. Any working workaround at the moment? |
backface visibility is not supported on android. There was a PR for this: #6695. Feel free to send a new one based off of that PR. |
Unfortunately I don't know Java, but thanks for the information and the link to the PR! |
Any working workaround for this ? |
I'm using Animated.Views and I've been playing with the idea of animating the opacity as well. It seems to work ok for my use case, and the only thing Im doing is this:
and then use this for the animation
The Animated.Value in my case goes from 0-180 (symbolising degrees). So if your situation is similar to mine, maybe this will help for now. |
Thanks, @vnil! Your workaround works amazingly well! It should become canonical, until |
I got the same issue and the workarround is excelent... Thanks!! |
A PR for backface-visibility is here #15970! |
Great! @charpeni . but PR is failed by CI . Try to fix conflicts! |
Thanks @vnil . I will expand your solution : You explained the backOpacity, still now frontOpacity .. And it will be : this.frontOpacity = this.animatedValue.interpolate({
inputRange: [89, 90],
outputRange: [1, 0]
});
this.backOpacity = this.animatedValue.interpolate({
inputRange: [89, 90],
outputRange: [0, 1]
}); Then: |
Thanks @vnil works perfectly |
For 3d animations with perspective, it is important to have
backface-visibility
.Reference:
https://developer.mozilla.org/en-US/docs/Web/CSS/backface-visibility
cc @vjeux @sahrens
The text was updated successfully, but these errors were encountered: