Create your blog and photo album with postbit
Create your blog and photo album

Create new post

Content:

Upload a picture:
Tags (keywords separated by comma)

Save Cancel
The JavaScript Blog js:   Followers: 3 ; Following: 3

Explore The JavaScript Blog's photo albums:
Javascript tools (2)
Photos from posts (7)

CSS transform using Javascript



ROTATION
WITH CSS


HTML elements can be rotated using the CSS style to flip vertical:
transform: scaleY(-1);
The rotation effect is doing using javascript to change the number between -1 and +1

To be compatible with all browsers, the CSS needs to include variations for Webkit (Chrome and Safari), Moz (Firefox) and MS (Internet Explorer):

-webkit-transform: scaleY(-1);
-moz-transform: scaleY(-1);
-ms-transform: scaleY(-1);

Javascript source:



 

Post by The JavaScript Blog (2012-08-17 20:26)

Post your comment:

Name: Email: Site:




| Explore users | New posts | Create your blog | Create your photo album |
| About Postbit | Our blog | Terms of use | Contact Postbit |


Copyright © 2017 - postbit.com