CSS3 transform, rotate: flash of redrawn content
Hi, just making some more adjustments to my blog and added transform: rotate to my logo image.
I am viewing in Safari 5.0.4 at the moment.
Here's the url:
Cybertramp Web Design
If you hover your mouse over the top round logo you should see it rotate in safari and FF4.
In Safari the content below it on the page flickers and seems to be re-drawn (?) both on mouseover and mouseout.
Does anyone know why this happens and is there a way to stop it?
My code by now is fairly arcane. It's a WP install with several CSS files for different parts of the design. However this is what I used for the rotation:
width: 150px; height: 150px;
-webkit-transition: all 1s ease-in-out;
-moz-transition: all 1s ease-in-out;
-o-transition: all 1s ease-in-out;
span#image is inside span#logo, which has the round white border. I tried setting overflow: hidden on span#logo, as at first I assumed that perhaps the invisible corners of a square image were pushing the rest of the page up and down as it rotated.
It did absolutely nothing, and it wouldn't really have made sense anyway if it did as the image is a background image on a span, not an actual jpg plonked on the page.
I used this effect on my main front page as well (http://thecybertramp.com/), and it doesn't seem to be happening there. Is this something to do with the way I position lower elements? Does anyone have any clue at all?
It would be a nightmare to start hacking about with the absolute/relative/fixed positions of the other elements on the page, or even to describe them! I would give it a go if need be, but at the moment it's 12.30am on Saturday night and I'm not a complete masochist!:eek: