3D CSS transform, jagged edges in Firefox

Edited answer: (after comments) “Workaround”, add a transparent outline attribute: outline: 1px solid transparent; Tested on Firefox 10.0.2 Windows 7: http://jsfiddle.net/nKhr8/ Original answer: (background-color dependent) “Workaround”, add a border attribute with the same color of your background (white this case): border: 1px solid white; Tested on Firefox 10.0.2 Windows 7: http://jsfiddle.net/LPEfC/

Unskewing the ends of an assortment multiple skewed images

You can use negative margin for last and first one to hide half the element: .container { display: flex; height: 150px; margin: 0 30px; overflow:hidden; } .box { flex: 1; border: 1px solid; transform: skew(-25deg); position: relative; overflow: hidden; } .box:first-child { margin-left:calc((100% / 5) / -2); } .box:last-child { margin-right:calc((100% / 5) / -2); … Read more

Why does order of transforms matter? rotate/scale doesn’t give the same result as scale/rotate

To illustrate how it works let’s consider an animation to show how the scaling effect change the rotation. .red { width:80px; height:20px; background:red; margin:80px; transform-origin:left center; animation: rotate 2s linear infinite; } @keyframes rotate { from{transform:rotate(0)} to{transform:rotate(360deg)} } <div class=”container”> <div class=”red”> </div> </div> As you can see above, the rotation is creating a perfect … Read more