I was originally faced with this common problem...
stackoverflow.com/css-border-radius-not-trimming-image-on-webkit
So I followed the fiddle from the question above and solved that issue.
But then I wanted to animate a div inside of this mark-up when hovered, so I added this css and jquery...
But now when I hover this element, the animation takes place and I lose all border radius!
Aaaagghhh! Why does this happen!??
See it happen in action http://jsfiddle.net/USd5s/439/
<span class="outer">
<div class="outer">
<div class="inner">
</div>
</div>
</span>
\
span.outer{
position:relative;
width: 100px;
height: 100px;
display: block;
cursor: pointer;
float: left;
margin: 15px
}
div.outer {
overflow:hidden;
-moz-border-radius: 12px;
border-radius: 12px;
-webkit-border-radius: 6px;
}
.inner {
background:red;
height:100px;
width:300px;
position: relative;
background: #e6f0a3;
}
\
$("span.outer").hover(function() {
$(this).find('.inner').animate({
left: '-200px'
}, 100, function() {
// Animation complete.
});
}, function() {
$(this).find('.inner').animate({
left: '0'
}, 100, function() {
// Animation complete.
});
});