-
Notifications
You must be signed in to change notification settings - Fork 175
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
Getting weird rendering issues on Safari #22
Comments
It definitely has to do with the way webkit renders 3D CSS transformations. Take a look at |
Sorry guys, can't help. I don't have any Apple device 😞 |
@bastilimbach I tried setting that property but it didn't work, also tried changing a bunch of others, changing the implementation of vanilla-tilt and removing it from my browserify bundle, and everything works fine in Chrome but not in Safari. Seems weird but everything just flickers out of view when mousing over. Are you seeing the same on my site? |
@johnend I had the same issue on my website, and found out a javascript library I use called ParticlesJS inserts a canvas element which interferes with the 3d transform effect. The only guess I can make is that Safari puts the canvas element and the tilted element on the same point on the z-axis. @micku7zu I don't know how helpful this information is, but maybe you can figure something out. 😬 |
I actually found a solution to this on Safari - though it isn't ideal. For the items that were clipping if I added a transform: translateZ to them in their CSS rules the wouldn't clip, unfortunately this means using this rule on anything the should be placed on top of these elements. Not ideal, but works for now. |
I'm sure it's horrible and buggy but I've found that adding |
Hi, I'm having a similar issue with safari. I'm applying the library on a bootstraps thumbnail element and when I hover the element the effect is applied correctly to that part but the onsite sides of the element disappear.
|
Please provide an online demo and I will help you |
@nathangc you save my day. |
Guys, you should point that out on the readme-page. Took me hours to investigate this bug 🙈 In my case the bug occurs when I have a div with a background-image behind the tilted div. I'm glad I finally had the glorious idea of looking into the solved issues 😆 |
@VanDerLars Done, added this on the Readme page 😄 |
Super @micku7zu :) btw. the bug still exists on safari, if two tilted div lay over each other and the underlying tilted div has an image or a background-image. you can investigate this here: just open the menu and fiddle around. |
Can confirm that this bug exist, despite different demos and codes which tried to fix it. |
I had this issue and finally figured out what was going wrong. I was using a grainy image background on my webpage behind the tilt element and by adding -webkit-transform-style: preserve-3d; to that background class I was able to get rid of the issue completely on safari. I have run into similar issues with a .js flip plugin on chrome and It had to do with preserve-3d as well, seems to be a common issue when images can intersect or are covered during transformations. If anyone else runs into this issue I would recommend experimenting with preserve-3d, make sure it's applied to all elements with images being transformed and images behind those aswell. |
Nothing worked for me. I just added |
You just need to add this properties: |
我是给son1添加vanilla-tilt.js后发现问题,你可以尝试使用将overflow:hidden加入到grandfather1 <body>
<div class="main">
<div class='grandfather1'>
<div class='father1'>
<div class='son1'></div>
</div>
</div>
<div class='grandfather2'>
<div class='father2'>
<div class='son2'></div>
</div>
</div>
</div>
</body> |
Hello!
Love the library, works great in Chrome but there is some weird flickering behaviour going on in Safari for some reason. Not 100% why this should be the case, but thought it would be good to let you know.
Website is www.johnenderby.com vanilla-tilt is used on the homepage's middle section.
Would be good to know why it isn't working!
The text was updated successfully, but these errors were encountered: