Search This Blog

Friday 2 November 2012

CSS3: transform:rotate

With CSS3 we can rotate images, let's see this pic:

Just add to the class in css file the transformation rotate, use a positive value in degrees to rotate from left to right, use negative for right to left:
.rotate-me{
    -webkit-transform: rotate(23deg);
    -moz-transform: rotate(23deg);
    -ms-transform: rotate(23deg);
    transform: rotate(23deg);
    }



No comments:

Post a Comment