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 - 2DTransforms & Transitions w3c


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

Origin


The origin allows you to change the the x and y axis of an object. The default value is 50%, 50%, which is the center of the object.

X axis Y axis
left top
center center
right bottom
length length
% %


The original styles for the flower

#flower{
-moz-transform: rotate(10deg);
-moz-transform-origin:10% 20%;
-webkit-transform: rotate(10deg);
-webkit-transform-origin:10% 20%;
-ms-transform: rotate(10deg);
-ms-transform-origin:10% 20%;
-o-transform: rotate(10deg);
-o-transform-origin:10% 20%;
transform: rotate(10deg);
transform-origin:10% 20%;
}