join: new@juude



get alerts for new articles






CLOSE WINDOW

join: new@juude



get alerts for new articles






CLOSE WINDOW
css: casscading style sheets

CSS3 - 2DTransform & Transitions w3c


intro | transitions | scale | rotate translate | skew | origin | examples | browser support

Transform - Rotate


I am using the hover to generate the rotate transform on the image below. The flower is set to rotate 360 degrees (360degs) for half a second.

pink flower rotate example
transform:rotate(360deg);
transition-timing-function: ease;
transition-duration: .5s;

pink flower rotate example


Alert


Mobile devices do not responed to the hover therefore you need to click on the image/s in order to see the effect.
Even though by clicking on the image you can generate the transform it still does not work correctly on all touch devices. Because there is no hover the reverse transform cannot happen when the user rolls off but it is generated when the user clicks on another transform. The blue flower has been added for some mobile devices to demonstrate this.