fix: add perspective and backface-visibility to .ease-flip#868
Open
Pcmhacker-piro wants to merge 1 commit into
Open
fix: add perspective and backface-visibility to .ease-flip#868Pcmhacker-piro wants to merge 1 commit into
Pcmhacker-piro wants to merge 1 commit into
Conversation
- Added perspective: 1000px for 3D depth rendering - Added backface-visibility: hidden for Firefox/Safari support Without these, the flip animation appears as a 2D squish instead of a proper 3D rotation on Firefox and Safari. Closes SAPTARSHI-coder#846
Author
|
heyy @SAPTARSHI-coder i fixed the assign issue so please check this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
perspective: 1000pxfor proper 3D depth renderingbackface-visibility: hiddenfor Firefox/Safari supportWithout these, the flip animation appears as a 2D squish
instead of a proper 3D rotation in Firefox and Safari.
Closes #846
Pull Request Description
.ease-flip uses ease-kf-flip (rotateY) but lacked perspective
and backface-visibility, making the animation appear flat in
Firefox and potentially showing the backside in WebKit.
Type of Change
3D rendering fix for .ease-flip animation.
Submission Checklist
Notes for Maintainer
Flip works best on elements with explicit width/height.
For complex 3D card flips, users may need a parent wrapper
with
transform-style: preserve-3d.