After many attempts I was able to transform an image into a hexagon with CSS only, I had many problems with SVG, js, etc.
However, the image is perfect in IE (albeit unbelievable) and in Chrome it distorts a bit, it distorts Firefox a lot!
Follow the code below:
img {
max-width: 100%;
height: auto;
}
.hexagono {
display: inline-block;
position: relative;
width: 90px;
height: 90px;
transform: scale(1.25, .707) rotate(-45deg);
overflow: hidden;
backface-visibility: hidden;
}
.hexagono > img {
position: absolute;
transform: rotate(45deg) scale(.8, 1.404);
clip: rect(0, 120px, 200px, 2px);
}
<div class="hexagono">
<img src="http://i.imgur.com/ZNRZUaQ.png"/></div>
Online sample.
Would anyone know an alternative to not blur the image?