Why does enabling hardware-acceleration in CSS3 slow down performance?

I always add : -webkit-backface-visibility: hidden; -webkit-perspective: 1000; When working with 3d transform. Even “fake” 3D transforms. Experience tells me that these two lines always improve performances, especially on iPad but also on Chrome. I did test on your exemple and, as far as I can tell, it works. As for the “why” part of … Read more

webkit transform blocking link

After combing through the webkit Bugzilla, I found someone who had the same issue and found a workaround. .face.back { background-color: #125672; -moz-transform: rotateY(180deg); -webkit-transform: rotateY(180deg); } Becomes: .face.back { background-color: #125672; -moz-transform: rotateY(180deg); -webkit-transform: rotateY(180deg) translateZ(1px); } The addition of the translateZ to the transform makes the left side of the element clickable. Here … Read more

CSS Transform with element resizing

The problem I noticed is that when element scales, browser change its pixels ratio, not pixels amount. Element is smaller but it doesn’t change its actual pixel size in DOM. Because of that I don’t think that CSS-only solution exist. I put scalable element into container which keeps the same pixel ratio as rest of … Read more

placing background image in a rhombus shaped container is causing the container to lose its shape

You need to increase the width/height of the image and you may consider flexbox to easily center it. It then overflow equally from the 4 sides and it will cover the gap: .box { margin: 50px; display: inline-flex; align-items: center; justify-content: center; width: 200px; height: 200px; border: 1px solid; border-radius: 20px; overflow: hidden; transform: rotate(45deg); … Read more

3d transforms on SVG element

Update Nov 2018: Testing the snipet from the question in latest chrome and Firefox works. Although support for 3d transforms on svg elements isn’t very wide, browsers are implementing it more and more. Origin answer : 3D transforms aren’t supported on SVG elements. There are a few workarounds though : If the svg doesn’t contain … Read more