This might be a common issue, but I couldn't find the answer. Best way to understand the problem is to look at this fiddle: http://jsfiddle.net/sxvjejvk/
Basically I have a div with a border-radius
and overflow:hidden
. Inside the div is an image. When I hover over the div, I want the image to scale, using a transition. However, the border-radius of the div breaks (it doesn't have rounded corners anymore) for the duration of the animation.
Adding -webkit-transform:translateZ(0)
to the div fixes this in Chrome, but it doesn't work in Safari. Does anyone know if there's a fix for this?