I have a problem with chrome with css3 rotation conversion. The transition works fine, but immediately after its completion, the element is shifted by a pixel. Another strange thing is that this only happens when the page is centered ( margin:0 auto; ). The error also persists if you also delete the transition.
You can see how this happens here:
http://jsfiddle.net/MfUMd/1/
HTML:
<div class="wrap"> <img src="https://github.com/favicon.ico" class="target" alt="img"/> </div> <div class="wrap"> <div class="block"></div> </div>
CSS
.wrap { margin:50px auto; width: 100px; } .block { width:30px; height:30px; background:black; } .target,.block { display:block; -webkit-transition: all 0.4s ease; -moz-transition: all 0.4s ease; -o-transition: all 0.4s ease; transition: all 0.4s ease; } .target:hover,.block:hover { -webkit-transform: rotate(90deg); -moz-transform: rotate(90deg); -o-transform: rotate(90deg); -ms-transform: rotate(90deg); }
Comment out the margin:0 auto; line margin:0 auto; so she disappears.
Anyone have any ideas on how to stop this while keeping the page centered?
I am using version 24.0.1312.57 on OSX 10.6.8
Greetings
google-chrome css3 css-transitions css-transforms
DonutReply Feb 06 '13 at 12:48
source share