I built a carousel with the following design: http://jsfiddle.net/nj3xf/13/
Why is the div leaking through? Can somebody explain? and possibly offer a fix? I know it may have to do with the overflow:hidden
I built a carousel with the following design: http://jsfiddle.net/nj3xf/13/
Why is the div leaking through? Can somebody explain? and possibly offer a fix? I know it may have to do with the overflow:hidden
Rendering round corners over CSS animations is buggy. A safe workaround is to animate the slides yourself.
See updated fiddle: http://jsfiddle.net/nj3xf/18/
$("#move").click(function () {
$('.slider').animate({left: "-=104px"});
});
Edit: Improved example: http://jsfiddle.net/nj3xf/19/. Avoid display:inline-block
because it adds some unwanted margin between the slider items. See display: inline-block extra margin and Unwanted margin in inline-block list items for more info.
You can minimize the bugginess if you set the containers to a higher z-index than the child div. It still affects the border property slightly, but it's much less noticeable.