Created
May 31, 2021 18:34
-
-
Save nikola-wd/486862ec107e6c17cb040a9ad6acc3cc to your computer and use it in GitHub Desktop.
[safari border-radius fix] border radius not working properly on safari fix #css #scss #safari
This file contains 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
https://forum.webflow.com/t/overflow-hidden-round-corners-not-working-on-safari/67805 | |
The issue is the combination of overflow, border-radius, and transition | |
This is the solution: | |
On the element with overflow: | |
.transitionfix() { | |
-webkit-backface-visibility: hidden; | |
-moz-backface-visibility: hidden; | |
-webkit-transform: translate3d(0, 0, 0); | |
-moz-transform: translate3d(0, 0, 0) | |
} | |
plus | |
added minus z-index value for image and higher value for the parent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment