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 - Scale



Pink Flower example for scale Green Leaves example for scale Yellow Daisy example for scale


I am using the hover to generate the transform. 
In addition to the transform I used transitions to ease the animation and for other property changes. Without the addtion of the transitions the image would just make an abrupt jump from one size to the other. The transform enlarges the image by x3 and the duration is for 1 second:

transform:scale(3);

transition-property: margin-left;
transition-timing-function: ease-out;
transition-duration: 1s;




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 touch devices. Because there is no hover the reverse transform cannot happen when the user rolls off but it is generated when the user click on another transform.